Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Sep 2014 21:46:54 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r271240 - head/sys/arm/arm
Message-ID:  <201409072146.s87LksmU026506@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Sun Sep  7 21:46:54 2014
New Revision: 271240
URL: http://svnweb.freebsd.org/changeset/base/271240

Log:
  When entering the kernel with the MMU off assume we are running from a
  va == pa map.
  
  I'm not sure the code would work if we are not running from the identity
  map as the ARM core may attempt to read the next instruction from an
  invalid memory location.

Modified:
  head/sys/arm/arm/locore.S

Modified: head/sys/arm/arm/locore.S
==============================================================================
--- head/sys/arm/arm/locore.S	Sun Sep  7 21:40:14 2014	(r271239)
+++ head/sys/arm/arm/locore.S	Sun Sep  7 21:46:54 2014	(r271240)
@@ -127,10 +127,6 @@ Lram_offset:	.word from_ram-_C_LABEL(_st
 from_ram:
 	nop
 #endif
-	adr	r7, Lunmapped
-	bic     r7, r7, #0xf0000000
-	orr     r7, r7, #PHYSADDR
-
 
 disable_mmu:
 	/* Disable MMU for a while */
@@ -144,7 +140,8 @@ disable_mmu:
 	nop
 	nop
 	nop
-	mov	pc, r7
+	CPWAIT(r0)
+
 Lunmapped:
 	/*
 	 * Build page table from scratch.



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