diff options
| author | Michael Brown | 2006-05-13 13:45:31 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-05-13 13:45:31 +0200 |
| commit | 50806687047310ed2470ceff729f8370640544d8 (patch) | |
| tree | 2bb4b6a32b7bffb77816780485611f6f7dad5804 /src/arch/i386/include | |
| parent | Provide a global counter for the number of interrupts hooked. (diff) | |
| download | ipxe-50806687047310ed2470ceff729f8370640544d8.tar.gz ipxe-50806687047310ed2470ceff729f8370640544d8.tar.xz ipxe-50806687047310ed2470ceff729f8370640544d8.zip | |
Provide access to rm_cs and rm_ds from protected-mode code.
Diffstat (limited to 'src/arch/i386/include')
| -rw-r--r-- | src/arch/i386/include/librm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/i386/include/librm.h b/src/arch/i386/include/librm.h index 4301ff521..fdcd25f1d 100644 --- a/src/arch/i386/include/librm.h +++ b/src/arch/i386/include/librm.h @@ -46,8 +46,11 @@ extern char *text16; /* Variables in librm.S, present in the normal data segment */ extern uint16_t rm_sp; extern uint16_t rm_ss; -extern uint16_t rm_cs; extern uint32_t pm_esp; +extern uint16_t __data16 ( rm_cs ); +#define rm_cs __use_data16 ( rm_cs ) +extern uint16_t __text16 ( rm_ds ); +#define rm_ds __use_text16 ( rm_ds ) /* Functions that librm expects to be able to link to. Included here * so that the compiler will catch prototype mismatches. |
