diff options
Diffstat (limited to 'arch/x86/lib/kaslr.c')
-rw-r--r-- | arch/x86/lib/kaslr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/lib/kaslr.c b/arch/x86/lib/kaslr.c index 5761a4f19455..ab2d1d73e9e7 100644 --- a/arch/x86/lib/kaslr.c +++ b/arch/x86/lib/kaslr.c | |||
@@ -5,6 +5,7 @@ | |||
5 | * kernel starts. This file is included in the compressed kernel and | 5 | * kernel starts. This file is included in the compressed kernel and |
6 | * normally linked in the regular. | 6 | * normally linked in the regular. |
7 | */ | 7 | */ |
8 | #include <asm/asm.h> | ||
8 | #include <asm/kaslr.h> | 9 | #include <asm/kaslr.h> |
9 | #include <asm/msr.h> | 10 | #include <asm/msr.h> |
10 | #include <asm/archrandom.h> | 11 | #include <asm/archrandom.h> |
@@ -79,7 +80,7 @@ unsigned long kaslr_get_random_long(const char *purpose) | |||
79 | } | 80 | } |
80 | 81 | ||
81 | /* Circular multiply for better bit diffusion */ | 82 | /* Circular multiply for better bit diffusion */ |
82 | asm("mul %3" | 83 | asm(_ASM_MUL "%3" |
83 | : "=a" (random), "=d" (raw) | 84 | : "=a" (random), "=d" (raw) |
84 | : "a" (random), "rm" (mix_const)); | 85 | : "a" (random), "rm" (mix_const)); |
85 | random += raw; | 86 | random += raw; |