summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-12-27 10:47:32 +0000
committerbde <bde@FreeBSD.org>1999-12-27 10:47:32 +0000
commit18bc492d10cb25ad1e3f36c97303dec9c5262294 (patch)
tree53628478fac84cd282772f0890ef3eb60473b56e
parente449cadeebe209e353673443b2e57095d8910581 (diff)
downloadFreeBSD-src-18bc492d10cb25ad1e3f36c97303dec9c5262294.zip
FreeBSD-src-18bc492d10cb25ad1e3f36c97303dec9c5262294.tar.gz
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.
-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 7ff638d..1d3dab3 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 */
OpenPOWER on IntegriCloud