Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2012 04:28:14 +0000 (UTC)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243422 - head/sys/dev/gxemul/cons
Message-ID:  <201211230428.qAN4SEeN036196@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmallett
Date: Fri Nov 23 04:28:13 2012
New Revision: 243422
URL: http://svnweb.freebsd.org/changeset/base/243422

Log:
  Use MIPS_PHYS_TO_DIRECT_UNCACHED rather than a homegrown version which is not
  compatible with 32-bit kernels.

Modified:
  head/sys/dev/gxemul/cons/gxemul_cons.c

Modified: head/sys/dev/gxemul/cons/gxemul_cons.c
==============================================================================
--- head/sys/dev/gxemul/cons/gxemul_cons.c	Fri Nov 23 03:34:12 2012	(r243421)
+++ head/sys/dev/gxemul/cons/gxemul_cons.c	Fri Nov 23 04:28:13 2012	(r243422)
@@ -42,6 +42,8 @@ __FBSDID("$FreeBSD$");
 
 #include <ddb/ddb.h>
 
+#include <machine/cpuregs.h>
+
 #define	GC_LOCK_INIT()		mtx_init(&gc_lock, "gc_lock", NULL, MTX_SPIN)
 
 #define	GC_LOCK() do {							\
@@ -97,8 +99,6 @@ static void		gxemul_cons_timeout(void *)
  * XXXRW: Should be using FreeBSD's bus routines here, but they are not
  * available until later in the boot.
  */
-#define	MIPS_XKPHYS_UNCACHED_BASE	0x9000000000000000
-
 typedef	uint64_t	paddr_t;
 typedef	uint64_t	vaddr_t;
 
@@ -106,7 +106,7 @@ static inline vaddr_t
 mips_phys_to_uncached(paddr_t phys)            
 {
 
-	return (phys | MIPS_XKPHYS_UNCACHED_BASE);
+	return (MIPS_PHYS_TO_DIRECT_UNCACHED(phys));
 }
 
 static inline uint8_t



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