diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-23 10:12:50 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-23 10:12:50 +0200 |
commit | fe237ee215fafd2012e6f4e5da88e3c2b8f9d33d (patch) | |
tree | 9c88982f0717bd2ee465d19ccb967dd1b27de91f /Kernel/i386.cpp | |
parent | 72514c8b97891a3a032ae7b3003064ac9cf554e7 (diff) | |
download | serenity-fe237ee215fafd2012e6f4e5da88e3c2b8f9d33d.zip |
Lots of hacking:
- Turn Keyboard into a CharacterDevice (85,1) at /dev/keyboard.
- Implement MM::unmapRegionsForTask() and MM::unmapRegion()
- Save SS correctly on interrupt.
- Add a simple Spawn syscall for launching another process.
- Move a bunch of IO syscall debug output behind DEBUG_IO.
- Have ASSERT do a "cli" immediately when failing.
This makes the output look proper every time.
- Implement a bunch of syscalls in LibC.
- Add a simple shell ("sh"). All it can do now is read a line
of text from /dev/keyboard and then try launching the specified
executable by calling spawn().
There are definitely bugs in here, but we're moving on forward.
Diffstat (limited to 'Kernel/i386.cpp')
-rw-r--r-- | Kernel/i386.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Kernel/i386.cpp b/Kernel/i386.cpp index 91d676abed..047212f877 100644 --- a/Kernel/i386.cpp +++ b/Kernel/i386.cpp @@ -78,6 +78,7 @@ asm( \ " pushw %ss\n" \ " pushw %ss\n" \ " pushw %ss\n" \ + " pushw %ss\n" \ " popw %ds\n" \ " popw %es\n" \ " popw %fs\n" \ @@ -85,6 +86,7 @@ asm( \ " mov %esp, exception_state_dump\n" \ " call exception_" # ec "_handler\n" \ " popw %gs\n" \ + " popw %gs\n" \ " popw %fs\n" \ " popw %es\n" \ " popw %ds\n" \ @@ -107,6 +109,7 @@ asm( \ " pushw %ss\n" \ " pushw %ss\n" \ " pushw %ss\n" \ + " pushw %ss\n" \ " popw %ds\n" \ " popw %es\n" \ " popw %fs\n" \ @@ -114,6 +117,7 @@ asm( \ " mov %esp, exception_state_dump\n" \ " call exception_" # ec "_handler\n" \ " popw %gs\n" \ + " popw %gs\n" \ " popw %fs\n" \ " popw %es\n" \ " popw %ds\n" \ |