diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2011-07-10 22:35:07 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2011-07-10 22:35:07 -0400 |
commit | 87b533bf71bb41e32319db0ed8f167f50171afc5 (patch) | |
tree | 5fc0cbb83ab7419a734393e4baaf09e05409970a /src/stacks.c | |
parent | ffdcd3a8d72310efc55255fc93edf78c024bbafe (diff) | |
download | seabios-hppa-87b533bf71bb41e32319db0ed8f167f50171afc5.zip seabios-hppa-87b533bf71bb41e32319db0ed8f167f50171afc5.tar.gz seabios-hppa-87b533bf71bb41e32319db0ed8f167f50171afc5.tar.bz2 |
Simplify POST entry code by moving reboot logic from post.c to resume.c.
Detect a resume/reboot by inspecting HaveRunPost instead of inspecting
the cmos reset code. Inspecting a global variable is both simpler and
safer.
Move the reboot logic from post.c to resume.c - this makes the code in
post.c simpler as it is now only called once on machine startup. This
also makes it easier to ensure all POST initialization code resides in
the relocatable "init" sections.
Also, rename _start() to handle_post() so that it is more in keeping
with the entry_xxx() and handle_xxx() function naming.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stacks.c')
-rw-r--r-- | src/stacks.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/stacks.c b/src/stacks.c index 53bf669..17495d5 100644 --- a/src/stacks.c +++ b/src/stacks.c @@ -24,11 +24,6 @@ struct thread_info VAR32FLATVISIBLE MainThread = { * Low level helpers ****************************************************************/ -static inline u32 getcr0(void) { - u32 cr0; - asm("movl %%cr0, %0" : "=r"(cr0)); - return cr0; -} static inline void sgdt(struct descloc_s *desc) { asm("sgdtl %0" : "=m"(*desc)); } |