Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Mar 2005 07:02:11 GMT
From:      Peter Grehan <grehan@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/78345: [PATCH] xorg-server/powerpc: server loadable modules require icache/dcache syncing	
Message-ID:  <200503030702.j2372BtY026649@freefall.freebsd.org>
Resent-Message-ID: <200503030710.j237APi5030888@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         78345
>Category:       ports
>Synopsis:       [PATCH] xorg-server/powerpc: server loadable modules require icache/dcache syncing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 03 07:10:25 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Peter Grehan
>Release:        FreeBSD 6.0-CURRENT powerpc
>Organization:
>Environment:
FreeBSD emacfbsd.ptree32.com.au 6.0-CURRENT FreeBSD 6.0-CURRENT #75: Tue Mar  1 17:38:52 EST 2005     grehan@:/usr/obj/powerpc/home/grehan/freebsd/dev/src/sys/GENERIC  powerpc
>Description:
	The class of powerpc machines that sync the icache/dcache after a load needs to include FreeBSD
>How-To-Repeat:
	Run up the server on a G3 and watch the SIGILLs :)
>Fix:

--- xorg_patch-loader.c begins here ---
--- programs/Xserver/hw/xfree86/loader/loader.c.orig	Tue Feb 22 06:58:18 2005
+++ programs/Xserver/hw/xfree86/loader/loader.c	Tue Feb 22 06:59:09 2005
@@ -552,8 +552,8 @@
 	FatalError("\n_LoaderFileToMem() read() failed: %s\n",
 		   strerror(errno));
 
-# if (defined(linux) || defined(__NetBSD__) || defined(__OpenBSD__)) \
-    && defined(__powerpc__)
+# if (defined(linux) || defined(__NetBSD__) || defined(__OpenBSD__) \
+    || defined(__FreeBSD__)) && defined(__powerpc__)
     /*
      * Keep the instruction cache in sync with changes in the
      * main memory.
--- xorg_patch-loader.c ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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