projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed bugs, added progress bar, and more
[dosdemo]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index
6d869eb
..
ce43bbe
100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-49,6
+49,9
@@
void perf_end(void);
void debug_break(void);
#pragma aux debug_break = "int 3";
+
+void halt(void);
+#pragma aux halt = "hlt";
#endif
#ifdef __GNUC__
@@
-72,6
+75,9
@@
void debug_break(void);
#define debug_break() \
asm volatile ("int $3")
+
+#define halt() \
+ asm volatile("hlt")
#endif
#ifdef _MSC_VER