From owner-cvs-src@FreeBSD.ORG Mon Aug 8 07:02:13 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org 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 AC5AE16A41F; Mon, 8 Aug 2005 07:02:13 +0000 (GMT) (envelope-from grehan@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7846A43D45; Mon, 8 Aug 2005 07:02:13 +0000 (GMT) (envelope-from grehan@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j7872DcQ089550; Mon, 8 Aug 2005 07:02:13 GMT (envelope-from grehan@repoman.freebsd.org) Received: (from grehan@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j7872DjC089549; Mon, 8 Aug 2005 07:02:13 GMT (envelope-from grehan) Message-Id: <200508080702.j7872DjC089549@repoman.freebsd.org> From: Peter Grehan Date: Mon, 8 Aug 2005 07:02:13 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/powerpc/powerpc machdep.c trap.c trap_subr.S X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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, 08 Aug 2005 07:02:13 -0000 grehan 2005-08-08 07:02:13 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/powerpc/powerpc machdep.c trap.c trap_subr.S Log: MFC machdep.c r1.90 trap.c r1.55 trap_subr.S r1.15 Temporary band-aid to fix hang when a process exec's Altivec instructions. trap_subr.S: declare a stub for the a-unavailable trap that does an absolute jump to the vector-assist trap. This is due to the fact that the vec-unavail trap doesn't start at a 256-byte boundary, so the trick of masking the bottom 8 bits of the link register to identify the interrupt doesn't work, so let the vec-assist case handle Altivec-disabled for the time being. Note that this will be fixed in the future with a much smaller vector code-stub (< 16 bytes) that will allow use of strange vector offsets that are also present in 4xx processors, and also allow smaller differences in vector codepaths on the G5. trap.c: Treat altivec-unavailable/assist process traps as SIGILL. Not quite correct, since altivec-assist should really be a panic, but it is fine for the moment due to the above measure. machdep.c Install the stub code for the altivec-unavailable trap, and the standard trap code at the altivec-assist. Approved by: re (Ken Smith) Revision Changes Path 1.89.2.1 +3 -0 src/sys/powerpc/powerpc/machdep.c 1.54.2.1 +5 -0 src/sys/powerpc/powerpc/trap.c 1.14.2.1 +8 -0 src/sys/powerpc/powerpc/trap_subr.S