Axe the stackgap macros as the Linux ABIs no longer use the stackgap.

This commit is contained in:
John Baldwin 2006-06-27 18:30:49 +00:00
parent 49d409a108
commit 4db580972e

View file

@ -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);