git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
refactor: rewrite kernel's make script
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
spike.h
diff --git
a/lunaix-os/includes/lunaix/spike.h
b/lunaix-os/includes/lunaix/spike.h
index 5ea8d47b2b759068d41895ad1a622c7d9ce2fee7..2d718f5bda460e5f707d2ebdf4d4b65ab0c9236e 100644
(file)
--- a/
lunaix-os/includes/lunaix/spike.h
+++ b/
lunaix-os/includes/lunaix/spike.h
@@
-66,11
+66,14
@@
#define __USER__ __attribute__((section(".usrtext")))
+#define DO_SPIN \
+ while (1) \
+ ;
+
inline static void
spin()
{
- while (1)
- ;
+ DO_SPIN
}
#ifndef __LUNAIXOS_NASSERT__