Date: Wed, 28 Jun 2006 19:34:31 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 100227 for review Message-ID: <200606281934.k5SJYV6f042458@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100227 Change 100227 by jhb@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) \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606281934.k5SJYV6f042458>