Tom Lendacky | 7744ccd | 2017-07-17 16:10:03 -0500 | [diff] [blame] | 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> |
Tom Lendacky | 5868f36 | 2017-07-17 16:10:05 -0500 | [diff] [blame] | 14 | #include <linux/init.h> |
Tom Lendacky | 7744ccd | 2017-07-17 16:10:03 -0500 | [diff] [blame] | 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); |
Tom Lendacky | 5868f36 | 2017-07-17 16:10:05 -0500 | [diff] [blame] | 23 | |
| 24 | void __init sme_encrypt_kernel(void) |
| 25 | { |
| 26 | } |
| 27 | |
| 28 | void __init sme_enable(void) |
| 29 | { |
| 30 | } |