Syscall from kernel is from cs 0x0
This commit is contained in:
parent
8296688060
commit
2696902ce8
|
@ -32,7 +32,7 @@ error_t _KeSyscallHandler( ulong code, void *arg0, void *arg1, void *arg2,
|
|||
{
|
||||
DebugLog("Got a system call code %ld from cs %#x\n", code, regs->cs);
|
||||
|
||||
if ((ulong)regs->cs != (ulong)BtLoaderInfo.codeSegment) {
|
||||
if ((ulong)regs->cs >= (ulong)BtLoaderInfo.codeSegment) {
|
||||
bprintf(BStdOut, "Got a system call from userspace code %d\n", code);
|
||||
BStdOut->flusher(BStdOut);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue