Casts for PROM_LOADADDR which is not casted anymore.
This commit is contained in:
parent
5aa72a711d
commit
6fc35c7fc8
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: boot.c,v 1.6 1999/04/30 09:29:40 christos Exp $ */
|
||||
/* $NetBSD: boot.c,v 1.7 1999/05/03 16:13:16 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -187,7 +187,7 @@ main()
|
||||
|
||||
marks[MARK_END] = (((u_long)marks[MARK_END] + sizeof(int) - 1)) &
|
||||
(-sizeof(int));
|
||||
arg = (prom_version() == PROM_OLDMON) ? PROM_LOADADDR : romp;
|
||||
arg = (prom_version() == PROM_OLDMON) ? (caddr_t)PROM_LOADADDR : romp;
|
||||
#if 0
|
||||
/* Old style cruft; works only with a.out */
|
||||
marks[MARK_END] |= 0xf0000000;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bootxx.c,v 1.4 1999/02/15 18:59:36 pk Exp $ */
|
||||
/* $NetBSD: bootxx.c,v 1.5 1999/05/03 16:13:16 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -84,10 +84,10 @@ main()
|
||||
prom_bootdevice != NULL ? prom_bootdevice : "unknown");
|
||||
}
|
||||
|
||||
(void)loadboot(&io, PROM_LOADADDR);
|
||||
(void)loadboot(&io, (caddr_t)PROM_LOADADDR);
|
||||
(io.f_dev->dv_close)(&io);
|
||||
|
||||
arg = (prom_version() == PROM_OLDMON) ? PROM_LOADADDR : romp;
|
||||
arg = (prom_version() == PROM_OLDMON) ? (caddr_t)PROM_LOADADDR : romp;
|
||||
(*entry)(arg);
|
||||
_rtt();
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: promlib.c,v 1.1 1999/02/15 18:59:36 pk Exp $ */
|
||||
/* $NetBSD: promlib.c,v 1.2 1999/05/03 16:13:16 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -208,7 +208,7 @@ prom_init()
|
||||
|
||||
if (CPU_ISSUN4) {
|
||||
prom_init_oldmon();
|
||||
romp = PROM_LOADADDR; /* Used in main() */
|
||||
romp = (caddr_t)PROM_LOADADDR; /* Used in main() */
|
||||
} else if (obpvec->pv_magic == OBP_MAGIC) {
|
||||
prom_init_obp();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user