mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
Add PHYS_CODE, for use as in __asm__ ( PHYS_CODE ( ... ) ), comparable
to the REAL_CODE interface.
This commit is contained in:
@@ -248,6 +248,12 @@ extern void remove_from_rm_stack ( void *data, size_t size );
|
|||||||
"\n\t" \
|
"\n\t" \
|
||||||
"ret\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 /* ASSEMBLY */
|
||||||
|
|
||||||
#endif /* LIBRM_H */
|
#endif /* LIBRM_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user