kv2: add paging
this also fixes up a bunch of formatting, adding the type vaddr_t Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
parent
27a7f3de75
commit
d6873d6c7a
18 changed files with 130 additions and 66 deletions
12
amd64/arch/stack.S
Normal file
12
amd64/arch/stack.S
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
.intel_syntax noprefix
|
||||
|
||||
.global arch_stack_init
|
||||
arch_stack_init:
|
||||
pop rdx
|
||||
sub rsi, 8
|
||||
add rdi, rsi
|
||||
mov rsp, rdi
|
||||
mov rbp, rsp
|
||||
push rdx
|
||||
ret
|
||||
Loading…
Reference in a new issue