diff options
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/jump_label.h | 2 | ||||
-rw-r--r-- | arch/powerpc/include/asm/kdump.h | 10 | ||||
-rw-r--r-- | arch/powerpc/include/asm/reg.h | 8 |
3 files changed, 5 insertions, 15 deletions
diff --git a/arch/powerpc/include/asm/jump_label.h b/arch/powerpc/include/asm/jump_label.h index 1f780b95c0f0..938986e412f1 100644 --- a/arch/powerpc/include/asm/jump_label.h +++ b/arch/powerpc/include/asm/jump_label.h | |||
@@ -22,7 +22,6 @@ static __always_inline bool arch_static_branch(struct jump_label_key *key) | |||
22 | asm goto("1:\n\t" | 22 | asm goto("1:\n\t" |
23 | "nop\n\t" | 23 | "nop\n\t" |
24 | ".pushsection __jump_table, \"aw\"\n\t" | 24 | ".pushsection __jump_table, \"aw\"\n\t" |
25 | ".align 4\n\t" | ||
26 | JUMP_ENTRY_TYPE "1b, %l[l_yes], %c0\n\t" | 25 | JUMP_ENTRY_TYPE "1b, %l[l_yes], %c0\n\t" |
27 | ".popsection \n\t" | 26 | ".popsection \n\t" |
28 | : : "i" (key) : : l_yes); | 27 | : : "i" (key) : : l_yes); |
@@ -41,7 +40,6 @@ struct jump_entry { | |||
41 | jump_label_t code; | 40 | jump_label_t code; |
42 | jump_label_t target; | 41 | jump_label_t target; |
43 | jump_label_t key; | 42 | jump_label_t key; |
44 | jump_label_t pad; | ||
45 | }; | 43 | }; |
46 | 44 | ||
47 | #endif /* _ASM_POWERPC_JUMP_LABEL_H */ | 45 | #endif /* _ASM_POWERPC_JUMP_LABEL_H */ |
diff --git a/arch/powerpc/include/asm/kdump.h b/arch/powerpc/include/asm/kdump.h index 6857af58b02e..bffd062adf79 100644 --- a/arch/powerpc/include/asm/kdump.h +++ b/arch/powerpc/include/asm/kdump.h | |||
@@ -3,17 +3,7 @@ | |||
3 | 3 | ||
4 | #include <asm/page.h> | 4 | #include <asm/page.h> |
5 | 5 | ||
6 | /* | ||
7 | * If CONFIG_RELOCATABLE is enabled we can place the kdump kernel anywhere. | ||
8 | * To keep enough space in the RMO for the first stage kernel on 64bit, we | ||
9 | * place it at 64MB. If CONFIG_RELOCATABLE is not enabled we must place | ||
10 | * the second stage at 32MB. | ||
11 | */ | ||
12 | #if defined(CONFIG_RELOCATABLE) && defined(CONFIG_PPC64) | ||
13 | #define KDUMP_KERNELBASE 0x4000000 | ||
14 | #else | ||
15 | #define KDUMP_KERNELBASE 0x2000000 | 6 | #define KDUMP_KERNELBASE 0x2000000 |
16 | #endif | ||
17 | 7 | ||
18 | /* How many bytes to reserve at zero for kdump. The reserve limit should | 8 | /* How many bytes to reserve at zero for kdump. The reserve limit should |
19 | * be greater or equal to the trampoline's end address. | 9 | * be greater or equal to the trampoline's end address. |
diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h index e8aaf6fce38b..559da199edb5 100644 --- a/arch/powerpc/include/asm/reg.h +++ b/arch/powerpc/include/asm/reg.h | |||
@@ -1003,7 +1003,6 @@ | |||
1003 | #define PV_970 0x0039 | 1003 | #define PV_970 0x0039 |
1004 | #define PV_POWER5 0x003A | 1004 | #define PV_POWER5 0x003A |
1005 | #define PV_POWER5p 0x003B | 1005 | #define PV_POWER5p 0x003B |
1006 | #define PV_POWER7 0x003F | ||
1007 | #define PV_970FX 0x003C | 1006 | #define PV_970FX 0x003C |
1008 | #define PV_POWER6 0x003E | 1007 | #define PV_POWER6 0x003E |
1009 | #define PV_POWER7 0x003F | 1008 | #define PV_POWER7 0x003F |
@@ -1024,13 +1023,16 @@ | |||
1024 | #define mtmsrd(v) __mtmsrd((v), 0) | 1023 | #define mtmsrd(v) __mtmsrd((v), 0) |
1025 | #define mtmsr(v) mtmsrd(v) | 1024 | #define mtmsr(v) mtmsrd(v) |
1026 | #else | 1025 | #else |
1027 | #define mtmsr(v) asm volatile("mtmsr %0" : : "r" (v) : "memory") | 1026 | #define mtmsr(v) asm volatile("mtmsr %0" : \ |
1027 | : "r" ((unsigned long)(v)) \ | ||
1028 | : "memory") | ||
1028 | #endif | 1029 | #endif |
1029 | 1030 | ||
1030 | #define mfspr(rn) ({unsigned long rval; \ | 1031 | #define mfspr(rn) ({unsigned long rval; \ |
1031 | asm volatile("mfspr %0," __stringify(rn) \ | 1032 | asm volatile("mfspr %0," __stringify(rn) \ |
1032 | : "=r" (rval)); rval;}) | 1033 | : "=r" (rval)); rval;}) |
1033 | #define mtspr(rn, v) asm volatile("mtspr " __stringify(rn) ",%0" : : "r" (v)\ | 1034 | #define mtspr(rn, v) asm volatile("mtspr " __stringify(rn) ",%0" : \ |
1035 | : "r" ((unsigned long)(v)) \ | ||
1034 | : "memory") | 1036 | : "memory") |
1035 | 1037 | ||
1036 | #ifdef __powerpc64__ | 1038 | #ifdef __powerpc64__ |