summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-06-27 18:30:49 +0000
committerjhb <jhb@FreeBSD.org>2006-06-27 18:30:49 +0000
commit24c44609a0f6fefb2a8c6a273f776459c564ca62 (patch)
treef9f79a970bc275a2e39fc098e1fe9775b9c11db4 /sys/compat
parentdff69a853ef2a388e03aefe1ccf2d04909ef8405 (diff)
downloadFreeBSD-src-24c44609a0f6fefb2a8c6a273f776459c564ca62.zip
FreeBSD-src-24c44609a0f6fefb2a8c6a273f776459c564ca62.tar.gz
Axe the stackgap macros as the Linux ABIs no longer use the stackgap.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_util.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/sys/compat/linux/linux_util.h b/sys/compat/linux/linux_util.h
index b2711f8..ee47baf 100644
--- a/sys/compat/linux/linux_util.h
+++ b/sys/compat/linux/linux_util.h
@@ -49,32 +49,6 @@
#include <sys/cdefs.h>
#include <sys/uio.h>
-static __inline caddr_t stackgap_init(void);
-static __inline void *stackgap_alloc(caddr_t *, size_t);
-
-#define szsigcode (*(curthread->td_proc->p_sysent->sv_szsigcode))
-#define psstrings (curthread->td_proc->p_sysent->sv_psstrings)
-
-static __inline caddr_t
-stackgap_init()
-{
- return (caddr_t)(psstrings - szsigcode - SPARE_USRSPACE);
-}
-
-static __inline void *
-stackgap_alloc(sgp, sz)
- caddr_t *sgp;
- size_t sz;
-{
- void *p = (void *) *sgp;
-
- sz = ALIGN(sz);
- if (*sgp + sz > (caddr_t)(psstrings - szsigcode))
- return NULL;
- *sgp += sz;
- return p;
-}
-
extern const char linux_emul_path[];
int linux_emul_convpath(struct thread *, char *, enum uio_seg, char **, int);
OpenPOWER on IntegriCloud