From 7894fcd21732dd2ddfbb9beca52d037a62ed11f4 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Thu, 25 Aug 2016 09:13:00 -0400 Subject: =?UTF-8?q?Remove=20trailing=20white=20space=20with:=20=20for=20f?= =?UTF-8?q?=20in=20*.{h,c};=20do=20sed=20-i=20.sed=20's/[[:blank:]]*$//'?= =?UTF-8?q?=20$f;=20done=20(Thanks=20to=20Nicol=C3=A1s=20Wolovick)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'console.c') diff --git a/console.c b/console.c index 35f221d..298a6e7 100644 --- a/console.c +++ b/console.c @@ -107,7 +107,7 @@ panic(char *s) { int i; uint pcs[10]; - + cli(); cons.locking = 0; cprintf("cpu%d: panic: ", cpu->id); @@ -130,7 +130,7 @@ static void cgaputc(int c) { int pos; - + // Cursor position: col + 80*row. outb(CRTPORT, 14); pos = inb(CRTPORT+1) << 8; @@ -146,13 +146,13 @@ cgaputc(int c) if(pos < 0 || pos > 25*80) panic("pos under/overflow"); - + if((pos/80) >= 24){ // Scroll up. memmove(crt, crt+80, sizeof(crt[0])*23*80); pos -= 80; memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos)); } - + outb(CRTPORT, 14); outb(CRTPORT+1, pos>>8); outb(CRTPORT, 15); -- cgit v1.2.3