Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248
b: refs/heads/master
c: 0890d74
h: refs/heads/master
v: v3
  • Loading branch information
unknown authored and James Bottomley committed Apr 17, 2005
1 parent a3f62d4 commit a50a7db
Show file tree
Hide file tree
Showing 42 changed files with 524 additions and 944 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: 238628edb6cd427454fb54994e2605e191bfc26a
refs/heads/master: 0890d74f295be849032fd4390ee00422dfda83b1
15 changes: 4 additions & 11 deletions trunk/arch/arm/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,12 @@ void machine_restart(char * __unused)

EXPORT_SYMBOL(machine_restart);

void __show_regs(struct pt_regs *regs)
void show_regs(struct pt_regs * regs)
{
unsigned long flags = condition_codes(regs);
unsigned long flags;

flags = condition_codes(regs);

printk("CPU: %d\n", smp_processor_id());
print_symbol("PC is at %s\n", instruction_pointer(regs));
print_symbol("LR is at %s\n", regs->ARM_lr);
printk("pc : [<%08lx>] lr : [<%08lx>] %s\n"
Expand Down Expand Up @@ -212,14 +213,6 @@ void __show_regs(struct pt_regs *regs)
}
}

void show_regs(struct pt_regs * regs)
{
printk("\n");
printk("Pid: %d, comm: %20s\n", current->pid, current->comm);
__show_regs(regs);
__backtrace();
}

void show_fpregs(struct user_fp *regs)
{
int i;
Expand Down
8 changes: 6 additions & 2 deletions trunk/arch/arm/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@

#include "ptrace.h"

extern void c_backtrace (unsigned long fp, int pmode);
extern void show_pte(struct mm_struct *mm, unsigned long addr);

const char *processor_modes[]=
{ "USER_26", "FIQ_26" , "IRQ_26" , "SVC_26" , "UK4_26" , "UK5_26" , "UK6_26" , "UK7_26" ,
"UK8_26" , "UK9_26" , "UK10_26", "UK11_26", "UK12_26", "UK13_26", "UK14_26", "UK15_26",
Expand Down Expand Up @@ -213,7 +216,8 @@ NORET_TYPE void die(const char *str, struct pt_regs *regs, int err)

printk("Internal error: %s: %x [#%d]\n", str, err, ++die_counter);
print_modules();
__show_regs(regs);
printk("CPU: %d\n", smp_processor_id());
show_regs(regs);
printk("Process %s (pid: %d, stack limit = 0x%p)\n",
tsk->comm, tsk->pid, tsk->thread_info + 1);

Expand Down Expand Up @@ -478,7 +482,7 @@ asmlinkage int arm_syscall(int no, struct pt_regs *regs)
current->pid, current->comm, no);
dump_instr(regs);
if (user_mode(regs)) {
__show_regs(regs);
show_regs(regs);
c_backtrace(regs->ARM_fp, processor_mode(regs));
}
}
Expand Down
11 changes: 9 additions & 2 deletions trunk/arch/arm/lib/changebit.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
#include <linux/linkage.h>
#include <asm/assembler.h>
#include "bitops.h"
.text

/* Purpose : Function to change a bit
Expand All @@ -18,4 +17,12 @@
ENTRY(_change_bit_be)
eor r0, r0, #0x18 @ big endian byte ordering
ENTRY(_change_bit_le)
bitop eor
and r2, r0, #7
mov r3, #1
mov r3, r3, lsl r2
save_and_disable_irqs ip, r2
ldrb r2, [r1, r0, lsr #3]
eor r2, r2, r3
strb r2, [r1, r0, lsr #3]
restore_irqs ip
RETINSTR(mov,pc,lr)
13 changes: 11 additions & 2 deletions trunk/arch/arm/lib/clearbit.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
#include <linux/linkage.h>
#include <asm/assembler.h>
#include "bitops.h"
.text

/*
Expand All @@ -19,4 +18,14 @@
ENTRY(_clear_bit_be)
eor r0, r0, #0x18 @ big endian byte ordering
ENTRY(_clear_bit_le)
bitop bic
and r2, r0, #7
mov r3, #1
mov r3, r3, lsl r2
save_and_disable_irqs ip, r2
ldrb r2, [r1, r0, lsr #3]
bic r2, r2, r3
strb r2, [r1, r0, lsr #3]
restore_irqs ip
RETINSTR(mov,pc,lr)


11 changes: 9 additions & 2 deletions trunk/arch/arm/lib/setbit.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
#include <linux/linkage.h>
#include <asm/assembler.h>
#include "bitops.h"
.text

/*
Expand All @@ -19,4 +18,12 @@
ENTRY(_set_bit_be)
eor r0, r0, #0x18 @ big endian byte ordering
ENTRY(_set_bit_le)
bitop orr
and r2, r0, #7
mov r3, #1
mov r3, r3, lsl r2
save_and_disable_irqs ip, r2
ldrb r2, [r1, r0, lsr #3]
orr r2, r2, r3
strb r2, [r1, r0, lsr #3]
restore_irqs ip
RETINSTR(mov,pc,lr)
15 changes: 13 additions & 2 deletions trunk/arch/arm/lib/testchangebit.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,21 @@
*/
#include <linux/linkage.h>
#include <asm/assembler.h>
#include "bitops.h"
.text

