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: make pci device driver loading passive, pci bus scanner will not load them...
[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 356e4b392bcca12b28dd5f93b2f56fc81e3c3910..652fda874c821be670406d749125637431a95fab 100644
(file)
--- a/
lunaix-os/includes/lunaix/spike.h
+++ b/
lunaix-os/includes/lunaix/spike.h
@@
-64,19
+64,6
@@
: 0) \
: (31 - __builtin_clz(x)))
: 0) \
: (31 - __builtin_clz(x)))
-#define DO_SPIN \
- { \
- volatile int __infloop = 1; \
- while (__infloop) \
- ; \
- }
-
-inline static void noret
-spin()
-{
- DO_SPIN
-}
-
#ifndef __LUNAIXOS_NASSERT__
#define assert(cond) \
if (!(cond)) { \
#ifndef __LUNAIXOS_NASSERT__
#define assert(cond) \
if (!(cond)) { \
@@
-97,7
+84,7
@@
__assert_fail(const char* expr, const char* file, unsigned int line)
#define assert(cond) (void)(cond); // assert nothing
#define assert_msg(cond, msg) (void)(cond); // assert nothing
#define assert(cond) (void)(cond); // assert nothing
#define assert_msg(cond, msg) (void)(cond); // assert nothing
-#endif
// __LUNAIXOS_NASSERT__
+#endif // __LUNAIXOS_NASSERT__
void noret
panick(const char* msg);
void noret
panick(const char* msg);