Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2015 20:11:20 GMT
From:      mihai@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r287176 - in soc2015/mihai/bhyve-on-arm-head/sys/arm: arm conf
Message-ID:  <201506162011.t5GKBKCl017858@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mihai
Date: Tue Jun 16 20:11:20 2015
New Revision: 287176
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=287176

Log:
  soc2015: mihai: modify FreeBSD to enter SVC mode when starting

Modified:
  soc2015/mihai/bhyve-on-arm-head/sys/arm/arm/locore-v6.S
  soc2015/mihai/bhyve-on-arm-head/sys/arm/conf/FVP_VE_CORTEX_A15x1

Modified: soc2015/mihai/bhyve-on-arm-head/sys/arm/arm/locore-v6.S
==============================================================================
--- soc2015/mihai/bhyve-on-arm-head/sys/arm/arm/locore-v6.S	Tue Jun 16 19:49:12 2015	(r287175)
+++ soc2015/mihai/bhyve-on-arm-head/sys/arm/arm/locore-v6.S	Tue Jun 16 20:11:20 2015	(r287176)
@@ -68,8 +68,8 @@
 ASENTRY_NP(_start)
 	STOP_UNWINDING		/* Can't unwind into the bootloader! */
 
-	/* Make sure interrupts are disabled. */
-	cpsid	ifa
+	/* Setup status register for supervisor mode, interrupts disabled */
+	msr     cpsr_fc, #0xd3
 
 	mov	r8, r0		/* 0 or boot mode from boot2 */
 	mov	r9, r1		/* Save Machine type */
@@ -398,8 +398,8 @@
 #if defined(SMP)
 
 ASENTRY_NP(mpentry)
-	/* Make sure interrupts are disabled. */
-	cpsid	ifa
+	/* Setup status register for supervisor mode, interrupts disabled */
+	msr     cpsr_fc, #0xd3
 
 	/* Setup core, disable all caches. */
 	mrc	CP15_SCTLR(r0)

Modified: soc2015/mihai/bhyve-on-arm-head/sys/arm/conf/FVP_VE_CORTEX_A15x1
==============================================================================
--- soc2015/mihai/bhyve-on-arm-head/sys/arm/conf/FVP_VE_CORTEX_A15x1	Tue Jun 16 19:49:12 2015	(r287175)
+++ soc2015/mihai/bhyve-on-arm-head/sys/arm/conf/FVP_VE_CORTEX_A15x1	Tue Jun 16 20:11:20 2015	(r287176)
@@ -32,7 +32,7 @@
 options 	BREAK_TO_DEBUGGER
 options		DEBUG
 options		EARLY_PRINTF
-options 	VERBOSE_SYSINIT		# Enable verbose sysinit messages
+#options 	VERBOSE_SYSINIT		# Enable verbose sysinit messages
 options 	KDB			# Enable kernel debugger support
 # For minimum debugger support (stable branch) use:
 options 	KDB_TRACE		# Print a stack trace for a panic



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