aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sysent.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1999-12-27 10:47:32 +0000
committerBruce Evans <bde@FreeBSD.org>1999-12-27 10:47:32 +0000
commite3bdd8710276b786e5c992876c534f45e8a291e1 (patch)
treecacbe35741a3586904be2d00b19889116691206d /sys/sys/sysent.h
parent654f6be1c8866a4a461e2315f7d525c7ff081a3d (diff)
downloadsrc-e3bdd8710276b786e5c992876c534f45e8a291e1.tar.gz
src-e3bdd8710276b786e5c992876c534f45e8a291e1.zip
This should have been committed with related changes to .c files.
Changed the type used to represent the user stack pointer from `long *' to `register_t *'. This fixes bugs like misplacement of argc and argv on the user stack on i386's with 64-bit longs. We still use longs to represent "words" like argc and argv, and assume that they are on the stack (and that there is stack). The suword() and fuword() families should also use register_t.
Notes
Notes: svn path=/head/; revision=55142
Diffstat (limited to 'sys/sys/sysent.h')
-rw-r--r--sys/sys/sysent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h
index 7ff638da2fea..1d3dab349905 100644
--- a/sys/sys/sysent.h
+++ b/sys/sys/sysent.h
@@ -63,7 +63,7 @@ struct sysentvec {
int *sv_errtbl; /* errno translation table */
int (*sv_transtrap) __P((int, int));
/* translate trap-to-signal mapping */
- int (*sv_fixup) __P((long **, struct image_params *));
+ int (*sv_fixup) __P((register_t **, struct image_params *));
/* stack fixup function */
void (*sv_sendsig) __P((void (*)(int), int, sigset_t *, u_long));
/* send signal */