Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 1 | /* |
Stefan Reinauer | 10b29d8 | 2010-04-09 10:12:18 +0000 | [diff] [blame] | 2 | * Copyright 2002 Eric Biederman |
Patrick Georgi | 3c970ee | 2010-02-19 19:59:03 +0000 | [diff] [blame] | 3 | * |
4 | * This file is free software; you can redistribute it and/or | ||||
5 | * modify it under the terms of the GNU General Public License as | ||||
Stefan Reinauer | 10b29d8 | 2010-04-09 10:12:18 +0000 | [diff] [blame] | 6 | * published by the Free Software Foundation; version 2 of the License. |
Patrick Georgi | 3c970ee | 2010-02-19 19:59:03 +0000 | [diff] [blame] | 7 | */ |
Alexandru Gagniuc | 5005bb06 | 2011-04-11 20:17:22 +0000 | [diff] [blame] | 8 | #include <cpu/x86/post_code.h> |
Patrick Georgi | 3c970ee | 2010-02-19 19:59:03 +0000 | [diff] [blame] | 9 | |
Patrick Georgi | 3c970ee | 2010-02-19 19:59:03 +0000 | [diff] [blame] | 10 | __main: |
Alexandru Gagniuc | 5005bb06 | 2011-04-11 20:17:22 +0000 | [diff] [blame] | 11 | post_code(POST_PREPARE_RAMSTAGE) |
Stefan Reinauer | 10b29d8 | 2010-04-09 10:12:18 +0000 | [diff] [blame] | 12 | cld /* clear direction flag */ |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 13 | |
Kyösti Mälkki | 1729cd8 | 2014-10-16 12:47:25 +0300 | [diff] [blame] | 14 | movl $CONFIG_RAMTOP, %esp |
Patrick Georgi | 3c970ee | 2010-02-19 19:59:03 +0000 | [diff] [blame] | 15 | movl %esp, %ebp |
Stefan Reinauer | 10b29d8 | 2010-04-09 10:12:18 +0000 | [diff] [blame] | 16 | call copy_and_run |
Patrick Georgi | 3c970ee | 2010-02-19 19:59:03 +0000 | [diff] [blame] | 17 | |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 18 | .Lhlt: |
Alexandru Gagniuc | 5005bb06 | 2011-04-11 20:17:22 +0000 | [diff] [blame] | 19 | post_code(POST_DEAD_CODE) |
Patrick Georgi | 3c970ee | 2010-02-19 19:59:03 +0000 | [diff] [blame] | 20 | hlt |
21 | jmp .Lhlt |