summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-04 01:15:17 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-04 01:15:17 +0000
commit840116b332dfea9d5cf197c7750d3a38ae179831 (patch)
tree2cf96f67b3066965d9c4501fddbcff1c8d246613
parent3ae548cfd26a86a0022c9dc1e8b6267a7d00c957 (diff)
Do not mix differently signed entities in comparisons.
Remove unnecessary include.
-rw-r--r--sys/arch/amiga/include/vmparam.h6
-rw-r--r--sys/arch/m68k/m68k/sunos_machdep.c5
2 files changed, 5 insertions, 6 deletions
diff --git a/sys/arch/amiga/include/vmparam.h b/sys/arch/amiga/include/vmparam.h
index a6ae61969cb..c8053c4b8b5 100644
--- a/sys/arch/amiga/include/vmparam.h
+++ b/sys/arch/amiga/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.2 1996/05/02 06:44:47 niklas Exp $ */
+/* $OpenBSD: vmparam.h,v 1.3 1996/08/04 01:15:15 niklas Exp $ */
/* $NetBSD: vmparam.h,v 1.14 1996/04/21 21:13:23 veego Exp $ */
/*
@@ -61,8 +61,8 @@
*/
/* Sun settings. Still hope, that I might get sun3 binaries to work... */
-#define USRTEXT 0x2000
-#define USRSTACK 0x0E000000
+#define USRTEXT (vm_offset_t)0x2000
+#define USRSTACK (vm_offset_t)0x0E000000
#define LOWPAGES btoc(USRTEXT)
#define KUSER_AREA (-UPAGES*NBPG)
/*
diff --git a/sys/arch/m68k/m68k/sunos_machdep.c b/sys/arch/m68k/m68k/sunos_machdep.c
index fb2c3591444..8a38c70127d 100644
--- a/sys/arch/m68k/m68k/sunos_machdep.c
+++ b/sys/arch/m68k/m68k/sunos_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sunos_machdep.c,v 1.6 1996/05/09 22:30:12 niklas Exp $ */
+/* $OpenBSD: sunos_machdep.c,v 1.7 1996/08/04 01:15:16 niklas Exp $ */
/* $NetBSD: sunos_machdep.c,v 1.10 1996/05/05 16:11:31 veego Exp $ */
/*
@@ -61,7 +61,6 @@
#include <compat/sunos/sunos.h>
#include <compat/sunos/sunos_syscallargs.h>
-#include <machine/psl.h>
#include <machine/reg.h>
#ifdef DEBUG
@@ -142,7 +141,7 @@ sunos_sendsig(catcher, sig, mask, code)
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else
fp = (struct sunos_sigframe *)frame->f_regs[SP] - 1;
- if ((unsigned)fp <= USRSTACK - ctob(p->p_vmspace->vm_ssize))
+ if ((vm_offset_t)fp <= USRSTACK - ctob(p->p_vmspace->vm_ssize))
(void)grow(p, (unsigned)fp);
#ifdef DEBUG
if ((sigdebug & SDB_KSTACK) && p->p_pid == sigpid)