nb/intel: Use postcar_frame_add_romcache()
Change-Id: I0729ca4cdad7d2218c1e1feae5cd38dda6d4e11e Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/26579 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
committed by
Patrick Georgi
parent
36ec3e9ba1
commit
089b9089c1
@ -129,8 +129,7 @@ void *setup_stack_and_mtrrs(void)
|
||||
die("Unable to initialize postcar frame.\n");
|
||||
|
||||
/* Cache the ROM as WP just below 4GiB. */
|
||||
postcar_frame_add_mtrr(&pcf, CACHE_ROM_BASE, CACHE_ROM_SIZE,
|
||||
MTRR_TYPE_WRPROT);
|
||||
postcar_frame_add_romcache(&pcf, MTRR_TYPE_WRPROT);
|
||||
|
||||
/* Cache RAM as WB from 0 -> CACHE_TMP_RAMTOP. */
|
||||
postcar_frame_add_mtrr(&pcf, 0, CACHE_TMP_RAMTOP, MTRR_TYPE_WRBACK);
|
||||
|
@ -91,8 +91,7 @@ void *setup_stack_and_mtrrs(void)
|
||||
die("Unable to initialize postcar frame.\n");
|
||||
|
||||
/* Cache the ROM as WP just below 4GiB. */
|
||||
postcar_frame_add_mtrr(&pcf, CACHE_ROM_BASE, CACHE_ROM_SIZE,
|
||||
MTRR_TYPE_WRPROT);
|
||||
postcar_frame_add_romcache(&pcf, MTRR_TYPE_WRPROT);
|
||||
|
||||
/* Cache RAM as WB from 0 -> CACHE_TMP_RAMTOP. */
|
||||
postcar_frame_add_mtrr(&pcf, 0, CACHE_TMP_RAMTOP, MTRR_TYPE_WRBACK);
|
||||
|
@ -50,8 +50,7 @@ void *setup_stack_and_mtrrs(void)
|
||||
die("Unable to initialize postcar frame.\n");
|
||||
|
||||
/* Cache the ROM as WP just below 4GiB. */
|
||||
postcar_frame_add_mtrr(&pcf, CACHE_ROM_BASE, CACHE_ROM_SIZE,
|
||||
MTRR_TYPE_WRPROT);
|
||||
postcar_frame_add_romcache(&pcf, MTRR_TYPE_WRPROT);
|
||||
|
||||
/* Cache RAM as WB from 0 -> CACHE_TMP_RAMTOP. */
|
||||
postcar_frame_add_mtrr(&pcf, 0, CACHE_TMP_RAMTOP, MTRR_TYPE_WRBACK);
|
||||
|
@ -118,8 +118,7 @@ void *setup_stack_and_mtrrs(void)
|
||||
die("Unable to initialize postcar frame.\n");
|
||||
|
||||
/* Cache the ROM as WP just below 4GiB. */
|
||||
postcar_frame_add_mtrr(&pcf, CACHE_ROM_BASE, CACHE_ROM_SIZE,
|
||||
MTRR_TYPE_WRPROT);
|
||||
postcar_frame_add_romcache(&pcf, MTRR_TYPE_WRPROT);
|
||||
|
||||
/* Cache RAM as WB from 0 -> CACHE_TMP_RAMTOP. */
|
||||
postcar_frame_add_mtrr(&pcf, 0, CACHE_TMP_RAMTOP, MTRR_TYPE_WRBACK);
|
||||
|
@ -57,8 +57,7 @@ void *setup_stack_and_mtrrs(void)
|
||||
die("Unable to initialize postcar frame.\n");
|
||||
|
||||
/* Cache the ROM as WP just below 4GiB. */
|
||||
postcar_frame_add_mtrr(&pcf, CACHE_ROM_BASE, CACHE_ROM_SIZE,
|
||||
MTRR_TYPE_WRPROT);
|
||||
postcar_frame_add_romcache(&pcf, MTRR_TYPE_WRPROT);
|
||||
|
||||
/* Cache RAM as WB from 0 -> CACHE_TMP_RAMTOP. */
|
||||
postcar_frame_add_mtrr(&pcf, 0, CACHE_TMP_RAMTOP, MTRR_TYPE_WRBACK);
|
||||
|
@ -116,8 +116,7 @@ void *setup_stack_and_mtrrs(void)
|
||||
die("Unable to initialize postcar frame.\n");
|
||||
|
||||
/* Cache the ROM as WP just below 4GiB. */
|
||||
postcar_frame_add_mtrr(&pcf, CACHE_ROM_BASE, CACHE_ROM_SIZE,
|
||||
MTRR_TYPE_WRPROT);
|
||||
postcar_frame_add_romcache(&pcf, MTRR_TYPE_WRPROT);
|
||||
|
||||
/* Cache RAM as WB from 0 -> CACHE_TMP_RAMTOP. */
|
||||
postcar_frame_add_mtrr(&pcf, 0, CACHE_TMP_RAMTOP, MTRR_TYPE_WRBACK);
|
||||
|
Reference in New Issue
Block a user