aboutsummaryrefslogtreecommitdiff
path: root/src/system.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-12-29 21:16:31 -0500
committerKevin O'Connor <kevin@koconnor.net>2008-12-29 21:16:31 -0500
commit08815370c94d88b37bc651d6707b6f1d68dc519b (patch)
tree7ccfd69fe17ec47c91d1c5b833fa7d966cdf4084 /src/system.c
parent92f95b0fecca029a0c4dd81203e6b42f60c4a382 (diff)
downloadseabios-hppa-08815370c94d88b37bc651d6707b6f1d68dc519b.zip
seabios-hppa-08815370c94d88b37bc651d6707b6f1d68dc519b.tar.gz
seabios-hppa-08815370c94d88b37bc651d6707b6f1d68dc519b.tar.bz2
Introduce GET/SET_EBDA2() macros - they take a cached ebda seg.
For those places that repeatedly read/write to the ebda, caching the ebda segment improves code generation.
Diffstat (limited to 'src/system.c')
-rw-r--r--src/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system.c b/src/system.c
index 7a0d20c..235e88c 100644
--- a/src/system.c
+++ b/src/system.c
@@ -232,7 +232,7 @@ handle_15c0(struct bregs *regs)
static void
handle_15c1(struct bregs *regs)
{
- regs->es = GET_BDA(ebda_seg);
+ regs->es = get_ebda_seg();
set_success(regs);
}