Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jun 2006 21:17:11 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 99893 for review
Message-ID:  <200606232117.k5NLHB4w060189@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=99893

Change 99893 by jhb@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606232117.k5NLHB4w060189>