Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcarm/hpcarm G/C unused CPWAIT().
details: https://anonhg.NetBSD.org/src/rev/1a902cd58377
branches: trunk
changeset: 989084:1a902cd58377
user: rin <rin%NetBSD.org@localhost>
date: Mon Oct 11 14:29:15 2021 +0000
description:
G/C unused CPWAIT().
diffstat:
sys/arch/hpcarm/hpcarm/kloader_pxa2x0.S | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
diffs (30 lines):
diff -r addda51c856e -r 1a902cd58377 sys/arch/hpcarm/hpcarm/kloader_pxa2x0.S
--- a/sys/arch/hpcarm/hpcarm/kloader_pxa2x0.S Mon Oct 11 14:25:05 2021 +0000
+++ b/sys/arch/hpcarm/hpcarm/kloader_pxa2x0.S Mon Oct 11 14:29:15 2021 +0000
@@ -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 <nonaka%netbsd.org@localhost>
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index