diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2015-10-09 11:53:02 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-10-15 14:15:19 -0400 |
commit | b4cca861a2f813a3826afe33d548cd6b1a5bd705 (patch) | |
tree | 82bde56843c7d4e940c8e9a94350cab2b99963d5 /src/clock.c | |
parent | a1b4dd09d73d34308435ce6e77c986e6e25ee737 (diff) | |
download | seabios-b4cca861a2f813a3826afe33d548cd6b1a5bd705.tar.gz |
stacks: Use macro wrappers for call32() and stack_hop_back()
The C code only uses _cfuncX_ prefixes for parameters to the call32(),
stack_hop_back(), and call32_params() functions. It's simpler to use
macro wrappers around those functions which provide the required
prefix.
This also changes the parameter order of stack_hop() and
stack_hop_back() to use the more natural (func, params) ordering.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/clock.c')
-rw-r--r-- | src/clock.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/clock.c b/src/clock.c index c73545b0..e83e0f33 100644 --- a/src/clock.c +++ b/src/clock.c @@ -248,9 +248,7 @@ handle_1abb(struct bregs *regs) return; dprintf(DEBUG_tcg, "16: Calling tpm_interrupt_handler\n"); - extern void _cfunc32flat_tpm_interrupt_handler32(void); - call32(_cfunc32flat_tpm_interrupt_handler32, - (u32)MAKE_FLATPTR(GET_SEG(SS), regs), 0); + call32(tpm_interrupt_handler32, MAKE_FLATPTR(GET_SEG(SS), regs), 0); } // Unsupported |