Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96789
b: refs/heads/master
c: 8568dae
h: refs/heads/master
i:
  96787: 894cf3c
v: v3
  • Loading branch information
Linus Torvalds committed May 15, 2008
1 parent 5e923f8 commit 1986a6c
Show file tree
Hide file tree
Showing 32 changed files with 168 additions and 211 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8dd79cb1051723496bbdcea2247e49567cedb3ac
refs/heads/master: 8568dae21e186fbb111bbe6583033a33fe26f83d
3 changes: 2 additions & 1 deletion trunk/arch/parisc/hpux/gate.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
#include <asm/unistd.h>
#include <asm/errno.h>
#include <linux/linkage.h>
#include <linux/init.h>

.level LEVEL
.text
__HEAD

.import hpux_call_table
.import hpux_syscall_exit,code
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/parisc/hpux/wrappers.S
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
#include <asm/assembly.h>
#include <asm/signal.h>
#include <linux/linkage.h>
#include <linux/init.h>

.level LEVEL
.text
__HEAD

/* These should probably go in a header file somewhere.
* They are duplicated in kernel/wrappers.S
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/parisc/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

extra-y := init_task.o head.o vmlinux.lds

AFLAGS_entry.o := -traditional
AFLAGS_pacache.o := -traditional

obj-y := cache.o pacache.o setup.o traps.o time.o irq.o \
pa7300lc.o syscall.o entry.o sys_parisc.o firmware.o \
ptrace.o hardware.o inventory.o drivers.o \
Expand Down
49 changes: 21 additions & 28 deletions trunk/arch/parisc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,11 @@
#include <asm/thread_info.h>

#include <linux/linkage.h>
#include <linux/init.h>

#ifdef CONFIG_64BIT
#define CMPIB cmpib,*
#define CMPB cmpb,*
#define COND(x) *x

.level 2.0w
#else
#define CMPIB cmpib,
#define CMPB cmpb,
#define COND(x) x

.level 2.0
#endif

Expand Down Expand Up @@ -629,7 +622,7 @@
* the static part of the kernel address space.
*/

.text
__HEAD

.align PAGE_SIZE

Expand Down Expand Up @@ -957,9 +950,9 @@ intr_check_sig:
* Only do signals if we are returning to user space
*/
LDREG PT_IASQ0(%r16), %r20
CMPIB=,n 0,%r20,intr_restore /* backward */
cmpib,COND(=),n 0,%r20,intr_restore /* backward */
LDREG PT_IASQ1(%r16), %r20
CMPIB=,n 0,%r20,intr_restore /* backward */
cmpib,COND(=),n 0,%r20,intr_restore /* backward */

copy %r0, %r25 /* long in_syscall = 0 */
#ifdef CONFIG_64BIT
Expand Down Expand Up @@ -1013,10 +1006,10 @@ intr_do_resched:
* we jump back to intr_restore.
*/
LDREG PT_IASQ0(%r16), %r20
CMPIB= 0, %r20, intr_do_preempt
cmpib,COND(=) 0, %r20, intr_do_preempt
nop
LDREG PT_IASQ1(%r16), %r20
CMPIB= 0, %r20, intr_do_preempt
cmpib,COND(=) 0, %r20, intr_do_preempt
nop

#ifdef CONFIG_64BIT
Expand Down Expand Up @@ -1045,7 +1038,7 @@ intr_do_preempt:
/* current_thread_info()->preempt_count */
mfctl %cr30, %r1
LDREG TI_PRE_COUNT(%r1), %r19
CMPIB<> 0, %r19, intr_restore /* if preempt_count > 0 */
cmpib,COND(<>) 0, %r19, intr_restore /* if preempt_count > 0 */
nop /* prev insn branched backwards */

/* check if we interrupted a critical path */
Expand All @@ -1064,7 +1057,7 @@ intr_do_preempt:
*/

intr_extint:
CMPIB=,n 0,%r16,1f
cmpib,COND(=),n 0,%r16,1f

get_stack_use_cr30
b,n 2f
Expand Down Expand Up @@ -1099,7 +1092,7 @@ ENDPROC(syscall_exit_rfi)

ENTRY(intr_save) /* for os_hpmc */
mfsp %sr7,%r16
CMPIB=,n 0,%r16,1f
cmpib,COND(=),n 0,%r16,1f
get_stack_use_cr30
b 2f
copy %r8,%r26
Expand All @@ -1121,7 +1114,7 @@ ENTRY(intr_save) /* for os_hpmc */
* adjust isr/ior below.
*/

CMPIB=,n 6,%r26,skip_save_ior
cmpib,COND(=),n 6,%r26,skip_save_ior


mfctl %cr20, %r16 /* isr */
Expand Down Expand Up @@ -1450,11 +1443,11 @@ nadtlb_emulate:
bb,>=,n %r9,26,nadtlb_nullify /* m bit not set, just nullify */
BL get_register,%r25
extrw,u %r9,15,5,%r8 /* Get index register # */
CMPIB=,n -1,%r1,nadtlb_fault /* have to use slow path */
cmpib,COND(=),n -1,%r1,nadtlb_fault /* have to use slow path */
copy %r1,%r24
BL get_register,%r25
extrw,u %r9,10,5,%r8 /* Get base register # */
CMPIB=,n -1,%r1,nadtlb_fault /* have to use slow path */
cmpib,COND(=),n -1,%r1,nadtlb_fault /* have to use slow path */
BL set_register,%r25
add,l %r1,%r24,%r1 /* doesn't affect c/b bits */

