Mercurial > lcfOS
comparison cos/kernel/asmcode.asm @ 29:7e3bdcb391dc
Added get_page function to mm
author | windel |
---|---|
date | Thu, 29 Dec 2011 19:34:01 +0100 |
parents | 47b7df514243 |
children | 88590c42320f |
comparison
equal
deleted
inserted
replaced
28:47b7df514243 | 29:7e3bdcb391dc |
---|---|
8 ; Function to read the current instruction pointer value: | 8 ; Function to read the current instruction pointer value: |
9 global read_rip | 9 global read_rip |
10 read_rip: | 10 read_rip: |
11 pop rax | 11 pop rax |
12 jmp rax | 12 jmp rax |
13 | |
14 global magicBochsBreak | |
15 magicBochsBreak: | |
16 xchg bx, bx | |
17 ret | |
18 | 13 |
19 global loadIDT | 14 global loadIDT |
20 loadIDT: | 15 loadIDT: |
21 extern idtP | 16 extern idtP |
22 ; TODO: make this pointer thing more insightfull: | 17 ; TODO: make this pointer thing more insightfull: |