diff options
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/freebsd_machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/i386/i386/linux_machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/i386/i386/mem.c | 4 | ||||
-rw-r--r-- | sys/arch/i386/i386/svr4_machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/i386/isa/isa_machdep.c | 6 |
5 files changed, 11 insertions, 11 deletions
diff --git a/sys/arch/i386/i386/freebsd_machdep.c b/sys/arch/i386/i386/freebsd_machdep.c index c1e2a7261c5..bb1cd69add0 100644 --- a/sys/arch/i386/i386/freebsd_machdep.c +++ b/sys/arch/i386/i386/freebsd_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: freebsd_machdep.c,v 1.20 2006/09/19 11:06:33 jsg Exp $ */ +/* $OpenBSD: freebsd_machdep.c,v 1.21 2006/12/29 13:04:36 pedro Exp $ */ /* $NetBSD: freebsd_machdep.c,v 1.10 1996/05/03 19:42:05 christos Exp $ */ /*- @@ -95,7 +95,7 @@ freebsd_sendsig(sig_t catcher, int sig, int mask, u_long code, int type, */ if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack && (psp->ps_sigonstack & sigmask(sig))) { - fp = (struct freebsd_sigframe *)(psp->ps_sigstk.ss_sp + + fp = (struct freebsd_sigframe *)((char *)psp->ps_sigstk.ss_sp + psp->ps_sigstk.ss_size - sizeof(struct freebsd_sigframe)); psp->ps_sigstk.ss_flags |= SS_ONSTACK; } else { diff --git a/sys/arch/i386/i386/linux_machdep.c b/sys/arch/i386/i386/linux_machdep.c index 5177e6718eb..7169a3afab9 100644 --- a/sys/arch/i386/i386/linux_machdep.c +++ b/sys/arch/i386/i386/linux_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_machdep.c,v 1.32 2006/09/19 11:06:33 jsg Exp $ */ +/* $OpenBSD: linux_machdep.c,v 1.33 2006/12/29 13:04:37 pedro Exp $ */ /* $NetBSD: linux_machdep.c,v 1.29 1996/05/03 19:42:11 christos Exp $ */ /* @@ -121,7 +121,7 @@ linux_sendsig(sig_t catcher, int sig, int mask, u_long code, int type, */ if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack && (psp->ps_sigonstack & sigmask(sig))) { - fp = (struct linux_sigframe *)(psp->ps_sigstk.ss_sp + + fp = (struct linux_sigframe *)((char *)psp->ps_sigstk.ss_sp + psp->ps_sigstk.ss_size - sizeof(struct linux_sigframe)); psp->ps_sigstk.ss_flags |= SS_ONSTACK; } else { diff --git a/sys/arch/i386/i386/mem.c b/sys/arch/i386/i386/mem.c index 1643f68a649..b65b85a9ff1 100644 --- a/sys/arch/i386/i386/mem.c +++ b/sys/arch/i386/i386/mem.c @@ -1,5 +1,5 @@ /* $NetBSD: mem.c,v 1.31 1996/05/03 19:42:19 christos Exp $ */ -/* $OpenBSD: mem.c,v 1.31 2006/09/19 11:06:33 jsg Exp $ */ +/* $OpenBSD: mem.c,v 1.32 2006/12/29 13:04:37 pedro Exp $ */ /* * Copyright (c) 1988 University of Utah. * Copyright (c) 1982, 1986, 1990, 1993 @@ -194,7 +194,7 @@ mmrw(dev_t dev, struct uio *uio, int flags) default: return (ENXIO); } - iov->iov_base += c; + (char *)iov->iov_base += c; iov->iov_len -= c; uio->uio_offset += c; uio->uio_resid -= c; diff --git a/sys/arch/i386/i386/svr4_machdep.c b/sys/arch/i386/i386/svr4_machdep.c index 001b7ec6287..d4d77930505 100644 --- a/sys/arch/i386/i386/svr4_machdep.c +++ b/sys/arch/i386/i386/svr4_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_machdep.c,v 1.24 2006/09/19 11:06:33 jsg Exp $ */ +/* $OpenBSD: svr4_machdep.c,v 1.25 2006/12/29 13:04:37 pedro Exp $ */ /* $NetBSD: svr4_machdep.c,v 1.24 1996/05/03 19:42:26 christos Exp $ */ /* @@ -323,7 +323,7 @@ svr4_sendsig(sig_t catcher, int sig, int mask, u_long code, int type, */ if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack && (psp->ps_sigonstack & sigmask(sig))) { - fp = (struct svr4_sigframe *)(psp->ps_sigstk.ss_sp + + fp = (struct svr4_sigframe *)((char *)psp->ps_sigstk.ss_sp + psp->ps_sigstk.ss_size - sizeof(struct svr4_sigframe)); psp->ps_sigstk.ss_flags |= SS_ONSTACK; } else { diff --git a/sys/arch/i386/isa/isa_machdep.c b/sys/arch/i386/isa/isa_machdep.c index 7fd9125e29b..cbe72d2b01f 100644 --- a/sys/arch/i386/isa/isa_machdep.c +++ b/sys/arch/i386/isa/isa_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isa_machdep.c,v 1.56 2006/11/11 21:47:52 kettenis Exp $ */ +/* $OpenBSD: isa_machdep.c,v 1.57 2006/12/29 13:04:37 pedro Exp $ */ /* $NetBSD: isa_machdep.c,v 1.22 1997/06/12 23:57:32 thorpej Exp $ */ #define ISA_DMA_STATS @@ -951,7 +951,7 @@ _isa_bus_dmamap_sync(bus_dma_tag_t t, bus_dmamap_t map, bus_addr_t offset, * caller's buffer to the bounce buffer. */ if (cookie->id_flags & ID_IS_BOUNCING) - bcopy(cookie->id_origbuf + offset, + bcopy((char *)cookie->id_origbuf + offset, cookie->id_bouncebuf + offset, len); break; @@ -962,7 +962,7 @@ _isa_bus_dmamap_sync(bus_dma_tag_t t, bus_dmamap_t map, bus_addr_t offset, * bounce buffer to the caller's buffer. */ if (cookie->id_flags & ID_IS_BOUNCING) - bcopy(cookie->id_bouncebuf + offset, + bcopy((char *)cookie->id_bouncebuf + offset, cookie->id_origbuf + offset, len); break; |