From b847a10b62cf042e1db77efc393ebaea302e9499 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 20 Aug 1992 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1992-08-20 --- pc/clock.c | 2 -- pc/devrtc.c | 7 ++++++- port/devbit.c | 4 ++-- ss/clock.c | 4 +++- ss/main.c | 14 +++++++------- ss/scsi.c | 3 +-- 6 files changed, 19 insertions(+), 15 deletions(-) diff --git a/pc/clock.c b/pc/clock.c index 0b3be7d77406e6b7f9fe6ec7ad025608bc93a121..5b219121cbbd6f67e4ca5706a8389f2e3a65a6a0 100644 --- a/pc/clock.c +++ b/pc/clock.c @@ -87,12 +87,10 @@ clock(Ureg *ur) else sched(); } -#ifdef asdf if((ur->cs&0xffff) == UESEL){ spllo(); /* in case we fault */ (*(ulong*)(USTKTOP-BY2WD)) += TK2MS(1); /* profiling clock */ splhi(); } -#endif asdf } } diff --git a/pc/devrtc.c b/pc/devrtc.c index 4c7b6b3ad7c5517616192ef72042e104611673ae..8e8b89f67a9e533477e4a0f998d54456572c18c6 100644 --- a/pc/devrtc.c +++ b/pc/devrtc.c @@ -38,9 +38,14 @@ struct Rtc QLock rtclock; /* mutex on clock operations */ +enum{ + Qrtc = 1, + Qnvram, +}; + #define NRTC 1 Dirtab rtcdir[]={ - "rtc", {1, 0}, 0, 0666, + "rtc", {Qrtc, 0}, 0, 0666, }; ulong rtc2sec(Rtc*); diff --git a/port/devbit.c b/port/devbit.c index eab275bc36d568f8885be84242977f30f7d60fc0..e7df0c981d91bb4cfcd0dd22fc3b9d60b177a923 100644 --- a/port/devbit.c +++ b/port/devbit.c @@ -215,12 +215,12 @@ bitdebug(void) a = &bit.arena[i]; if(a->words){ l += a->nwords; - print("%d: %ld used; %ld total\n", i, + print("%d: %ld bytes used; %ld total\n", i, (a->wfree-a->words)*sizeof(ulong), a->nwords*sizeof(ulong)); } } - print("arena: %ld words\n", l*sizeof(ulong)); + print("arena: %ld bytes\n", l*sizeof(ulong)); l = 0; for(i=0; islash = (*devtab[0].attach)(0); u->dot = clone(u->slash, 0); @@ -401,12 +401,12 @@ confinit(void) * it has only a 24bit address counter. * NB. Suns must have at LEAST 8Mbytes. */ - conf.npage1 = conf.npage0 - (4*MB)/BY2PG; - conf.base1 = 4*MB; - conf.npage0 = (4*MB)/BY2PG; + conf.npage1 = conf.npage0 - (8*MB)/BY2PG; + conf.base1 = 8*MB; + conf.npage0 = (8*MB)/BY2PG; conf.base0 = 0; - bank[1] = bank[0]-4; - bank[0] = 4; + bank[1] = bank[0]-8; + bank[0] = 8; } conf.npage = conf.npage0+conf.npage1; diff --git a/ss/scsi.c b/ss/scsi.c index 75d5e025c2600b63bb9db1c6cc209b4de6a47d98..4044cab88d381f15f819b8749e3a4bc26f7a722f 100644 --- a/ss/scsi.c +++ b/ss/scsi.c @@ -48,7 +48,7 @@ scsialloc(ulong n) } enum { - ResetIntDis = 0x40, /* config regsiter */ + ResetIntDis = 0x40, /* config register */ Penable = 0x10, Dma = 0x80, /* NCR 53C90 commands */ @@ -295,7 +295,6 @@ scsiintr(void) } } - dev->cmd = Cmdcomplete; return;