Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright 2014 Google Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
| 16 | /* |
| 17 | * This file contains entry/exit functions for each stage during coreboot |
| 18 | * execution (bootblock entry and ramstage exit will depend on external |
| 19 | * loading). |
| 20 | * |
| 21 | * Entry points must be placed at the location the previous stage jumps |
| 22 | * to (the lowest address in the stage image). This is done by giving |
| 23 | * stage_entry() its own section in .text and placing it first in the |
| 24 | * linker script. |
| 25 | */ |
| 26 | |
| 27 | #include <arch/stages.h> |
| 28 | |
| 29 | void stage_entry(void) |
| 30 | { |
| 31 | main(); |
| 32 | } |