diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-02-18 23:36:03 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-02-18 23:36:03 -0500 |
commit | 89a2f96de451d2dd4ea887b41c5425b051c93f8b (patch) | |
tree | b89b327f7ee8d301d9ad0954e5f2520d64bd4ad7 /src/stacks.c | |
parent | 4195349d78a215253e4ac1a0e1395dd4c8a7318c (diff) | |
download | seabios-89a2f96de451d2dd4ea887b41c5425b051c93f8b.tar.gz |
Convert VAR16VISIBLE, VAR16EXPORT, and VAR32VISIBLE to VARFSEG.
Convert all users of the alternative variable exports to VARFSEG.
There isn't a significant distinction between the existing types of
exports, so it's simpler to just use one type going forward.
The new VARFSEG declaration is only emitting when in 32bit mode, so
update and move some variables as needed.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stacks.c')
-rw-r--r-- | src/stacks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stacks.c b/src/stacks.c index 93da7b51..7423939e 100644 --- a/src/stacks.c +++ b/src/stacks.c @@ -243,7 +243,7 @@ struct thread_info { void *stackpos; struct thread_info **pprev; }; -struct thread_info VAR32FLATVISIBLE MainThread = { +struct thread_info MainThread VARFSEG = { &MainThread, NULL, &MainThread.next }; #define THREADSTACKSIZE 4096 @@ -424,7 +424,7 @@ mutex_unlock(struct mutex_s *mutex) * Thread preemption ****************************************************************/ -int VAR16VISIBLE CanPreempt; +int CanPreempt VARFSEG; static u32 PreemptCount; // Turn on RTC irqs and arrange for them to check the 32bit threads. |