diff options
| -rw-r--r-- | arch/sparc/kernel/rtrap.S | 2 | ||||
| -rw-r--r-- | arch/sparc64/mm/init.c | 16 | ||||
| -rw-r--r-- | drivers/net/wireless/strip.c | 2 | ||||
| -rw-r--r-- | drivers/serial/crisv10.c | 2 | ||||
| -rw-r--r-- | include/asm-sparc/ptrace.h | 2 |
5 files changed, 16 insertions, 8 deletions
diff --git a/arch/sparc/kernel/rtrap.S b/arch/sparc/kernel/rtrap.S index b27b5b56f77a..ab818cdc4cc0 100644 --- a/arch/sparc/kernel/rtrap.S +++ b/arch/sparc/kernel/rtrap.S | |||
| @@ -139,7 +139,7 @@ ret_trap_userwins_ok: | |||
| 139 | LOAD_PT_PRIV(sp, t_psr, t_pc, t_npc) | 139 | LOAD_PT_PRIV(sp, t_psr, t_pc, t_npc) |
| 140 | or %t_pc, %t_npc, %g2 | 140 | or %t_pc, %t_npc, %g2 |
| 141 | andcc %g2, 0x3, %g0 | 141 | andcc %g2, 0x3, %g0 |
| 142 | sethi %hi(PSR_SYCALL), %g2 | 142 | sethi %hi(PSR_SYSCALL), %g2 |
| 143 | be 1f | 143 | be 1f |
| 144 | andn %t_psr, %g2, %t_psr | 144 | andn %t_psr, %g2, %t_psr |
| 145 | 145 | ||
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index ec3e2c72302a..a9828d748e2c 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
| @@ -610,8 +610,6 @@ static void __init remap_kernel(void) | |||
| 610 | 610 | ||
| 611 | static void __init inherit_prom_mappings(void) | 611 | static void __init inherit_prom_mappings(void) |
| 612 | { | 612 | { |
| 613 | read_obp_translations(); | ||
| 614 | |||
| 615 | /* Now fixup OBP's idea about where we really are mapped. */ | 613 | /* Now fixup OBP's idea about where we really are mapped. */ |
| 616 | printk("Remapping the kernel... "); | 614 | printk("Remapping the kernel... "); |
| 617 | remap_kernel(); | 615 | remap_kernel(); |
| @@ -1747,7 +1745,17 @@ void __init paging_init(void) | |||
| 1747 | 1745 | ||
| 1748 | lmb_init(); | 1746 | lmb_init(); |
| 1749 | 1747 | ||
| 1750 | /* Find available physical memory... */ | 1748 | /* Find available physical memory... |
| 1749 | * | ||
| 1750 | * Read it twice in order to work around a bug in openfirmware. | ||
| 1751 | * The call to grab this table itself can cause openfirmware to | ||
| 1752 | * allocate memory, which in turn can take away some space from | ||
| 1753 | * the list of available memory. Reading it twice makes sure | ||
| 1754 | * we really do get the final value. | ||
| 1755 | */ | ||
| 1756 | read_obp_translations(); | ||
| 1757 | read_obp_memory("reg", &pall[0], &pall_ents); | ||
| 1758 | read_obp_memory("available", &pavail[0], &pavail_ents); | ||
| 1751 | read_obp_memory("available", &pavail[0], &pavail_ents); | 1759 | read_obp_memory("available", &pavail[0], &pavail_ents); |
| 1752 | 1760 | ||
| 1753 | phys_base = 0xffffffffffffffffUL; | 1761 | phys_base = 0xffffffffffffffffUL; |
| @@ -1788,8 +1796,6 @@ void __init paging_init(void) | |||
| 1788 | 1796 | ||
| 1789 | inherit_prom_mappings(); | 1797 | inherit_prom_mappings(); |
| 1790 | 1798 | ||
| 1791 | read_obp_memory("reg", &pall[0], &pall_ents); | ||
| 1792 | |||
| 1793 | init_kpte_bitmap(); | 1799 | init_kpte_bitmap(); |
| 1794 | 1800 | ||
| 1795 | /* Ok, we can use our TLB miss and window trap handlers safely. */ | 1801 | /* Ok, we can use our TLB miss and window trap handlers safely. */ |
diff --git a/drivers/net/wireless/strip.c b/drivers/net/wireless/strip.c index 5dd23c93497d..883af891ebfb 100644 --- a/drivers/net/wireless/strip.c +++ b/drivers/net/wireless/strip.c | |||
| @@ -2611,7 +2611,7 @@ static int strip_open(struct tty_struct *tty) | |||
| 2611 | * We need a write method. | 2611 | * We need a write method. |
| 2612 | */ | 2612 | */ |
| 2613 | 2613 | ||
| 2614 | if (tty->ops->write == NULL) | 2614 | if (tty->ops->write == NULL || tty->ops->set_termios == NULL) |
| 2615 | return -EOPNOTSUPP; | 2615 | return -EOPNOTSUPP; |
| 2616 | 2616 | ||
| 2617 | /* | 2617 | /* |
diff --git a/drivers/serial/crisv10.c b/drivers/serial/crisv10.c index f9fa237aa949..3e0366eab412 100644 --- a/drivers/serial/crisv10.c +++ b/drivers/serial/crisv10.c | |||
| @@ -3808,7 +3808,7 @@ rs_close(struct tty_struct *tty, struct file * filp) | |||
| 3808 | 3808 | ||
| 3809 | shutdown(info); | 3809 | shutdown(info); |
| 3810 | rs_flush_buffer(tty); | 3810 | rs_flush_buffer(tty); |
| 3811 | tty_ldisc_flush_buffer(tty); | 3811 | tty_ldisc_flush(tty); |
| 3812 | tty->closing = 0; | 3812 | tty->closing = 0; |
| 3813 | info->event = 0; | 3813 | info->event = 0; |
| 3814 | info->tty = 0; | 3814 | info->tty = 0; |
diff --git a/include/asm-sparc/ptrace.h b/include/asm-sparc/ptrace.h index 6b5e6ce5043c..0afb867d6c1b 100644 --- a/include/asm-sparc/ptrace.h +++ b/include/asm-sparc/ptrace.h | |||
| @@ -10,6 +10,8 @@ | |||
| 10 | 10 | ||
| 11 | #ifndef __ASSEMBLY__ | 11 | #ifndef __ASSEMBLY__ |
| 12 | 12 | ||
| 13 | #include <linux/types.h> | ||
| 14 | |||
| 13 | struct pt_regs { | 15 | struct pt_regs { |
| 14 | unsigned long psr; | 16 | unsigned long psr; |
| 15 | unsigned long pc; | 17 | unsigned long pc; |
