mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
Some cleanup
This commit is contained in:
parent
e30dc65d7d
commit
675d3a5924
@ -36,7 +36,7 @@
|
|||||||
//
|
//
|
||||||
// Launch interrupt
|
// Launch interrupt
|
||||||
//
|
//
|
||||||
#define interrupt(n) asm volatile ("int %0" : : "N" (n) : "cc", "memory")
|
#define KeTriggerInterrupt(n) asm volatile ("int %0" : : "N" (n) : "cc", "memory")
|
||||||
|
|
||||||
//
|
//
|
||||||
// Returns whether IRQs are enabled
|
// Returns whether IRQs are enabled
|
||||||
|
@ -79,7 +79,7 @@ noreturn void KeStartPanic(const char *fmt, ...)
|
|||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
if (KeIdtIsInitialized)
|
if (KeIdtIsInitialized)
|
||||||
interrupt(0x3);
|
KeTriggerInterrupt(0x3);
|
||||||
|
|
||||||
BStdOut->flusher(BStdOut);
|
BStdOut->flusher(BStdOut);
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ KeJumpToUserspace:
|
|||||||
push QWORD 0x202 ; rflags = interrupt enable + reserved bit
|
push QWORD 0x202 ; rflags = interrupt enable + reserved bit
|
||||||
push QWORD 0x1B ; Selector 0x18 (User Code) + RPL 3
|
push QWORD 0x1B ; Selector 0x18 (User Code) + RPL 3
|
||||||
push rsi ; Entry point in user space
|
push rsi ; Entry point in user space
|
||||||
|
|
||||||
iretq
|
iretq
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user