vbos/amd64/arch/stack.S
Michael Shaw d6873d6c7a kv2: add paging
this also fixes up a bunch of formatting, adding the type vaddr_t

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2026-04-13 00:04:26 -04:00

12 lines
225 B
ArmAsm

/* 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