From 4d6fe1c317f0a541922f4cf945365fd31e608e10 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Wed, 18 Mar 2020 14:01:12 +1100 Subject: Added decimal and octal conversion specifiers ('%d' and '%o') to vsprintf(). Coverted all printk()/printf() functions to capatalised hex for readability. Tidied up some code. --- kernel/asm.s | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'kernel/asm.s') diff --git a/kernel/asm.s b/kernel/asm.s index 655dcfc..4e1e376 100644 --- a/kernel/asm.s +++ b/kernel/asm.s @@ -15,11 +15,7 @@ switch_to: ; abort if we're switching to the current task mov ebx, [ctask] cmp ebx, [ebp+12] - jne .skip - pop ebx - pop ebp - ret -.skip: + je .end ; update ctask and ctaskn mov ebx, [ebp+12] mov [ctask], ebx @@ -31,6 +27,7 @@ switch_to: shl ebx, 3 mov [.tmp+4], bx jmp far [.tmp] +.end: pop ebx pop ebp ret -- cgit v1.3