Module Name: src
Committed By: skrll
Date: Fri Dec 4 11:14:14 UTC 2015
Modified Files:
src/sys/arch/evbarm/odroid: odroid_start.S
Log Message:
Update comments to reflect reality
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/evbarm/odroid/odroid_start.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbarm/odroid/odroid_start.S
diff -u src/sys/arch/evbarm/odroid/odroid_start.S:1.20 src/sys/arch/evbarm/odroid/odroid_start.S:1.21
--- src/sys/arch/evbarm/odroid/odroid_start.S:1.20 Fri Dec 4 11:09:54 2015
+++ src/sys/arch/evbarm/odroid/odroid_start.S Fri Dec 4 11:14:14 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: odroid_start.S,v 1.20 2015/12/04 11:09:54 skrll Exp $ */
+/* $NetBSD: odroid_start.S,v 1.21 2015/12/04 11:14:14 skrll Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
#include <evbarm/odroid/platform.h>
-RCSID("$NetBSD: odroid_start.S,v 1.20 2015/12/04 11:09:54 skrll Exp $")
+RCSID("$NetBSD: odroid_start.S,v 1.21 2015/12/04 11:14:14 skrll Exp $")
#if defined(VERBOSE_INIT_ARM)
@@ -88,13 +88,12 @@ _C_LABEL(odroid_start):
setend be /* force big endian */
#endif
-// .arch_extension virt
- /* Leave HYP mode */
+ /* Leave HYP mode and move into supervisor mode with IRQs/FIQs disabled. */
mrs r0, cpsr
and r0, r0, #(PSR_MODE) /* Mode is in the low 5 bits of CPSR */
teq r0, #(PSR_HYP32_MODE) /* Hyp Mode? */
bne 1f
- /* Ensure that IRQ, FIQ and Aborts will be disabled after eret */
+ /* Ensure that IRQ, and FIQ will be disabled after eret */
mrs r0, cpsr
bic r0, r0, #(PSR_MODE)
orr r0, r0, #(PSR_SVC32_MODE)
@@ -106,8 +105,6 @@ _C_LABEL(odroid_start):
eret
1:
-// /* Move into supervisor mode and disable IRQs/FIQs. */
-// cpsid if, #PSR_SVC32_MODE
/*
* Save any arguments passed to us. If .start is not at
* 0x80000000 but .text is, we can't directly use the address that