summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-08-06 17:09:11 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-08-06 17:09:11 +0000
commitc34587d22d99b424a080bd45bdd15912c80c0036 (patch)
tree536fdf0da0e5488f0978203bc04b69ecaa5ac2d4
parentfe200cec179c302d3c4390d198f62a27dcb0b584 (diff)
Remove 16 bit mode_t leftover in syscall processing.
ok deraadt@
-rw-r--r--sys/arch/vax/vax/trap.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/arch/vax/vax/trap.c b/sys/arch/vax/vax/trap.c
index 7d4caf6e0ae..8ac1d4fbf89 100644
--- a/sys/arch/vax/vax/trap.c
+++ b/sys/arch/vax/vax/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.29 2004/12/06 20:12:25 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.30 2005/08/06 17:09:10 miod Exp $ */
/* $NetBSD: trap.c,v 1.47 1999/08/21 19:26:20 matt Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -419,27 +419,6 @@ if(startsysc)printf("trap syscall %s pc %lx, psl %lx, sp %lx, pid %d, frame %p\n
goto bad;
}
}
- /*
- * XXX ***TAKE THIS OUT SOON***
- * this is an evil hack to get around incongruities in (some) syscall
- * argument types
- */
- switch(frame->code) {
- case SYS_open:
- args[2] &= 0xffff;
- break;
-
- case SYS_mkdir:
- case SYS_chmod:
- case SYS_fchmod:
- case SYS_mkfifo:
- case SYS_mknod:
- args[1] &= 0xffff;
- break;
-
- case SYS_umask:
- args[0] &= 0xffff;
- }
#ifdef KTRACE
if (KTRPOINT(p, KTR_SYSCALL))