Repos / kernel.git / commitdiff
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c2b81e0)
raw | patch | inline | side by side (parent: c2b81e0)
| author | zhaoyanbai <zhaoyanbai@126.com> | |
| Sun, 21 May 2023 15:10:22 +0000 (23:10 +0800) | ||
| committer | zhaoyanbai <zhaoyanbai@126.com> | |
| Sun, 21 May 2023 15:10:22 +0000 (23:10 +0800) |
| include/system.h | patch | blob | history |
diff --git a/include/system.h b/include/system.h
--- a/include/system.h
+++ b/include/system.h
do { \
asm("cli;"); \
printk("PANIC:" msg " file:%s function:%s line:%d\n", ##__VA_ARGS__, __FILE__, __FUNCTION__, __LINE__); \
- while (1) \
- ; \
+ while (1) { \
+ asm("hlt"); \
+ } \
} while (0);
extern char etext, edata, end;