blob: 7276c7a6833d6d7a2ea445f57fba6d75f73f3959 [file] [log] [blame]
Aaron Durbin3953e392015-09-03 00:41:29 -05001/*
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.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc.
18 */
19
20/* This file assembles the bootblock program by the order of the includes. Thus,
21 * it's extremely important that one pays very careful attention to the order
22 * of the includes. */
23
24#include <arch/x86/prologue.inc>
25#include <cpu/x86/16bit/entry16.inc>
26#include <cpu/x86/16bit/reset16.inc>
27#include <cpu/x86/32bit/entry32.inc>
28#include <arch/x86/id.inc>
29
30#if IS_ENABLED(CONFIG_CPU_INTEL_FIRMWARE_INTERFACE_TABLE)
31#include <cpu/intel/fit/fit.inc>
32#endif
33
34#ifdef CONFIG_CHIPSET_BOOTBLOCK_INCLUDE
35#include CONFIG_CHIPSET_BOOTBLOCK_INCLUDE
36#endif
37
38#if IS_ENABLED(CONFIG_SSE)
39#include <cpu/x86/sse_enable.inc>
40#endif
41
42/*
43 * This bootblock.inc file is generated by ROMCC. The above program flow
44 * falls through to this point. ROMCC assumes the last function it parsed
45 * is the main function and it places its instructions at the beginning of
46 * the generated file. Moreover, any library/common code needed in bootblock
47 * needs to come after bootblock.inc.
48 */
49#include <generated/bootblock.inc>
50
51#include <arch/x86/walkcbfs.S>