more caddr_t lossage.

This commit is contained in:
christos 2007-03-05 14:13:10 +00:00
parent 1564bbc49c
commit c74f0279ea
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_machdep.c,v 1.19 2007/03/04 06:01:18 christos Exp $ */
/* $NetBSD: linux_machdep.c,v 1.20 2007/03/05 14:14:15 christos Exp $ */
/*-
* Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved.
@ -33,7 +33,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.19 2007/03/04 06:01:18 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.20 2007/03/05 14:14:15 christos Exp $");
#include <sys/param.h>
#include <sys/types.h>
@ -141,10 +141,10 @@ linux_sendsig(ksi, mask)
/* Allocate space for the signal handler context. */
if (onstack)
sp = ((void *)l->l_sigstk.ss_sp +
sp = ((char *)l->l_sigstk.ss_sp +
l->l_sigstk.ss_size);
else
sp = (void *)tf->tf_rsp - 128;
sp = (char *)tf->tf_rsp - 128;
/*
* Save FPU state, if any

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux32_exec.c,v 1.5 2007/02/15 15:29:51 ad Exp $ */
/* $NetBSD: linux32_exec.c,v 1.6 2007/03/05 14:13:10 christos Exp $ */
/*-
* Copyright (c) 1994-2007 The NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux32_exec.c,v 1.5 2007/02/15 15:29:51 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux32_exec.c,v 1.6 2007/03/05 14:13:10 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -175,7 +175,7 @@ linux32_e_proc_init(p, parent, forkflags)
* use our own vmspace.
*/
vm = (parent) ? parent->p_vmspace : p->p_vmspace;
s->p_break = vm->vm_daddr + ctob(vm->vm_dsize);
s->p_break = (char *)vm->vm_daddr + ctob(vm->vm_dsize);
/*
* Linux threads are emulated as NetBSD processes (not lwp)