aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2011-07-16 13:13:12 -0400
committerKevin O'Connor <kevin@koconnor.net>2011-07-16 13:15:27 -0400
commit533b6286cbc5a01e8aaafc2a8393a7d109f81958 (patch)
tree5d051ff2edeb3f62b982d5fcc4761bf9dd5448e7 /src/util.h
parent77b8536e5c9908fbe99c88d01462a36a3deb05b1 (diff)
downloadseabios-hppa-533b6286cbc5a01e8aaafc2a8393a7d109f81958.zip
seabios-hppa-533b6286cbc5a01e8aaafc2a8393a7d109f81958.tar.gz
seabios-hppa-533b6286cbc5a01e8aaafc2a8393a7d109f81958.tar.bz2
Run option rom visible PMM code in 32bit mode instead of 16bit mode.
Use call32() to jump into handle_pmm(). This reduces the amount of 16bit code needed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 5cdb483..174e94b 100644
--- a/src/util.h
+++ b/src/util.h
@@ -226,6 +226,7 @@ int get_keystroke(int msec);
u32 call32(void *func, u32 eax, u32 errret);
inline u32 stack_hop(u32 eax, u32 edx, void *func);
extern struct thread_info MainThread;
+extern int CanPreempt;
struct thread_info *getCurThread(void);
void yield(void);
void wait_irq(void);
@@ -415,6 +416,7 @@ void pnp_setup(void);
// pmm.c
extern struct zone_s ZoneLow, ZoneHigh, ZoneFSeg, ZoneTmpLow, ZoneTmpHigh;
void malloc_setup(void);
+void malloc_fixupreloc(void);
void malloc_finalize(void);
void *pmm_malloc(struct zone_s *zone, u32 handle, u32 size, u32 align);
int pmm_free(void *data);