Simplify POST entry code by moving reboot logic from post.c to resume.c.
authorKevin O'Connor <kevin@koconnor.net>
Mon, 11 Jul 2011 02:35:07 +0000 (22:35 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 11 Jul 2011 02:35:07 +0000 (22:35 -0400)
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>

No differences found