summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91
diff options
context:
space:
mode:
authormmel <mmel@FreeBSD.org>2016-02-03 16:44:06 +0000
committermmel <mmel@FreeBSD.org>2016-02-03 16:44:06 +0000
commit9ad64bd8b3b9fdd2ebb2e8a3ccfb22c26b054885 (patch)
tree126858810fd127d73d995b47a8150dfea63ed1a7 /sys/arm/at91
parentdac55bd53a9f0a5723fd92b25c6b2be58c7c0142 (diff)
downloadFreeBSD-src-9ad64bd8b3b9fdd2ebb2e8a3ccfb22c26b054885.zip
FreeBSD-src-9ad64bd8b3b9fdd2ebb2e8a3ccfb22c26b054885.tar.gz
ARM: Consistently use cpu_setttb() instead of setttb().
Remove unused #define for drain_writebuf.
Diffstat (limited to 'sys/arm/at91')
-rw-r--r--sys/arm/at91/at91_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/at91/at91_machdep.c b/sys/arm/at91/at91_machdep.c
index 936f145..e904780 100644
--- a/sys/arm/at91/at91_machdep.c
+++ b/sys/arm/at91/at91_machdep.c
@@ -566,7 +566,7 @@ initarm(struct arm_boot_params *abp)
arm_devmap_bootstrap(l1pagetable, at91_devmap);
cpu_domains((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL * 2)) | DOMAIN_CLIENT);
- setttb(kernel_l1pt.pv_pa);
+ cpu_setttb(kernel_l1pt.pv_pa);
cpu_tlb_flushID();
cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL * 2));
@@ -612,7 +612,7 @@ initarm(struct arm_boot_params *abp)
/*
* We must now clean the cache again....
* Cleaning may be done by reading new data to displace any
- * dirty data in the cache. This will have happened in setttb()
+ * dirty data in the cache. This will have happened in cpu_setttb()
* but since we are boot strapping the addresses used for the read
* may have just been remapped and thus the cache could be out
* of sync. A re-clean after the switch will cure this.
OpenPOWER on IntegriCloud