soc/intel: Use common romstage code
This provides stack guards with checking and common entry into postcar. The code in cpu/intel/car/romstage.c is candidate for becoming architectural so function prototype is moved to <arch/romstage.h>. Change-Id: I4c5a9789e7cf3f7f49a4a33e21dac894320a9639 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34893 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
#include <arch/romstage.h>
|
||||
#include <cbmem.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <cpu/x86/mtrr.h>
|
||||
#include <program_loading.h>
|
||||
#include "e7505.h"
|
||||
|
@@ -22,7 +22,6 @@
|
||||
#include <device/pci_ops.h>
|
||||
#include <device/pci_def.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <cpu/x86/mtrr.h>
|
||||
#include <cbmem.h>
|
||||
#include <program_loading.h>
|
||||
|
@@ -21,7 +21,7 @@
|
||||
#include <device/pci_ops.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <cpu/x86/lapic.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <arch/romstage.h>
|
||||
#include <northbridge/intel/gm45/gm45.h>
|
||||
#include <southbridge/intel/i82801ix/i82801ix.h>
|
||||
#include <southbridge/intel/common/gpio.h>
|
||||
|
@@ -18,10 +18,10 @@
|
||||
|
||||
#include <arch/romstage.h>
|
||||
#include <console/console.h>
|
||||
#include <commonlib/helpers.h>
|
||||
#include <cpu/x86/mtrr.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <cbmem.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <stage_cache.h>
|
||||
#include "haswell.h"
|
||||
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#include <cbmem.h>
|
||||
#include <console/console.h>
|
||||
#include <commonlib/helpers.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <cpu/x86/mtrr.h>
|
||||
#include <program_loading.h>
|
||||
#include "i440bx.h"
|
||||
|
@@ -21,7 +21,6 @@
|
||||
#include <cbmem.h>
|
||||
#include "i945.h"
|
||||
#include <console/console.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <cpu/x86/mtrr.h>
|
||||
#include <program_loading.h>
|
||||
#include <cpu/intel/smm_reloc.h>
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#include <device/pci_ops.h>
|
||||
#include <cbmem.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <cpu/x86/mtrr.h>
|
||||
#include <program_loading.h>
|
||||
#include <stage_cache.h>
|
||||
|
@@ -24,7 +24,6 @@
|
||||
#include <cbmem.h>
|
||||
#include <northbridge/intel/pineview/pineview.h>
|
||||
#include <cpu/x86/mtrr.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <cpu/intel/smm_reloc.h>
|
||||
#include <stdint.h>
|
||||
#include <stage_cache.h>
|
||||
|
@@ -26,7 +26,7 @@
|
||||
#include <southbridge/intel/i82801gx/i82801gx.h>
|
||||
#include <southbridge/intel/common/gpio.h>
|
||||
#include <southbridge/intel/common/pmclib.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <arch/romstage.h>
|
||||
#include <cpu/x86/lapic.h>
|
||||
#include "raminit.h"
|
||||
#include "pineview.h"
|
||||
|
@@ -19,7 +19,6 @@
|
||||
#include <device/pci_ops.h>
|
||||
#include <cbmem.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <cpu/intel/smm_reloc.h>
|
||||
#include <cpu/x86/mtrr.h>
|
||||
#include <program_loading.h>
|
||||
|
@@ -22,7 +22,7 @@
|
||||
#include <cpu/x86/lapic.h>
|
||||
#include <timestamp.h>
|
||||
#include "sandybridge.h"
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <arch/romstage.h>
|
||||
#include <device/pci_def.h>
|
||||
#include <device/device.h>
|
||||
#include <northbridge/intel/sandybridge/chip.h>
|
||||
|
@@ -24,7 +24,6 @@
|
||||
#include <device/pci_ops.h>
|
||||
#include <device/pci_def.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <cpu/x86/mtrr.h>
|
||||
#include <northbridge/intel/x4x/x4x.h>
|
||||
#include <program_loading.h>
|
||||
|
Reference in New Issue
Block a user