Commit df7d6aec authored by David S. Miller's avatar David S. Miller

[SPARC64]: Rename gl_{1,2}insn_patch --> sun4v_{1,2}insn_patch

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d257d5da
...@@ -105,7 +105,7 @@ etrap_save: save %g2, -STACK_BIAS, %sp ...@@ -105,7 +105,7 @@ etrap_save: save %g2, -STACK_BIAS, %sp
/* Go to trap time globals so we can save them. */ /* Go to trap time globals so we can save them. */
661: wrpr %g0, ETRAP_PSTATE1, %pstate 661: wrpr %g0, ETRAP_PSTATE1, %pstate
.section .gl_1insn_patch, "ax" .section .sun4v_1insn_patch, "ax"
.word 661b .word 661b
SET_GL(0) SET_GL(0)
.previous .previous
...@@ -206,7 +206,7 @@ etraptl1: /* Save tstate/tpc/tnpc of TL 1-->4 and the tl register itself. ...@@ -206,7 +206,7 @@ etraptl1: /* Save tstate/tpc/tnpc of TL 1-->4 and the tl register itself.
wrpr %g0, 1, %tl wrpr %g0, 1, %tl
661: nop 661: nop
.section .gl_1insn_patch, "ax" .section .sun4v_1insn_patch, "ax"
.word 661b .word 661b
SET_GL(1) SET_GL(1)
.previous .previous
......
...@@ -67,7 +67,7 @@ kvmap_itlb_longpath: ...@@ -67,7 +67,7 @@ kvmap_itlb_longpath:
661: rdpr %pstate, %g5 661: rdpr %pstate, %g5
wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
.section .gl_2insn_patch, "ax" .section .sun4v_2insn_patch, "ax"
.word 661b .word 661b
nop nop
nop nop
...@@ -179,7 +179,7 @@ kvmap_dtlb_longpath: ...@@ -179,7 +179,7 @@ kvmap_dtlb_longpath:
661: rdpr %pstate, %g5 661: rdpr %pstate, %g5
wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
.section .gl_2insn_patch, "ax" .section .sun4v_2insn_patch, "ax"
.word 661b .word 661b
nop nop
nop nop
......
...@@ -234,7 +234,7 @@ rt_continue: ldx [%sp + PTREGS_OFF + PT_V9_G1], %g1 ...@@ -234,7 +234,7 @@ rt_continue: ldx [%sp + PTREGS_OFF + PT_V9_G1], %g1
/* Normal globals are restored, go to trap globals. */ /* Normal globals are restored, go to trap globals. */
661: wrpr %g0, RTRAP_PSTATE_AG_IRQOFF, %pstate 661: wrpr %g0, RTRAP_PSTATE_AG_IRQOFF, %pstate
.section .gl_1insn_patch, "ax" .section .sun4v_1insn_patch, "ax"
.word 661b .word 661b
SET_GL(1) SET_GL(1)
.previous .previous
...@@ -316,7 +316,7 @@ user_rtt_fill_fixup: ...@@ -316,7 +316,7 @@ user_rtt_fill_fixup:
wrpr %g0, RTRAP_PSTATE, %pstate wrpr %g0, RTRAP_PSTATE, %pstate
661: nop 661: nop
.section .gl_1insn_patch, "ax" .section .sun4v_1insn_patch, "ax"
.word 661b .word 661b
SET_GL(0) SET_GL(0)
.previous .previous
......
...@@ -549,16 +549,16 @@ static void __init per_cpu_patch(void) ...@@ -549,16 +549,16 @@ static void __init per_cpu_patch(void)
#endif #endif
} }
static void __init gl_patch(void) static void __init sun4v_patch(void)
{ {
struct gl_1insn_patch_entry *p1; struct sun4v_1insn_patch_entry *p1;
struct gl_2insn_patch_entry *p2; struct sun4v_2insn_patch_entry *p2;
if (tlb_type != hypervisor) if (tlb_type != hypervisor)
return; return;
p1 = &__gl_1insn_patch; p1 = &__sun4v_1insn_patch;
while (p1 < &__gl_1insn_patch_end) { while (p1 < &__sun4v_1insn_patch_end) {
unsigned long addr = p1->addr; unsigned long addr = p1->addr;
*(unsigned int *) (addr + 0) = p1->insn; *(unsigned int *) (addr + 0) = p1->insn;
...@@ -568,8 +568,8 @@ static void __init gl_patch(void) ...@@ -568,8 +568,8 @@ static void __init gl_patch(void)
p1++; p1++;
} }
p2 = &__gl_2insn_patch; p2 = &__sun4v_2insn_patch;
while (p2 < &__gl_2insn_patch_end) { while (p2 < &__sun4v_2insn_patch_end) {
unsigned long addr = p2->addr; unsigned long addr = p2->addr;
*(unsigned int *) (addr + 0) = p2->insns[0]; *(unsigned int *) (addr + 0) = p2->insns[0];
...@@ -606,7 +606,7 @@ void __init setup_arch(char **cmdline_p) ...@@ -606,7 +606,7 @@ void __init setup_arch(char **cmdline_p)
*/ */
per_cpu_patch(); per_cpu_patch();
gl_patch(); sun4v_patch();
boot_flags_init(*cmdline_p); boot_flags_init(*cmdline_p);
......
...@@ -74,7 +74,7 @@ tsb_dtlb_load: ...@@ -74,7 +74,7 @@ tsb_dtlb_load:
661: stxa %g5, [%g0] ASI_DTLB_DATA_IN 661: stxa %g5, [%g0] ASI_DTLB_DATA_IN
retry retry
.section .gl_2insn_patch, "ax" .section .sun4v_2insn_patch, "ax"
.word 661b .word 661b
nop nop
nop nop
...@@ -99,7 +99,7 @@ tsb_itlb_load: ...@@ -99,7 +99,7 @@ tsb_itlb_load:
661: stxa %g5, [%g0] ASI_ITLB_DATA_IN 661: stxa %g5, [%g0] ASI_ITLB_DATA_IN
retry retry
.section .gl_2insn_patch, "ax" .section .sun4v_2insn_patch, "ax"
.word 661b .word 661b
nop nop
nop nop
...@@ -130,7 +130,7 @@ tsb_do_fault: ...@@ -130,7 +130,7 @@ tsb_do_fault:
661: rdpr %pstate, %g5 661: rdpr %pstate, %g5
wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
.section .gl_2insn_patch, "ax" .section .sun4v_2insn_patch, "ax"
.word 661b .word 661b
nop nop
nop nop
...@@ -145,7 +145,7 @@ tsb_do_dtlb_fault: ...@@ -145,7 +145,7 @@ tsb_do_dtlb_fault:
661: mov TLB_TAG_ACCESS, %g4 661: mov TLB_TAG_ACCESS, %g4
ldxa [%g4] ASI_DMMU, %g5 ldxa [%g4] ASI_DMMU, %g5
.section .gl_2insn_patch, "ax" .section .sun4v_2insn_patch, "ax"
.word 661b .word 661b
mov %g4, %g5 mov %g4, %g5
nop nop
...@@ -250,7 +250,7 @@ __tsb_context_switch: ...@@ -250,7 +250,7 @@ __tsb_context_switch:
661: mov TSB_REG, %g1 661: mov TSB_REG, %g1
stxa %o1, [%g1] ASI_DMMU stxa %o1, [%g1] ASI_DMMU
.section .gl_2insn_patch, "ax" .section .sun4v_2insn_patch, "ax"
.word 661b .word 661b
mov SCRATCHPAD_UTSBREG1, %g1 mov SCRATCHPAD_UTSBREG1, %g1
stxa %o1, [%g1] ASI_SCRATCHPAD stxa %o1, [%g1] ASI_SCRATCHPAD
...@@ -260,7 +260,7 @@ __tsb_context_switch: ...@@ -260,7 +260,7 @@ __tsb_context_switch:
661: stxa %o1, [%g1] ASI_IMMU 661: stxa %o1, [%g1] ASI_IMMU
membar #Sync membar #Sync
.section .gl_2insn_patch, "ax" .section .sun4v_2insn_patch, "ax"
.word 661b .word 661b
nop nop
nop nop
......
...@@ -80,12 +80,12 @@ SECTIONS ...@@ -80,12 +80,12 @@ SECTIONS
__cpuid_patch = .; __cpuid_patch = .;
.cpuid_patch : { *(.cpuid_patch) } .cpuid_patch : { *(.cpuid_patch) }
__cpuid_patch_end = .; __cpuid_patch_end = .;
__gl_1insn_patch = .; __sun4v_1insn_patch = .;
.gl_1insn_patch : { *(.gl_1insn_patch) } .sun4v_1insn_patch : { *(.sun4v_1insn_patch) }
__gl_1insn_patch_end = .; __sun4v_1insn_patch_end = .;
__gl_2insn_patch = .; __sun4v_2insn_patch = .;
.gl_2insn_patch : { *(.gl_2insn_patch) } .sun4v_2insn_patch : { *(.sun4v_2insn_patch) }
__gl_2insn_patch_end = .; __sun4v_2insn_patch_end = .;
. = ALIGN(8192); . = ALIGN(8192);
__initramfs_start = .; __initramfs_start = .;
.init.ramfs : { *(.init.ramfs) } .init.ramfs : { *(.init.ramfs) }
......
...@@ -447,7 +447,7 @@ xcall_sync_tick: ...@@ -447,7 +447,7 @@ xcall_sync_tick:
661: rdpr %pstate, %g2 661: rdpr %pstate, %g2
wrpr %g2, PSTATE_IG | PSTATE_AG, %pstate wrpr %g2, PSTATE_IG | PSTATE_AG, %pstate
.section .gl_2insn_patch, "ax" .section .sun4v_2insn_patch, "ax"
.word 661b .word 661b
nop nop
nop nop
...@@ -478,7 +478,7 @@ xcall_report_regs: ...@@ -478,7 +478,7 @@ xcall_report_regs:
661: rdpr %pstate, %g2 661: rdpr %pstate, %g2
wrpr %g2, PSTATE_IG | PSTATE_AG, %pstate wrpr %g2, PSTATE_IG | PSTATE_AG, %pstate
.section .gl_2insn_patch, "ax" .section .sun4v_2insn_patch, "ax"
.word 661b .word 661b
nop nop
nop nop
......
...@@ -78,17 +78,20 @@ struct cpuid_patch_entry { ...@@ -78,17 +78,20 @@ struct cpuid_patch_entry {
extern struct cpuid_patch_entry __cpuid_patch, __cpuid_patch_end; extern struct cpuid_patch_entry __cpuid_patch, __cpuid_patch_end;
#endif #endif
struct gl_1insn_patch_entry { struct sun4v_1insn_patch_entry {
unsigned int addr; unsigned int addr;
unsigned int insn; unsigned int insn;
}; };
extern struct gl_1insn_patch_entry __gl_1insn_patch, __gl_1insn_patch_end; extern struct sun4v_1insn_patch_entry __sun4v_1insn_patch,
__sun4v_1insn_patch_end;
struct gl_2insn_patch_entry { struct sun4v_2insn_patch_entry {
unsigned int addr; unsigned int addr;
unsigned int insns[2]; unsigned int insns[2];
}; };
extern struct gl_2insn_patch_entry __gl_2insn_patch, __gl_2insn_patch_end; extern struct sun4v_2insn_patch_entry __sun4v_2insn_patch,
__sun4v_2insn_patch_end;
#endif /* !(__ASSEMBLY__) */ #endif /* !(__ASSEMBLY__) */
#define TRAP_PER_CPU_THREAD 0x00 #define TRAP_PER_CPU_THREAD 0x00
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment