PERFORCE change 100227 for review
John Baldwin
jhb at FreeBSD.org
Wed Jun 28 19:34:32 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=100227
Change 100227 by jhb at jhb_mutex on 2006/06/28 19:33:59
Axe the stackgap macros! There's some scary i386-specific code under
#if 0 to try to use the stackgap to set the LDT via sysarch(). If
anyone wants to revive that they can come up with a suitable kern_foo()
or i386_foo() API to use instead.
Affected files ...
.. //depot/projects/smpng/sys/compat/svr4/svr4_util.h#9 edit
Differences ...
==== //depot/projects/smpng/sys/compat/svr4/svr4_util.h#9 (text+ko) ====
@@ -47,30 +47,6 @@
#define DPRINTF(a)
#endif
-
-static __inline caddr_t stackgap_init(void);
-static __inline void *stackgap_alloc(caddr_t *, size_t);
-
-static __inline caddr_t
-stackgap_init()
-{
-#define szsigcode (*(curthread->td_proc->p_sysent->sv_szsigcode))
- return (caddr_t)(((caddr_t)PS_STRINGS) - 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)(PS_STRINGS - szsigcode))
- return NULL;
- *sgp += sz;
- return p;
-}
-
int svr4_emul_find(struct thread *, char *, enum uio_seg, char **, int);
#define CHECKALT(td, upath, pathp, i) \
More information about the p4-projects
mailing list