kernel: whatever changes i didn't keep track of lol
This commit is contained in:
parent
b2cf9b4710
commit
edbb5d106d
67 changed files with 340 additions and 88 deletions
4
kernel/src/arch/x86_64/cpu.c
Normal file → Executable file
4
kernel/src/arch/x86_64/cpu.c
Normal file → Executable file
|
@ -29,6 +29,10 @@ void cpu_invalidate_page(uint64_t vaddr) {
|
|||
asm volatile ( "invlpg (%0)" : : "b"(vaddr) : "memory" );
|
||||
}
|
||||
|
||||
void cpu_enable_ints(int enabled) {
|
||||
if (enabled) asm("sti"); else asm("cli");
|
||||
}
|
||||
|
||||
void hcf() {
|
||||
asm ("cli");
|
||||
for (;;) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue