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>
9 .global chipset_teardown_car
14 post_code(POST_POSTCAR_DISABLE_CACHE)
18 orl $CR0_CacheDisable, %eax
21 post_code(POST_POSTCAR_DISABLE_DEF_MTRR)
24 movl $MTRR_DEF_TYPE_MSR, %ecx
26 andl $(~MTRR_DEF_TYPE_EN), %eax
29 post_code(POST_POSTCAR_TEARDOWN_DONE)
31 /* Return to caller. */