From 7dbbfea6ad0a458e1b1e2685a5dc947e0c43fdbf Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 19 Aug 2018 21:14:01 +0200 Subject: x86.s working --- asm/x86.s | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'asm/x86.s') diff --git a/asm/x86.s b/asm/x86.s index a5bcb1c..9794111 100644 --- a/asm/x86.s +++ b/asm/x86.s @@ -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 -- cgit v1.2.3