Unify use of post_code
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6487 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Stefan Reinauer
parent
1fa61ebb33
commit
5005bb06c1
@@ -5,11 +5,12 @@
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; version 2 of the License.
|
||||
*/
|
||||
#include <cpu/x86/post_code.h>
|
||||
|
||||
/* clear boot_complete flag */
|
||||
xorl %ebp, %ebp
|
||||
__main:
|
||||
post_code(0x11)
|
||||
post_code(POST_PREPARE_RAMSTAGE)
|
||||
cld /* clear direction flag */
|
||||
|
||||
movl %ebp, %esi
|
||||
@@ -20,7 +21,7 @@ __main:
|
||||
call copy_and_run
|
||||
|
||||
.Lhlt:
|
||||
post_code(0xee)
|
||||
post_code(POST_DEAD_CODE)
|
||||
hlt
|
||||
jmp .Lhlt
|
||||
|
||||
|
@@ -25,5 +25,5 @@
|
||||
|
||||
/* This is the entry code. The code in the .reset section jumps here. */
|
||||
|
||||
post_code(0x01)
|
||||
post_code(POST_RESET_VECTOR_CORRECT)
|
||||
|
||||
|
Reference in New Issue
Block a user