1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <cpu/intel/post_codes.h>
4 #include <cpu/x86/mtrr.h>
5 #include <cpu/x86/cache.h>
6 #include <cpu/x86/post_code.h>
8 #define NoEvictMod_MSR 0x2e0
11 .global chipset_teardown_car
16 post_code(POSTCODE_POSTCAR_DISABLE_CACHE)
20 orl $CR0_CacheDisable, %eax
23 post_code(POSTCODE_POSTCAR_DISABLE_DEF_MTRR)
26 movl $MTRR_DEF_TYPE_MSR, %ecx
28 andl $(~MTRR_DEF_TYPE_EN), %eax
31 /* Disable the no eviction run state */
32 movl $NoEvictMod_MSR, %ecx
39 post_code(POSTCODE_POSTCAR_TEARDOWN_DONE)
41 /* Return to caller. */