diff options
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 |
