Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Thread: underlying hardware layer

  1. #1
    oscar
    Guest

    underlying hardware layer

    Hi if anybody could offer any advice or pointers to reading material it would be most appreciated.
    I am attempting to understand how win98se accesses cpu registers,pc etc and how the system interface extends hardware instructions on a x86. This is purely towards trying to understand why this os fails to see dual core cpus.I am puzzled as to what passes the hardware instructions to the kernel on boot, is it fed via some early loaded vxd, bios.vxd or is the x86 instruction set precompiled into the kernel which needs to be added to/modified, in a similar way to win2k uni/multi processor setup.
    Many thanks
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  2. #2
    Howdy,

    You will need to try and build a new kernel for 98.
    The 98 kernel was not written to handle dual core.

    You could of course upgrade to NT for dual support
    or try ripping parts of the nt kernel to try with 98 but
    I doubt it will ever work.

    Why not try some flavor of unix ?

    Woodmann

  3. #3
    Naides is Nobody
    Join Date
    Jan 2002
    Location
    Planet Earth
    Posts
    1,647
    As far as I understand, the OS implement the use of multiple CPUs at the level of the scheduler. A given, multi threaded process, if compiled to take advantage of parallel processing, can run in multiple CPUs at a time, but any given thread is assigned to a unique CPU core, specified in the TBB, and runs from beginning to end inside such core. When a new thread is created, the scheduler has the choice of assigning it to an available CPU core, decreasing bottle neck problems.

    Windows NT and its derivatives were conceived from scratch to work in virtual (hyperthreading) or actual (multicore) environments. The scheduler has the capability to detect and handle conflict situations in which threads try to write to the same memory address simultaneously
    see
    pthreads-w32 (wikipedia)
    www.cs.cmu.edu/~barbic/multi-core-15213-sp07.ppt

    The memory concept of win98 in which all system DLLs code and data is shared by all active applications does not lend itself gracefully to true multi-threading/multitasking. They only give the illusion of multitasking by thread switching. But no actual simultaneous processing is taking place. Also keep in mind that half the system modules of Win98 are in fact 16 bit code in disguise, which has issues dealing with the flat 32bit memory model, and memory sharing.

    Point is, adapting W98 to work gracefully in multicore hardware is like modifying a bicycle for interplanetary travel: You're better off constructing an appropriate vessel from scratch.

    http://www.64advantage.com/files/Introduction%20to%20optimization%20for%20multi-core%20and%20hyper-threaded%20processors.pdf

  4. #4
    The win98 kernel is almost monolithic.

    There's an ebook out there titled "secrets of windows 95" or "windows 95 internals" or similar, should be useful.

  5. #5
    oscar
    Guest
    Thanks for all your replys and advice, it seems as though io.sys is one of the first to be loaded in memory from boot up, then vmm later both worth further examination. SetThreadAffinityMask might be problematic,race conditions,deadlock,priority failures easier to deal with if/after the second core can be seen. Anywhere remotely near parallel operation would be a start.
    Only reason for me doing this is i am fascinated in this old but supprising resilient os and just wondered how far it could be pushed, more proof of concept than anything else.
    On a side note can anybody tell me if it is possible to decompile *.vxds
    Much appreciated
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  6. #6
    Naides is Nobody
    Join Date
    Jan 2002
    Location
    Planet Earth
    Posts
    1,647
    IDA pro can disassemble *.vxd.

  7. #7
    Good luck on rewriting the kernel. True multiprocessor support isn't easy, though I suppose with a direct hardware access driver you could run *something* on the second core... read the Intel manuals for more info.

  8. #8
    Maybe someone could figure out how to "rewrite" time.

    It does keep passing by.

    But I digress!

    Regards,
    JMI

  9. #9
    oscar
    Guest
    Perhaps if we had a minuscle mass, that of a muon, on encountering a mass bending space/time such as the earth we might well outlive other mouns and cheat time, albeit momentarily.

    Many thanks
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  10. #10
    Registered User
    Join Date
    Aug 2005
    Location
    Greece
    Posts
    157
    Or buy Spice from Arakis.
    A picture worth 1K words (or .5K DWORDS).

  11. #11
    Mau'dib' controls the Spice now.

    You'll have to ask him, or his descendents.

    I read the series before most of you youngins were born. Dune was first published in 1965 and won both a Hugo and Nebula Award. Imagine that! Actually "reading" a book, instead of "waiting for the movie."

    I read all six books of the series and most of the other books Herbert wrote. At the time, after finding an author I liked, I generally read all their books. Believe I still have a couple packed away, waiting for some free time to enjoy reading at leasure again. I've actually read most of the "greats" of science fiction over the years.

    Regards,
    JMI

  12. #12
    Link worth reading. I'm skeptical of a lot of this type of research, but I read a much longer 2 page spread on this guy in a national newspaper recently. He's got the credentials and it seems like he has some non-lunatic support, too.

    http://news.bbc.co.uk/1/hi/magazine/6933059.stm
    Still here...

  13. #13
    Registered User
    Join Date
    Aug 2005
    Location
    Greece
    Posts
    157
    I don't believe you can time travel to the past, to the future yes to the past no.
    A picture worth 1K words (or .5K DWORDS).

  14. #14
    Registered User
    Join Date
    Jul 2007
    Posts
    107
    Blog Entries
    6
    Of course you can time travel to the past, an alien from Uranus told me it was possible.
    Programming today is a race between software engineers to build bigger and better idiot-proof programs and the Universe trying to produce bigger and better idiots.
    So far, the Universe is winning.

  15. #15
    Registered User
    Join Date
    Aug 2005
    Location
    Greece
    Posts
    157
    They try to scam you and steal your mojo.
    A picture worth 1K words (or .5K DWORDS).

Similar Threads

  1. Replies: 0
    Last Post: January 12th, 2008, 00:08
  2. hardware breakpoints
    By 5aLIVE in forum OllyDbg Support Forums
    Replies: 1
    Last Post: August 19th, 2005, 09:28
  3. hardware bp
    By naceur in forum OllyDbg Support Forums
    Replies: 5
    Last Post: January 18th, 2004, 07:12
  4. aspro layer check removal
    By howie in forum Malware Analysis and Unpacking Forum
    Replies: 2
    Last Post: December 6th, 2002, 22:48
  5. hardware lock
    By leca in forum Tools of Our Trade (TOT) Messageboard
    Replies: 1
    Last Post: May 7th, 2001, 12:03

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •