Syscall from kernel is from cs 0x0

This commit is contained in:
Adrien Bourmault 2021-03-04 20:04:50 +01:00
parent 8296688060
commit 2696902ce8
Signed by: neox
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}