Module Name: src Committed By: rin Date: Mon Oct 11 14:29:15 UTC 2021
Modified Files: src/sys/arch/hpcarm/hpcarm: kloader_pxa2x0.S Log Message: G/C unused CPWAIT(). To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/hpcarm/hpcarm/kloader_pxa2x0.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/hpcarm/hpcarm/kloader_pxa2x0.S diff -u src/sys/arch/hpcarm/hpcarm/kloader_pxa2x0.S:1.1 src/sys/arch/hpcarm/hpcarm/kloader_pxa2x0.S:1.2 --- src/sys/arch/hpcarm/hpcarm/kloader_pxa2x0.S:1.1 Sat Mar 31 14:02:54 2012 +++ src/sys/arch/hpcarm/hpcarm/kloader_pxa2x0.S Mon Oct 11 14:29:15 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: kloader_pxa2x0.S,v 1.1 2012/03/31 14:02:54 nonaka Exp $ */ +/* $NetBSD: kloader_pxa2x0.S,v 1.2 2021/10/11 14:29:15 rin Exp $ */ /*- * Copyright (C) 2012 NONAKA Kimihiro <non...@netbsd.org> @@ -29,20 +29,6 @@ #include <arm/armreg.h> -/* - * CPWAIT -- Canonical method to wait for CP15 update. - * NOTE: Clobbers the specified temp reg. - * copied from arm/arm/cpufunc_asm_xscale.S - * XXX: better be in a common header file. - */ -#define CPWAIT_BRANCH \ - sub pc, pc, #4 - -#define CPWAIT(tmp) \ - mrc p15, 0, tmp, c2, c0, 0 /* arbitrary read of CP15 */ ;\ - mov tmp, tmp /* wait for it to complete */ ;\ - CPWAIT_BRANCH /* branch to next insn */ - #define VATOPA(reg) \ bic reg, reg, #0xff000000 /* clear upper 8 bits */ ;\ orr reg, reg, #0xa0000000 /* OR in physical base address */