From 8e404e6853e363008231003f9c23488eae65af5e Mon Sep 17 00:00:00 2001 From: Jacob Potter Date: Fri, 7 Nov 2008 15:20:28 -0500 Subject: [PATCH 1/1] more stuff --- aseg-paging/pagetable.h | 1 - aseg-paging/pagingstub-asm.s | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/aseg-paging/pagetable.h b/aseg-paging/pagetable.h index 49e7013..e69de29 100644 --- a/aseg-paging/pagetable.h +++ b/aseg-paging/pagetable.h @@ -1 +0,0 @@ -void * pt_setup(int smbase); diff --git a/aseg-paging/pagingstub-asm.s b/aseg-paging/pagingstub-asm.s index 0d30a6d..414e463 100644 --- a/aseg-paging/pagingstub-asm.s +++ b/aseg-paging/pagingstub-asm.s @@ -11,3 +11,10 @@ set_cr0_cont: # Hey, here we are! addl $6, %esp # Un-do 48 bits of pushing ret + +.globl ps_switch_stack +ps_switch_stack: + mov 4(%esp), %eax + mov 8(%esp), %esp + call *%eax + rsm -- 2.43.0