xv6

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2c00491ad7eaab5b0b2eecb0c5f84ccc7be71688
parent df65174d84ba40abab2ea058b3dfee8fcfdd6ee4
Author: Brian Swetland <swetland@frotz.net>
Date:   Sat, 28 Dec 2013 06:17:56 -0800

x86: add hlt() wrapper

Diffstat:
Minclude/x86.h | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/x86.h b/include/x86.h @@ -117,6 +117,12 @@ sti(void) asm volatile("sti"); } +static inline void +hlt(void) +{ + asm volatile("hlt"); +} + static inline uint xchg(volatile uint *addr, uint newval) {