Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/imx31 Build fix
details: https://anonhg.NetBSD.org/src/rev/bb47fae56d03
branches: trunk
changeset: 946457:bb47fae56d03
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Nov 28 14:29:31 2020 +0000
description:
Build fix
diffstat:
sys/arch/evbarm/imx31/imx31lk_start.S | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r f3411ac07486 -r bb47fae56d03 sys/arch/evbarm/imx31/imx31lk_start.S
--- a/sys/arch/evbarm/imx31/imx31lk_start.S Sat Nov 28 14:29:25 2020 +0000
+++ b/sys/arch/evbarm/imx31/imx31lk_start.S Sat Nov 28 14:29:31 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: imx31lk_start.S,v 1.6 2018/10/15 16:54:54 skrll Exp $ */
+/* $NetBSD: imx31lk_start.S,v 1.7 2020/11/28 14:29:31 skrll Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <arm/armreg.h>
#include "assym.h"
-RCSID("$NetBSD: imx31lk_start.S,v 1.6 2018/10/15 16:54:54 skrll Exp $")
+RCSID("$NetBSD: imx31lk_start.S,v 1.7 2020/11/28 14:29:31 skrll Exp $")
#ifndef SDRAM_START
#define SDRAM_START 0x80000000
@@ -46,7 +46,8 @@
.text
.global _C_LABEL(imx31lk_start)
-_C_LABEL(imx31lk_start):
+
+ENTRY_NP(imx31lk_start)
cpsid if, #PSR_SVC32_MODE
/*
@@ -60,7 +61,8 @@
mcr p15, 0, r3, c2, c0, 2 /* set TTBCR to enable TTBR1 */
#endif
- mov r1, #(KERNEL_BASE >> L1_S_SHIFT)
+ ldr r1, =KERNEL_BASE
+ lsr r1, r1, L1_S_SHIFT
add r2, r1, #0x80 /* 128 1MB entries */
ldr r3, .Lsdram_pde
1:
Home |
Main Index |
Thread Index |
Old Index