aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-05-28 22:06:42 -0400
committerKevin O'Connor <kevin@koconnor.net>2012-05-28 23:21:43 -0400
commite77c705b10ec6c32f291accd494388ff5f1ef32a (patch)
tree4d0933e6734ffc6898e3fb8f792a6a9b1c204610 /src/util.h
parentc7ffbacac36580a654349288e3e87cb8b46ba8fd (diff)
downloadseabios-hppa-e77c705b10ec6c32f291accd494388ff5f1ef32a.zip
seabios-hppa-e77c705b10ec6c32f291accd494388ff5f1ef32a.tar.gz
seabios-hppa-e77c705b10ec6c32f291accd494388ff5f1ef32a.tar.bz2
Move farcall16 code from util.c to stacks.c and reorg stacks.c.
No code changes - just code movement. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/util.h b/src/util.h
index 5357841..f4a5ac8 100644
--- a/src/util.h
+++ b/src/util.h
@@ -197,14 +197,6 @@ struct descloc_s {
// util.c
void cpuid(u32 index, u32 *eax, u32 *ebx, u32 *ecx, u32 *edx);
-struct bregs;
-inline void farcall16(struct bregs *callregs);
-inline void farcall16big(struct bregs *callregs);
-inline 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 ); \
- } while (0)
u8 checksum_far(u16 buf_seg, void *buf_far, u32 len);
u8 checksum(void *buf, u32 len);
size_t strlen(const char *s);
@@ -229,11 +221,18 @@ void nullTrailingSpace(char *buf);
int get_keystroke(int msec);
// stacks.c
-u32 call32(void *func, u32 eax, u32 errret);
extern u8 ExtraStack[];
inline u32 stack_hop(u32 eax, u32 edx, void *func);
+u32 call32(void *func, u32 eax, u32 errret);
+struct bregs;
+inline void farcall16(struct bregs *callregs);
+inline void farcall16big(struct bregs *callregs);
+inline 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 ); \
+ } while (0)
extern struct thread_info MainThread;
-extern int CanPreempt;
struct thread_info *getCurThread(void);
void yield(void);
void yield_toirq(void);
@@ -242,6 +241,7 @@ void wait_threads(void);
struct mutex_s { u32 isLocked; };
void mutex_lock(struct mutex_s *mutex);
void mutex_unlock(struct mutex_s *mutex);
+extern int CanPreempt;
void start_preempt(void);
void finish_preempt(void);
int wait_preempt(void);