summaryrefslogtreecommitdiff
path: root/sys/src/boot
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-14 19:35:28 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-14 19:35:28 +0000
commitd6679cfa903bde9d8cde76cf445a5fc23d7862f8 (patch)
treea01f5dd8d7e500dc9de89bb7b896b51e337744f8 /sys/src/boot
parentebf291ab23283d2971f5f29ff9baf297d6a93a8e (diff)
9boot: remove debug prints
Diffstat (limited to 'sys/src/boot')
-rw-r--r--sys/src/boot/pc/sub.c46
1 files changed, 12 insertions, 34 deletions
diff --git a/sys/src/boot/pc/sub.c b/sys/src/boot/pc/sub.c
index 205cace13..981d3f61a 100644
--- a/sys/src/boot/pc/sub.c
+++ b/sys/src/boot/pc/sub.c
@@ -284,50 +284,28 @@ e820conf(void)
if((bx = e820(0, &e)) == 0)
return;
+ s = confend;
memmove(confend, "e820=", 5);
confend += 5;
do{
- s = confend;
- v = e.base;
- addconfx("", 8, v>>32);
- addconfx("", 8, v&0xffffffff);
- v = e.base + e.len;
- addconfx(" ", 8, v>>32);
- addconfx("", 8, v&0xffffffff);
-
- print(s);
-
- switch(e.typ){
- case 1:
- print(" ram");
- break;
- case 2:
- print(" reserved");
- break;
- case 3:
- print(" acpi reclaim");
- break;
- case 4:
- print(" acpi nvs");
- break;
- case 5:
- print(" bad");
- break;
- default:
- print(" ???");
+ if(e.typ == 1 && (e.ext & 1) == 0 && e.len){
+ v = e.base;
+ addconfx("", 8, v>>32);
+ addconfx("", 8, v&0xffffffff);
+ v = e.base + e.len;
+ addconfx(" ", 8, v>>32);
+ addconfx("", 8, v&0xffffffff);
+ *confend++ = ' ';
}
- print(crnl);
- if(e.typ == 1 && (e.ext & 1) == 0)
- *confend++ = ' ';
- else
- confend = s;
memset(&e, 0, sizeof(e));
} while(bx = e820(bx, &e));
- *confend++ = '\n';
*confend = 0;
+ print(s); print(crnl);
+
+ *confend++ = '\n';
}
void a20(void);