X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/9e2a82e4e9495f33b8e6423c335a9a157f056254..33e49b2e6d599bc56326841b5b373b9f76adc5f7:/aseg-paging/pagingstub-asm.s?ds=sidebyside diff --git a/aseg-paging/pagingstub-asm.s b/aseg-paging/pagingstub-asm.s deleted file mode 100644 index 0d30a6d..0000000 --- a/aseg-paging/pagingstub-asm.s +++ /dev/null @@ -1,13 +0,0 @@ - -.globl set_cr0 - -set_cr0: - mov 4(%esp), %eax # Load argument - movl %eax, %cr0 # Set CR0 - pushw %cs # Push 16 bits of %CS - pushl $set_cr0_cont # Push 32 bits of %EIP - ljmp *(%esp) # "Far jump" (both %CS and %EIP from stack) -set_cr0_cont: # Hey, here we are! - addl $6, %esp # Un-do 48 bits of pushing - ret -