Debian Codegraph @

src/drivers/amd/agesa/exit_car.S

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <gcccar.inc>
4 #include <cpu/x86/cache.h>
5
6 .code32
7 .globl chipset_teardown_car
8
9 chipset_teardown_car:
10 pop %esp
11
12 /* Disable cache */
13 movl %cr0, %eax
14 orl $CR0_CacheDisable, %eax
15 movl %eax, %cr0
16
17 AMD_DISABLE_STACK
18
19 /* enable cache */
20 movl %cr0, %eax
21 andl $(~(CR0_CD | CR0_NW)), %eax
22 movl %eax, %cr0
23
24 jmp *%esp