From 858a52c06a4615bd58a6a906333f2ad707d41c0a Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Tue, 19 Aug 2025 15:04:04 -0400 Subject: usermode pager --- apps/init/arch/x86_64/start.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 apps/init/arch/x86_64/start.c (limited to 'apps/init/arch/x86_64/start.c') diff --git a/apps/init/arch/x86_64/start.c b/apps/init/arch/x86_64/start.c new file mode 100644 index 0000000..8329523 --- /dev/null +++ b/apps/init/arch/x86_64/start.c @@ -0,0 +1,11 @@ +extern void main(void*); + +__attribute__((section(".text.start"))) +__attribute__((naked)) +void +_start(void) +{ + __asm__ volatile("\ + popq %%rdi; \ + jmp main"::); +} -- cgit v1.2.1