From 2f301a00a7c15dd5ea252ba8a0b914d68842149f Mon Sep 17 00:00:00 2001 From: skrll Date: Sun, 9 Nov 2014 09:21:57 +0000 Subject: [PATCH] Ensure all memory operations are complete by before wfi. For example, the cpu could have just been in uvm_pageidlezero. --- sys/arch/arm/arm/cpufunc_asm_armv7.S | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/arch/arm/arm/cpufunc_asm_armv7.S b/sys/arch/arm/arm/cpufunc_asm_armv7.S index 388f6d64e063..f3c8336d8609 100644 --- a/sys/arch/arm/arm/cpufunc_asm_armv7.S +++ b/sys/arch/arm/arm/cpufunc_asm_armv7.S @@ -34,6 +34,7 @@ .arch armv7a ENTRY(armv7_cpu_sleep) + dsb wfi @ wait for an interrupt b irq_idle_entry @ assume we got an interrupt END(armv7_cpu_sleep)