Module Name:    src
Committed By:   skrll
Date:           Sun Oct 16 06:03:14 UTC 2022

Modified Files:
        src/sys/arch/riscv/riscv: locore.S

Log Message:
Use a local label


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/riscv/riscv/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/riscv/riscv/locore.S
diff -u src/sys/arch/riscv/riscv/locore.S:1.37 src/sys/arch/riscv/riscv/locore.S:1.38
--- src/sys/arch/riscv/riscv/locore.S:1.37	Sun Oct 16 05:56:50 2022
+++ src/sys/arch/riscv/riscv/locore.S	Sun Oct 16 06:03:14 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.37 2022/10/16 05:56:50 skrll Exp $ */
+/* $NetBSD: locore.S,v 1.38 2022/10/16 06:03:14 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014, 2022 The NetBSD Foundation, Inc.
@@ -245,7 +245,7 @@ ENTRY_NP(start)
 	srli	s0, s0, SEGSHIFT	// round down to NBSEG, and shift in
 	slli	s0, s0, (SEGSHIFT - PGSHIFT + PTE_PPN_SHIFT)	// ... to PPN
 	or	s0, s0, s7
-.Lfill:
+1:
 	VPRINTS("kern:    ")
 	VPRINTX(s9)
 	VPRINTS(":  ")
@@ -255,7 +255,7 @@ ENTRY_NP(start)
 	add	s0, s0, s6		// advance PA in PDE to next segment
 	add	s9, s9, SZREG		// advance to next PDE slot
 	addi	s5, s5, -1		// count down segment
-	bnez	s5, .Lfill		// loop if more
+	bnez	s5, 1b			// loop if more
 
 	li	s7, PTE_KERN | PTE_R | PTE_W
 

Reply via email to