diff options
| author | Miguel <m.i@gmx.at> | 2018-08-19 21:14:01 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-08-19 21:14:01 +0200 |
| commit | 7dbbfea6ad0a458e1b1e2685a5dc947e0c43fdbf (patch) | |
| tree | 041d71e8d331ec557c0c296602f3f228d0a91c77 /asm | |
| parent | 5055dc85c8a74fcd2ec24fbc51eba2a2da68debe (diff) | |
x86.s working
Diffstat (limited to 'asm')
| -rw-r--r-- | asm/x86.s | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -80,26 +80,26 @@ x86_xchg: x86_get_cr: mov 4(%esp), %ecx - cmp %ecx,0 + cmp $0,%ecx je get_cr0 - cmp %ecx,2 + cmp $2,%ecx je get_cr2 - cmp %ecx,3 + cmp $3,%ecx je get_cr3 - cmp %ecx,4 + cmp $4,%ecx je get_cr4 ret x86_set_cr: - mov 4(%esp), %eax - mov 8(%esp), %ecx - cmp %ecx,0 + mov 4(%esp), %ecx + mov 8(%esp), %eax + cmp $0,%ecx je set_cr0 - cmp %ecx,2 + cmp $2,%ecx je set_cr2 - cmp %ecx,3 + cmp $3,%ecx je set_cr3 - cmp %ecx,4 + cmp $4,%ecx je set_cr4 ret |
