PERFORCE change 99893 for review
John Baldwin
jhb at FreeBSD.org
Fri Jun 23 21:17:11 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=99893
Change 99893 by jhb at jhb_mutex on 2006/06/23 21:16:40
No more stackgap in Linux ABIs!
Affected files ...
.. //depot/projects/smpng/sys/compat/linux/linux_util.h#15 edit
Differences ...
==== //depot/projects/smpng/sys/compat/linux/linux_util.h#15 (text+ko) ====
@@ -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);
More information about the p4-projects
mailing list