From owner-cvs-src@FreeBSD.ORG Mon Dec 15 02:25:19 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFE0716A4CE; Mon, 15 Dec 2003 02:25:19 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9546143D46; Mon, 15 Dec 2003 02:25:18 -0800 (PST) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hBFAPIXJ084644; Mon, 15 Dec 2003 02:25:18 -0800 (PST) (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hBFAPIuc084643; Mon, 15 Dec 2003 02:25:18 -0800 (PST) (envelope-from peter) Message-Id: <200312151025.hBFAPIuc084643@repoman.freebsd.org> From: Peter Wemm Date: Mon, 15 Dec 2003 02:25:18 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sys _null.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 10:25:20 -0000 peter 2003/12/15 02:25:18 PST FreeBSD src repository Modified files: sys/sys _null.h Log: amd64 doesn't define __LP64__ in the compiler, but it definately needs this definition. It fixes gnome for starters. I haven't tried *emacs yet. Like IA64, amd64 uses registers for the first few arguments and then the stack for the rest. This means the 64 bit promotion of the NULL (0) value is lost and its just pushed on as an 'int' in a varargs call. When the consumer walks the list and expects to pull off void * pointers via va_arg, then all hell breaks loose. Marcel: thanks a million for finding this! Revision Changes Path 1.2 +1 -1 src/sys/sys/_null.h