Function report |
Source Code:arch\x86\kernel\cpu\amd.c |
Create Date:2022-07-28 07:58:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:early_detect_mem_encrypt
Proto:static void early_detect_mem_encrypt(struct cpuinfo_x86 *c)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct cpuinfo_x86 * | c |
596 | If cpu_has(c, AMD Secure Memory Encryption ) || cpu_has(c, AMD Secure Encrypted Virtualization ) Then |
598 | rdmsrl(MSR_K8_SYSCFG, msr) |
599 | If Not (msr & MSR_K8_SYSCFG_MEM_ENCRYPT) Then Go to clear_all |
607 | x86_phys_bits -= cpuid_ebx(0x8000001f) >> 6 & 0x3f |
609 | If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_X86_32) Then Go to clear_all |
612 | rdmsrl(MSR_K7_HWCR, msr) |
613 | If Not (msr & MSR_K7_HWCR_SMMLOCK) Then Go to clear_sev |
616 | Return |
618 | clear_all : |
620 | clear_sev : |
Name | Describe |
---|---|
early_init_amd |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |