reactos/reactos/hal
ReactOS Portable Systems Group b513c98fb2 - Rewrite the low-level trap/exception/system call code from the ground up:
- Do not corrupt the stack anymore
  - Use a consistent trap frame layout (enable OldIrql and PreviousMode, and set the 0xBADB0D00 debug mark)
  - Use slower but more correct trap prolog/epilog code for now.
  - Generalize all prolog/epilog code into macros just like on x86. As a result, traps are now 6 lines of code.
- Rewrite the system call interface from the ground up:
  - System calls didn't actually work: a debug print made the stack layout magical enough so that they didn't normally crush, but only slowly ate the stack.
  - Copying arguments from caller to system call was, as the comment on the original code so aptly put it, "total shit".
  - Due to ABI concerns, and to provide an actual template on how you're -supposed- to implement something like system calls on RISC processors, we now use
    a model similar to BSD, but about ten times better (with that much less code too). We'll document it later on the RosPSG Wiki.
  - This code probably contains some of the most vile-yet-elegant macro magic ever written for such low-level code as system call dispatching. 
- The result of all this is that we're at the same place as before (RamdiskAddDevice needs to be implemented by the Ramdisk guys) but with a sane low-level
  backend that isn't slowly eating away the stack, corrupting data, and basically working through random chance.
- Move timebase code from stubs.c to its own file, time.c.
- Silence multiple debug prints and fix a corrupted debug print in KiSystemStartup.


svn path=/trunk/; revision=34366
2008-07-08 09:11:44 +00:00
..
hal - Fix stupid IRQL/Interrupt handling code that someone wrote ;): 2008-06-14 22:02:50 +00:00
halarm - Rewrite the low-level trap/exception/system call code from the ground up: 2008-07-08 09:11:44 +00:00
halppc
halx86 set 'installname' attribute for halup to 'hal.dll' 2008-06-01 13:24:25 +00:00
hal.rbuild - Move every x86 HAL to it's own .rbuild file 2008-05-24 20:32:44 +00:00