projects
/
com32
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
progress on all fronts
[com32]
/
src
/
asmops.h
diff --git
a/src/asmops.h
b/src/asmops.h
index
09adb13
..
5d8ec31
100644
(file)
--- a/
src/asmops.h
+++ b/
src/asmops.h
@@
-77,5
+77,9
@@
static inline uint32_t inpd(uint16_t port)
/* delay for about 1us */
#define iodelay() outp(0x80, 0)
+#define get_ebp(ebp) \
+ asm volatile( \
+ "mov %%ebp, %0\n\t" \
+ : "=g"((uint32_t)(ebp)))
#endif /* ASMOPS_H_ */