From owner-p4-projects@FreeBSD.ORG Fri Jun 23 21:17:11 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id AC16E16A4AB; Fri, 23 Jun 2006 21:17:11 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F92316A4A7 for ; Fri, 23 Jun 2006 21:17:11 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 399E743D46 for ; Fri, 23 Jun 2006 21:17:11 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k5NLHBdZ060193 for ; Fri, 23 Jun 2006 21:17:11 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k5NLHB4w060189 for perforce@freebsd.org; Fri, 23 Jun 2006 21:17:11 GMT (envelope-from jhb@freebsd.org) Date: Fri, 23 Jun 2006 21:17:11 GMT Message-Id: <200606232117.k5NLHB4w060189@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Cc: Subject: PERFORCE change 99893 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 21:17:11 -0000 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 #include -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);