Module Name: src Committed By: skrll Date: Sat Oct 14 15:35:02 UTC 2017
Modified Files: src/sys/arch/arm/arm32: locore.S Log Message: Fix a comment To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/arch/arm/arm32/locore.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/arm/arm32/locore.S diff -u src/sys/arch/arm/arm32/locore.S:1.37 src/sys/arch/arm/arm32/locore.S:1.38 --- src/sys/arch/arm/arm32/locore.S:1.37 Wed Aug 27 03:35:32 2014 +++ src/sys/arch/arm/arm32/locore.S Sat Oct 14 15:35:02 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: locore.S,v 1.37 2014/08/27 03:35:32 matt Exp $ */ +/* $NetBSD: locore.S,v 1.38 2017/10/14 15:35:02 skrll Exp $ */ /* * Copyright (C) 1994-1997 Mark Brinicombe @@ -40,7 +40,7 @@ /* What size should this really be ? It is only used by init_arm() */ #define INIT_ARM_STACK_SIZE 2048 - RCSID("$NetBSD: locore.S,v 1.37 2014/08/27 03:35:32 matt Exp $") + RCSID("$NetBSD: locore.S,v 1.38 2017/10/14 15:35:02 skrll Exp $") /* * This is for kvm_mkdb, and should be the address of the beginning @@ -56,8 +56,12 @@ ASENTRY_NP(start) mrs r1, cpsr /* fetch CPSR value */ msr spsr_sx, r1 /* set SPSR[23:8] to known value */ + /* + * Get bss bounds (r1, r2), curlwp or curcpu (r8), and set initial + * stack. + */ adr r1, .Lstart - ldmia r1, {r1, r2, r8, sp} /* Set initial stack and */ + ldmia r1, {r1, r2, r8, sp} #if defined(TPIDRPRW_IS_CURCPU) || defined(TPIDRPRW_IS_CURLWP) mcr p15, 0, r8, c13, c0, 4