Add (char *) cast on pointer arith.
This commit is contained in:
parent
c58989c955
commit
e2e037b261
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.5 2007/03/04 05:59:47 christos Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.6 2007/03/04 12:24:09 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2004, 2005 The NetBSD Foundation, Inc.
|
||||
|
@ -34,7 +34,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.5 2007/03/04 05:59:47 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.6 2007/03/04 12:24:09 tsutsui Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
|
||||
|
@ -167,7 +167,7 @@ mach_init(int argc, char *argv[], struct bootinfo *bi)
|
|||
|
||||
v = (void *)uvm_pageboot_alloc(USPACE); /* proc0 USPACE */
|
||||
lwp0.l_addr = proc0paddr = (struct user *) v;
|
||||
lwp0.l_md.md_regs = (struct frame *)(v + USPACE) - 1;
|
||||
lwp0.l_md.md_regs = (struct frame *)((char *)v + USPACE) - 1;
|
||||
curpcb = &lwp0.l_addr->u_pcb;
|
||||
curpcb->pcb_context[11] = MIPS_INT_MASK | MIPS_SR_INT_IE; /* SR */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue