http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d488a17
)
Add PHYS_CODE, for use as in __asm__ ( PHYS_CODE ( ... ) ), comparable
author
Michael Brown
<mcb30@etherboot.org>
Thu, 11 Jan 2007 18:40:46 +0000
(18:40 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Thu, 11 Jan 2007 18:40:46 +0000
(18:40 +0000)
to the REAL_CODE interface.
src/arch/i386/include/librm.h
patch
|
blob
|
history
diff --git
a/src/arch/i386/include/librm.h
b/src/arch/i386/include/librm.h
index
7fc7951
..
19966c6
100644
(file)
--- a/
src/arch/i386/include/librm.h
+++ b/
src/arch/i386/include/librm.h
@@
-248,6
+248,12
@@
extern void remove_from_rm_stack ( void *data, size_t size );
"\n\t" \
"ret\n\t" )
+/* PHYS_CODE: declare a fragment of code that executes in flat physical mode */
+#define PHYS_CODE( asm_code_str ) \
+ "call _virt_to_phys\n\t" \
+ asm_code_str \
+ "call _phys_to_virt\n\t"
+
#endif /* ASSEMBLY */
#endif /* LIBRM_H */