diff cos/kernel/asmcode.asm @ 32:3a6a9b929db0

Added initial ramdisk and some virtual file system functions
author windel
date Fri, 13 Jan 2012 18:18:17 +0100
parents 88590c42320f
children d8185ddb6c7b
line wrap: on
line diff
--- a/cos/kernel/asmcode.asm	Tue Jan 10 20:40:35 2012 +0100
+++ b/cos/kernel/asmcode.asm	Fri Jan 13 18:18:17 2012 +0100
@@ -2,6 +2,9 @@
 ; from 20 - 31 are reserved vectors.
 ; below are the custom ones!
 
+; Calling convention AMD64 ABI:
+; parameters in: rdi, rsi, rdx, rcx ....
+
 section .text
 align 4
 
@@ -18,6 +21,11 @@
   lidt [idtP]
   ret
 
+global setCR3
+setCR3:
+   mov cr3, rdi ; Load cr3
+   ret
+
 ; ISR related assembler wrappers:
 
 %macro ISR_NOERRCODE 1