Aaron Durbin | a0a3727 | 2014-08-14 08:35:11 -0500 | [diff] [blame] | 1 | #ifndef _CPU_INTEL_ROMSTAGE_H |
| 2 | #define _CPU_INTEL_ROMSTAGE_H |
| 3 | |
Kyösti Mälkki | e325b22 | 2016-06-17 11:04:37 +0300 | [diff] [blame] | 4 | #include <arch/cpu.h> |
| 5 | |
Kyösti Mälkki | e325b22 | 2016-06-17 11:04:37 +0300 | [diff] [blame] | 6 | void mainboard_romstage_entry(unsigned long bist); |
Kyösti Mälkki | a4ffe9d | 2016-06-27 13:24:11 +0300 | [diff] [blame^] | 7 | |
| 8 | /* romstage_main is called from the cache-as-ram assembly file. The return |
| 9 | * value is the stack value to be used for romstage once cache-as-ram is |
| 10 | * torn down. The following values are pushed onto the stack to setup the |
| 11 | * MTRRs: |
| 12 | * +0: Number of MTRRs |
| 13 | * +4: MTRR base 0 31:0 |
| 14 | * +8: MTRR base 0 63:32 |
| 15 | * +12: MTRR mask 0 31:0 |
| 16 | * +16: MTRR mask 0 63:32 |
| 17 | * +20: MTRR base 1 31:0 |
| 18 | * +24: MTRR base 1 63:32 |
| 19 | * +28: MTRR mask 1 31:0 |
| 20 | * +32: MTRR mask 1 63:32 |
| 21 | * ... |
| 22 | */ |
| 23 | void *setup_stack_and_mtrrs(void); |
| 24 | |
| 25 | /* romstage_main is called from the cache-as-ram assembly file to prepare |
| 26 | * CAR stack guards.*/ |
Kyösti Mälkki | e325b22 | 2016-06-17 11:04:37 +0300 | [diff] [blame] | 27 | void * asmlinkage romstage_main(unsigned long bist); |
Kyösti Mälkki | a4ffe9d | 2016-06-27 13:24:11 +0300 | [diff] [blame^] | 28 | /* romstage_after_car() is the C function called after cache-as-ram has |
| 29 | * been torn down. It is responsible for loading the ramstage. */ |
| 30 | void asmlinkage romstage_after_car(void); |
Kyösti Mälkki | e325b22 | 2016-06-17 11:04:37 +0300 | [diff] [blame] | 31 | |
Aaron Durbin | a0a3727 | 2014-08-14 08:35:11 -0500 | [diff] [blame] | 32 | #endif /* _CPU_INTEL_ROMSTAGE_H */ |