diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-09-30 00:11:38 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-10-11 13:41:53 -0400 |
commit | 79c3ab3d6ceab52e73d1d5700e6dcb89d209f987 (patch) | |
tree | fe5ffe181caf507c4238bd62fe1ec17bb197e1e1 /src/stacks.h | |
parent | dcacfa08b2a26e9aac17c52d4015100935bbcb9a (diff) | |
download | seabios-79c3ab3d6ceab52e73d1d5700e6dcb89d209f987.tar.gz |
Simplify farcall16 code
With this change, farcall16() is only used for external API calls and
is only invoked from a 32bit mode entered directly via transition32.
farcall16big() is also only used for external API calls and is only
invoked from a 32bit mode entered directly via transition32.
call16_int() now calls _farcall16() directly, and it will use normal
16bit mode or big real mode as required.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stacks.h')
-rw-r--r-- | src/stacks.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stacks.h b/src/stacks.h index cbc5f4fc..c3ddc173 100644 --- a/src/stacks.h +++ b/src/stacks.h @@ -11,9 +11,9 @@ u32 stack_hop(u32 eax, u32 edx, void *func); u32 stack_hop_back(u32 eax, u32 edx, void *func); int on_extra_stack(void); struct bregs; -inline void farcall16(struct bregs *callregs); -inline void farcall16big(struct bregs *callregs); -inline void __call16_int(struct bregs *callregs, u16 offset); +void farcall16(struct bregs *callregs); +void farcall16big(struct bregs *callregs); +void __call16_int(struct bregs *callregs, u16 offset); #define call16_int(nr, callregs) do { \ extern void irq_trampoline_ ##nr (); \ __call16_int((callregs), (u32)&irq_trampoline_ ##nr ); \ |