EGCS fixes.
This commit is contained in:
parent
8b31371b9c
commit
3467859667
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: disksubr.c,v 1.16 1998/03/02 17:00:00 ragge Exp $ */
|
||||
/* $NetBSD: disksubr.c,v 1.17 1998/11/05 19:46:18 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
|
||||
@ -164,7 +164,7 @@ setdisklabel(olp, nlp, openmask, osdep)
|
||||
u_long openmask;
|
||||
struct cpu_disklabel *osdep;
|
||||
{
|
||||
register i;
|
||||
register int i;
|
||||
register struct partition *opp, *npp;
|
||||
|
||||
if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.65 1998/10/19 22:09:18 tron Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.66 1998/11/05 19:46:18 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden.
|
||||
@ -384,11 +384,12 @@ allocsys(v)
|
||||
* physical memory, but at least 16). Allocate 1/2 as many swap
|
||||
* buffer headers as file i/o buffers.
|
||||
*/
|
||||
if (bufpages == 0)
|
||||
if (bufpages == 0) {
|
||||
if (physmem < btoc(2 * 1024 * 1024))
|
||||
bufpages = (physmem / 10) / CLSIZE;
|
||||
else
|
||||
bufpages = (physmem / 20) / CLSIZE;
|
||||
}
|
||||
if (nbuf == 0) {
|
||||
nbuf = bufpages;
|
||||
if (nbuf < 16)
|
||||
@ -639,7 +640,7 @@ static volatile int showto; /* Must be volatile to survive MM on -> MM off */
|
||||
|
||||
void
|
||||
cpu_reboot(howto, b)
|
||||
register howto;
|
||||
register int howto;
|
||||
char *b;
|
||||
{
|
||||
if ((howto & RB_NOSYNC) == 0 && waittime < 0) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: subr.s,v 1.29 1998/10/06 02:07:30 matt Exp $ */
|
||||
/* $NetBSD: subr.s,v 1.30 1998/11/05 19:46:18 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
|
||||
@ -118,8 +118,12 @@ _ultrix_esigcode:
|
||||
.globl _idsptch, _eidsptch
|
||||
_idsptch: pushr $0x3f
|
||||
pushl $1
|
||||
nop
|
||||
calls $1, *$0x12345678
|
||||
.long 0x9f01fb01
|
||||
.long 0x12345678
|
||||
#
|
||||
# gas do not accept this :-/ use hexcode instead
|
||||
# nop
|
||||
# calls $1, *$0x12345678
|
||||
popr $0x3f
|
||||
rei
|
||||
_eidsptch:
|
||||
|
Loading…
Reference in New Issue
Block a user