aboutsummaryrefslogtreecommitdiff
path: root/src/clock.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-03-11 20:38:33 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-03-11 20:38:33 -0400
commit7a558e4417c74a0d7f2896178636b1d020d3fae9 (patch)
treeb725bb96feffa807da77e35b2b7d5169a85150ae /src/clock.c
parent64c718d27a0b9e8570968eed749782b170e32645 (diff)
downloadseabios-hppa-7a558e4417c74a0d7f2896178636b1d020d3fae9.zip
seabios-hppa-7a558e4417c74a0d7f2896178636b1d020d3fae9.tar.gz
seabios-hppa-7a558e4417c74a0d7f2896178636b1d020d3fae9.tar.bz2
Don't save/restore flags and ebp on external calls - saves on stack space.
It isn't necessary to save ebp - just mark it as clobbered. The only important flag to save/restore is irqs - manually fixup all callers.
Diffstat (limited to 'src/clock.c')
-rw-r--r--src/clock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/clock.c b/src/clock.c
index c653c1f..b9d75a3 100644
--- a/src/clock.c
+++ b/src/clock.c
@@ -356,6 +356,7 @@ handle_70()
struct bregs br;
memset(&br, 0, sizeof(br));
call16_int(0x4a, &br);
+ irq_disable();
}
if (!(registerC & 0x40))
goto done;