diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-15 15:25:31 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-15 15:25:31 +0000 |
commit | 318a980c63b8e65ae6c791c88a84937fbf7e5937 (patch) | |
tree | 32bd730a5ddccb195eae932e00c2ab0ef84deb82 /sys/src/boot | |
parent | 38e42ab85717885003e1e3920e7b5342de7dc314 (diff) |
9boot: increase timeout, do less printing
Diffstat (limited to 'sys/src/boot')
-rw-r--r-- | sys/src/boot/pc/sub.c | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/sys/src/boot/pc/sub.c b/sys/src/boot/pc/sub.c index 0836d82c3..ddeeba9cf 100644 --- a/sys/src/boot/pc/sub.c +++ b/sys/src/boot/pc/sub.c @@ -170,6 +170,8 @@ Clear: confend = BOOTARGS; memset(confend, 0, BOOTARGSLEN); + + e820conf(); Loop: while((n = readline(f, line)) > 0){ if(*line == 0 || strchr("#;=", *line)) @@ -196,14 +198,13 @@ Loop: *confend++ = '\n'; print(line); print(crnl); } - e820conf(); *confend = 0; if(f){ close(f); f = 0; - if(kern && timeout(500)) + if(kern && timeout(1000)) goto Loop; } @@ -218,24 +219,6 @@ Loop: } -static ushort -beswab(ushort s) -{ - uchar *p; - - p = (uchar*)&s; - return (p[0]<<8) | p[1]; -} - -static ulong -beswal(ulong l) -{ - uchar *p; - - p = (uchar*)&l; - return (p[0]<<24) | (p[1]<<16) | (p[2]<<8) | p[3]; -} - static void hexfmt(char *s, int i, ulong a) { @@ -332,6 +315,24 @@ e820conf(void) *confend++ = '\n'; } +static ushort +beswab(ushort s) +{ + uchar *p; + + p = (uchar*)&s; + return (p[0]<<8) | p[1]; +} + +static ulong +beswal(ulong l) +{ + uchar *p; + + p = (uchar*)&l; + return (p[0]<<24) | (p[1]<<16) | (p[2]<<8) | p[3]; +} + void a20(void); char* @@ -341,9 +342,6 @@ bootkern(void *f) ulong n; Exec ex; - print("boot"); - print(crnl); - a20(); if(readn(f, &ex, sizeof(ex)) != sizeof(ex)) @@ -365,7 +363,7 @@ bootkern(void *f) close(f); unload(); - print("go!"); + print("boot"); print(crnl); jump(e); |