Expand Down Expand Up @@ -1486,7 +1479,7 @@ nadtlb_probe_check:
cmpb,<>,n %r16,%r17,nadtlb_fault /* Must be probe,[rw]*/
BL get_register,%r25 /* Find the target register */
extrw,u %r9,31,5,%r8 /* Get target register */
CMPIB=,n -1,%r1,nadtlb_fault /* have to use slow path */
cmpib,COND(=),n -1,%r1,nadtlb_fault /* have to use slow path */
BL set_register,%r25
copy %r0,%r1 /* Write zero to target register */
b nadtlb_nullify /* Nullify return insn */
Expand Down Expand Up @@ -1570,12 +1563,12 @@ dbit_trap_20w:
L3_ptep ptp,pte,t0,va,dbit_fault

#ifdef CONFIG_SMP
CMPIB=,n 0,spc,dbit_nolock_20w
cmpib,COND(=),n 0,spc,dbit_nolock_20w
load32 PA(pa_dbit_lock),t0

dbit_spin_20w:
LDCW 0(t0),t1
cmpib,= 0,t1,dbit_spin_20w
cmpib,COND(=) 0,t1,dbit_spin_20w
nop

dbit_nolock_20w:
Expand All @@ -1586,7 +1579,7 @@ dbit_nolock_20w:

idtlbt pte,prot
#ifdef CONFIG_SMP
CMPIB=,n 0,spc,dbit_nounlock_20w
cmpib,COND(=),n 0,spc,dbit_nounlock_20w
ldi 1,t1
stw t1,0(t0)

Expand All @@ -1606,7 +1599,7 @@ dbit_trap_11:
L2_ptep ptp,pte,t0,va,dbit_fault

#ifdef CONFIG_SMP
CMPIB=,n 0,spc,dbit_nolock_11
cmpib,COND(=),n 0,spc,dbit_nolock_11
load32 PA(pa_dbit_lock),t0

dbit_spin_11:
Expand All @@ -1628,7 +1621,7 @@ dbit_nolock_11:

mtsp t1, %sr1 /* Restore sr1 */
#ifdef CONFIG_SMP
CMPIB=,n 0,spc,dbit_nounlock_11
cmpib,COND(=),n 0,spc,dbit_nounlock_11
ldi 1,t1
stw t1,0(t0)

Expand All @@ -1646,7 +1639,7 @@ dbit_trap_20:
L2_ptep ptp,pte,t0,va,dbit_fault

#ifdef CONFIG_SMP
CMPIB=,n 0,spc,dbit_nolock_20
cmpib,COND(=),n 0,spc,dbit_nolock_20
load32 PA(pa_dbit_lock),t0

dbit_spin_20:
Expand All @@ -1665,7 +1658,7 @@ dbit_nolock_20:
idtlbt pte,prot

#ifdef CONFIG_SMP
CMPIB=,n 0,spc,dbit_nounlock_20
cmpib,COND(=),n 0,spc,dbit_nounlock_20
ldi 1,t1
stw t1,0(t0)

Expand Down Expand Up @@ -1994,7 +1987,7 @@ ENTRY(syscall_exit)

/* We can't use "CMPIB<> PER_HPUX" since "im5" field is sign extended */
ldo -PER_HPUX(%r19), %r19
CMPIB<>,n 0,%r19,1f
cmpib,COND(<>),n 0,%r19,1f

/* Save other hpux returns if personality is PER_HPUX */
STREG %r22,TASK_PT_GR22(%r1)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/parisc/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ENTRY(boot_args)
.word 0 /* arg3 */
END(boot_args)

.section .text.head
__HEAD
.align 4
.import init_thread_union,data
.import fault_vector_20,code /* IVA parisc 2.0 32 bit */
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/parisc/kernel/hpmc.S
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <asm/pdc.h>

#include <linux/linkage.h>
#include <linux/init.h>

/*
* stack for os_hpmc, the HPMC handler.
Expand Down Expand Up @@ -76,7 +77,7 @@ ENTRY(hpmc_pim_data)
.block HPMC_PIM_DATA_SIZE
END(hpmc_pim_data)

.text
__HEAD

.import intr_save, code
ENTRY(os_hpmc)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/parisc/kernel/inventory.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ add_system_map_addresses(struct parisc_device *dev, int num_addrs,
dev->addr = kmalloc(num_addrs * sizeof(unsigned long), GFP_KERNEL);
if(!dev->addr) {
printk(KERN_ERR "%s %s(): memory allocation failure\n",
__FILE__, __FUNCTION__);
__FILE__, __func__);
return;
}

Expand Down
Loading

0 comments on commit 1986a6c

Please sign in to comment.