2010-04-27 08:56:47 +02:00
|
|
|
/*
|
2010-04-09 12:12:18 +02:00
|
|
|
* Copyright 2002 Eric Biederman
|
2010-02-19 20:59:03 +01:00
|
|
|
*
|
|
|
|
* This file is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
2010-04-09 12:12:18 +02:00
|
|
|
* published by the Free Software Foundation; version 2 of the License.
|
2016-01-21 21:15:16 +01:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2010-02-19 20:59:03 +01:00
|
|
|
*/
|
2011-04-11 22:17:22 +02:00
|
|
|
#include <cpu/x86/post_code.h>
|
2010-02-19 20:59:03 +01:00
|
|
|
|
|
|
|
__main:
|
2011-04-11 22:17:22 +02:00
|
|
|
post_code(POST_PREPARE_RAMSTAGE)
|
2010-04-09 12:12:18 +02:00
|
|
|
cld /* clear direction flag */
|
2010-04-27 08:56:47 +02:00
|
|
|
|
2014-10-16 11:47:25 +02:00
|
|
|
movl $CONFIG_RAMTOP, %esp
|
2010-02-19 20:59:03 +01:00
|
|
|
movl %esp, %ebp
|
2010-04-09 12:12:18 +02:00
|
|
|
call copy_and_run
|
2010-02-19 20:59:03 +01:00
|
|
|
|
2010-04-27 08:56:47 +02:00
|
|
|
.Lhlt:
|
2011-04-11 22:17:22 +02:00
|
|
|
post_code(POST_DEAD_CODE)
|
2010-02-19 20:59:03 +01:00
|
|
|
hlt
|
|
|
|
jmp .Lhlt
|