1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00

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

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