From owner-svn-soc-all@FreeBSD.ORG Tue Jun 16 20:11:21 2015 Return-Path: Delivered-To: svn-soc-all@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DB6DBECD for ; Tue, 16 Jun 2015 20:11:21 +0000 (UTC) (envelope-from mihai@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AF72BB75 for ; Tue, 16 Jun 2015 20:11:21 +0000 (UTC) (envelope-from mihai@FreeBSD.org) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5GKBLKh017907 for ; Tue, 16 Jun 2015 20:11:21 GMT (envelope-from mihai@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.9/8.14.9/Submit) id t5GKBKCl017858 for svn-soc-all@FreeBSD.org; Tue, 16 Jun 2015 20:11:20 GMT (envelope-from mihai@FreeBSD.org) Date: Tue, 16 Jun 2015 20:11:20 GMT Message-Id: <201506162011.t5GKBKCl017858@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to mihai@FreeBSD.org using -f 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2015 20:11:21 -0000 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