blob: f1047a9cdf256bb63c0f4f177b295be974a4b50a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
bits 64
;see also ../documentation/memory.txt
global switch_to_kernel_p4
;from paging.cpp:
extern __kernel_p4_paddr
section .text
switch_to_kernel_p4:
mov rax, qword [__kernel_p4_paddr]
mov cr3, rax
mov rsp, 0xfffffffffffff000
jmp rdi
|