ENTRY(_test_and_change_bit_be)
eor r0, r0, #0x18 @ big endian byte ordering
ENTRY(_test_and_change_bit_le)
testop eor, strb
add r1, r1, r0, lsr #3
and r3, r0, #7
mov r0, #1
save_and_disable_irqs ip, r2
ldrb r2, [r1]
tst r2, r0, lsl r3
eor r2, r2, r0, lsl r3
strb r2, [r1]
restore_irqs ip
moveq r0, #0
RETINSTR(mov,pc,lr)


15 changes: 13 additions & 2 deletions trunk/arch/arm/lib/testclearbit.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,21 @@
*/
#include <linux/linkage.h>
#include <asm/assembler.h>
#include "bitops.h"
.text

ENTRY(_test_and_clear_bit_be)
eor r0, r0, #0x18 @ big endian byte ordering
ENTRY(_test_and_clear_bit_le)
testop bicne, strneb
add r1, r1, r0, lsr #3 @ Get byte offset
and r3, r0, #7 @ Get bit offset
mov r0, #1
save_and_disable_irqs ip, r2
ldrb r2, [r1]
tst r2, r0, lsl r3
bic r2, r2, r0, lsl r3
strb r2, [r1]
restore_irqs ip
moveq r0, #0
RETINSTR(mov,pc,lr)


15 changes: 13 additions & 2 deletions trunk/arch/arm/lib/testsetbit.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,21 @@
*/
#include <linux/linkage.h>
#include <asm/assembler.h>
#include "bitops.h"
.text

ENTRY(_test_and_set_bit_be)
eor r0, r0, #0x18 @ big endian byte ordering
ENTRY(_test_and_set_bit_le)
testop orreq, streqb
add r1, r1, r0, lsr #3 @ Get byte offset
and r3, r0, #7 @ Get bit offset
mov r0, #1
save_and_disable_irqs ip, r2
ldrb r2, [r1]
tst r2, r0, lsl r3
orr r2, r2, r0, lsl r3
strb r2, [r1]
restore_irqs ip
moveq r0, #0
RETINSTR(mov,pc,lr)


4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-footbridge/dc21285-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ static struct irqaction footbridge_timer_irq = {
*/
static void __init footbridge_timer_init(void)
{
isa_rtc_init();

timer1_latch = (mem_fclk_21285 + 8 * HZ) / (16 * HZ);

*CSR_TIMER1_CLR = 0;
*CSR_TIMER1_LOAD = timer1_latch;
*CSR_TIMER1_CNTL = TIMER_CNTL_ENABLE | TIMER_CNTL_AUTORELOAD | TIMER_CNTL_DIV16;

setup_irq(IRQ_TIMER1, &footbridge_timer_irq);

isa_rtc_init();
}

struct sys_timer footbridge_timer = {
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-sa1100/h3600.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static int h3600_irda_set_power(struct device *dev, unsigned int state)
return 0;
}

static void h3600_irda_set_speed(struct device *dev, unsigned int speed)
static void h3600_irda_set_speed(struct device *dev, int speed)
{
if (speed < 4000000) {
clr_h3600_egpio(IPAQ_EGPIO_IR_FSEL);
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/i386/kernel/acpi/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,11 +608,9 @@ static int __init acpi_parse_fadt(unsigned long phys, unsigned long size)
acpi_fadt.sci_int = fadt->sci_int;
#endif

#ifdef CONFIG_ACPI_BUS
/* initialize rev and apic_phys_dest_mode for x86_64 genapic */
acpi_fadt.revision = fadt->revision;
acpi_fadt.force_apic_physical_destination_mode = fadt->force_apic_physical_destination_mode;
#endif

#ifdef CONFIG_X86_PM_TIMER
/* detect the location of the ACPI PM Timer */
Expand Down
Loading

0 comments on commit a50a7db

Please sign in to comment.