mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
Minor corrections
This commit is contained in:
parent
74d0508b67
commit
737bea025f
@ -136,6 +136,11 @@ static inline ulong KeReadStsc(void) {
|
|||||||
return ((ulong)edx << 32) + eax;
|
return ((ulong)edx << 32) + eax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void KeFlushTlbSingle(unsigned long addr)
|
||||||
|
{
|
||||||
|
asm volatile("invlpg (%0)" ::"r" (addr) : "memory");
|
||||||
|
}
|
||||||
|
|
||||||
//------------------------------------------//
|
//------------------------------------------//
|
||||||
// Misc. I/O //
|
// Misc. I/O //
|
||||||
//------------------------------------------//
|
//------------------------------------------//
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#define BADRAM_ZONE 5 // Invalid zone because material problem...
|
#define BADRAM_ZONE 5 // Invalid zone because material problem...
|
||||||
#define MAX_ENTRIES 2048 // Max number of memory map entries
|
#define MAX_ENTRIES 2048 // Max number of memory map entries
|
||||||
#define KPAGESIZE (4 * KB)
|
#define KPAGESIZE (4 * KB)
|
||||||
#define UPAGESIZE (2 * MB)
|
#define UPAGESIZE (4 * KB)
|
||||||
|
|
||||||
//----------------------------------------------------------------------------//
|
//----------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
@ -58,10 +58,11 @@ isrPreHandler:
|
|||||||
push rax
|
push rax
|
||||||
|
|
||||||
; Check if we are switching from user mode to supervisor mode
|
; Check if we are switching from user mode to supervisor mode
|
||||||
;mov rax, [rsp + 152]
|
mov rax, [rsp + 152]
|
||||||
;and rax, 0x3000
|
and rax, 0x3000
|
||||||
;jz .SEnter
|
jz .SEnter
|
||||||
;swapgs ; XXX need TSS
|
|
||||||
|
swapgs ; XXX need TSS
|
||||||
|
|
||||||
.SEnter:
|
.SEnter:
|
||||||
; Increment mask count as we configure all interrupts to mask IF
|
; Increment mask count as we configure all interrupts to mask IF
|
||||||
|
Loading…
Reference in New Issue
Block a user