]> git.ipfire.org Git - people/arne_f/kernel.git/blob - arch/x86/mm/mem_encrypt.c
x86/mm: Add support to enable SME in early boot processing
[people/arne_f/kernel.git] / arch / x86 / mm / mem_encrypt.c
1 /*
2 * AMD Memory Encryption Support
3 *
4 * Copyright (C) 2016 Advanced Micro Devices, Inc.
5 *
6 * Author: Tom Lendacky <thomas.lendacky@amd.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12
13 #include <linux/linkage.h>
14 #include <linux/init.h>
15
16 /*
17 * Since SME related variables are set early in the boot process they must
18 * reside in the .data section so as not to be zeroed out when the .bss
19 * section is later cleared.
20 */
21 unsigned long sme_me_mask __section(.data) = 0;
22 EXPORT_SYMBOL_GPL(sme_me_mask);
23
24 void __init sme_encrypt_kernel(void)
25 {
26 }
27
28 void __init sme_enable(void)
29 {
30 }