From owner-p4-projects@FreeBSD.ORG Wed Jun 28 19:34:32 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 3A62C16A416; Wed, 28 Jun 2006 19:34:32 +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 163F716A40F for ; Wed, 28 Jun 2006 19:34:32 +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 DA29E44F16 for ; Wed, 28 Jun 2006 19:34:31 +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 k5SJYVvd042461 for ; Wed, 28 Jun 2006 19:34:31 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k5SJYV6f042458 for perforce@freebsd.org; Wed, 28 Jun 2006 19:34:31 GMT (envelope-from jhb@freebsd.org) Date: Wed, 28 Jun 2006 19:34:31 GMT Message-Id: <200606281934.k5SJYV6f042458@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 100227 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: Wed, 28 Jun 2006 19:34:32 -0000 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) \