diff options
author | Alexis211 <alexis211@gmail.com> | 2009-10-17 23:22:41 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-10-17 23:22:41 +0200 |
commit | 7dc8c19f7d6220c9e3dac43796faf77c4f11974f (patch) | |
tree | 7a63b88ed80583198776ce706f85d528eff28b16 /Source/Kernel/SyscallManager | |
parent | e35e95188674ae4802df2a511825218253d01d2c (diff) | |
download | Melon-7dc8c19f7d6220c9e3dac43796faf77c4f11974f.tar.gz Melon-7dc8c19f7d6220c9e3dac43796faf77c4f11974f.zip |
Melon now loads a simple ASM application out of the ramfs
The format is very simple, but an ELF loader is planned.
Diffstat (limited to 'Source/Kernel/SyscallManager')
-rw-r--r-- | Source/Kernel/SyscallManager/IDT.ns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Kernel/SyscallManager/IDT.ns.cpp b/Source/Kernel/SyscallManager/IDT.ns.cpp index fcdf2ff..0744e56 100644 --- a/Source/Kernel/SyscallManager/IDT.ns.cpp +++ b/Source/Kernel/SyscallManager/IDT.ns.cpp @@ -75,9 +75,9 @@ extern "C" void interrupt_handler(registers_t regs) { doSwitch = doSwitch or Task::IRQwakeup(regs.int_no - 32); } if (regs.int_no == 64) { - if (regs.eax == 1) { + if (regs.eax == 0xFFFFFF01) { Task::currProcess()->getVirtualTerminal()->put(WChar(regs.ebx)); - } else if (regs.eax == 2) { + } else if (regs.eax == 0xFFFFFF02) { Task::currThread()->sleep(regs.ebx); } } |