Aaron Durbin | 3953e39 | 2015-09-03 00:41:29 -0500 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright 2015 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. |
Aaron Durbin | 3953e39 | 2015-09-03 00:41:29 -0500 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | /* This file assembles the bootblock program by the order of the includes. Thus, |
| 17 | * it's extremely important that one pays very careful attention to the order |
| 18 | * of the includes. */ |
| 19 | |
| 20 | #include <arch/x86/prologue.inc> |
| 21 | #include <cpu/x86/16bit/entry16.inc> |
| 22 | #include <cpu/x86/16bit/reset16.inc> |
| 23 | #include <cpu/x86/32bit/entry32.inc> |
Aaron Durbin | 3953e39 | 2015-09-03 00:41:29 -0500 | [diff] [blame] | 24 | |
| 25 | #ifdef CONFIG_CHIPSET_BOOTBLOCK_INCLUDE |
| 26 | #include CONFIG_CHIPSET_BOOTBLOCK_INCLUDE |
| 27 | #endif |
| 28 | |
| 29 | #if IS_ENABLED(CONFIG_SSE) |
| 30 | #include <cpu/x86/sse_enable.inc> |
| 31 | #endif |
| 32 | |
| 33 | /* |
| 34 | * This bootblock.inc file is generated by ROMCC. The above program flow |
| 35 | * falls through to this point. ROMCC assumes the last function it parsed |
| 36 | * is the main function and it places its instructions at the beginning of |
| 37 | * the generated file. Moreover, any library/common code needed in bootblock |
| 38 | * needs to come after bootblock.inc. |
| 39 | */ |
| 40 | #include <generated/bootblock.inc> |