Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27146
b: refs/heads/master
c: f291196
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu ~{PmVHI~} authored and David S. Miller committed Jun 5, 2006
1 parent c598d5d commit 5526735
Show file tree
Hide file tree
Showing 46 changed files with 126 additions and 235 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: a8c725045eb2eaa6c28a5493cb193f47a5c4afe4
refs/heads/master: f291196979ca80cdef199ca2b55e2758e8c23a0d
5 changes: 0 additions & 5 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1889,11 +1889,6 @@ L: linux-kernel@vger.kernel.org
W: http://www.atnf.csiro.au/~rgooch/linux/kernel-patches.html
S: Maintained

MULTIMEDIA CARD SUBSYSTEM
P: Russell King
M: rmk+mmc@arm.linux.org.uk
S: Maintained

MULTISOUND SOUND DRIVER
P: Andrew Veliath
M: andrewtv@usa.net
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ config DEBUG_S3C2410_UART
help
Choice for UART for kernel low-level using S3C2410 UARTS,
should be between zero and two. The port must have been
initialised by the boot-loader before use.
initalised by the boot-loader before use.

The uncompressor code port configuration is now handled
by CONFIG_S3C2410_LOWLEVEL_UART_PORT.
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-ixp4xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ config IXP4XX_INDIRECT_PCI
2) If > 64MB of memory space is required, the IXP4xx can be
configured to use indirect registers to access PCI This allows
for up to 128MB (0x48000000 to 0x4fffffff) of memory on the bus.
The disadvantage of this is that every PCI access requires
The disadvantadge of this is that every PCI access requires
three local register accesses plus a spinlock, but in some
cases the performance hit is acceptable. In addition, you cannot
mmap() PCI devices in this case due to the indirect nature
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-pxa/mainstone.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ static void __init mainstone_map_io(void)
MACHINE_START(MAINSTONE, "Intel HCDDBBVA0 Development Platform (aka Mainstone)")
/* Maintainer: MontaVista Software Inc. */
.phys_io = 0x40000000,
.boot_params = 0xa0000100, /* BLOB boot parameter setting */
.io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
.map_io = mainstone_map_io,
.init_irq = mainstone_init_irq,
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-s3c2410/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ config S3C2410_PM_DEBUG
depends on ARCH_S3C2410 && PM
help
Say Y here if you want verbose debugging from the PM Suspend and
Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
Resume code. See `Documentation/arm/Samsing-S3C24XX/Suspend.txt`
for more information.

config S3C2410_PM_CHECK
Expand Down
24 changes: 15 additions & 9 deletions trunk/arch/mips/au1000/common/prom.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/*
*
* BRIEF MODULE DESCRIPTION
* PROM library initialisation code, assuming YAMON is the boot loader.
* PROM library initialisation code, assuming a version of
* pmon is the boot code.
*
* Copyright 2000, 2001, 2006 MontaVista Software Inc.
* Copyright 2000,2001 MontaVista Software Inc.
* Author: MontaVista Software, Inc.
* ppopov@mvista.com or source@mvista.com
*
Expand Down Expand Up @@ -48,9 +49,9 @@ extern char **prom_argv, **prom_envp;

typedef struct
{
char *name;
char *val;
} t_env_var;
char *name;
/* char *val; */
}t_env_var;


char * prom_getcmdline(void)
Expand Down Expand Up @@ -84,16 +85,21 @@ char *prom_getenv(char *envname)
{
/*
* Return a pointer to the given environment variable.
* Environment variables are stored in the form of "memsize=64".
*/

t_env_var *env = (t_env_var *)prom_envp;
int i;

i = strlen(envname);

while (env->name) {
if (strcmp(envname, env->name) == 0)
return env->val;
while(env->name) {
if(strncmp(envname, env->name, i) == 0) {
return(env->name + strlen(envname) + 1);
}
env++;
}
return NULL;
return(NULL);
}

inline unsigned char str2hexnum(unsigned char c)
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/mips/au1000/common/sleeper.S
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,6 @@ sdsleep:
mtc0 k0, CP0_PAGEMASK
lw k0, 0x14(sp)
mtc0 k0, CP0_CONFIG

/* We need to catch the ealry Alchemy SOCs with
* the write-only Config[OD] bit and set it back to one...
*/
jal au1x00_fixup_config_od
lw $1, PT_R1(sp)
lw $2, PT_R2(sp)
lw $3, PT_R3(sp)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/ddb5xxx/ddb5476/dbg_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop)
/* disable interrupts */
UART16550_WRITE(OFS_INTR_ENABLE, 0);

/* set up baud rate */
/* set up buad rate */
{
uint32 divisor;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/ddb5xxx/ddb5477/kgdb_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop)
/* disable interrupts */
UART16550_WRITE(OFS_INTR_ENABLE, 0);

/* set up baud rate */
/* set up buad rate */
{
uint32 divisor;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/gt64120/ev64120/serialGT.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void serial_set(int channel, unsigned long baud)
#else
/*
* Note: Set baud rate, hardcoded here for rate of 115200
* since became unsure of above "baud rate" algorithm (??).
* since became unsure of above "buad rate" algorithm (??).
*/
outreg(channel, LCR, 0x83);
outreg(channel, DLM, 0x00); // See note above
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/gt64120/momenco_ocelot/dbg_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop)
/* disable interrupts */
UART16550_WRITE(OFS_INTR_ENABLE, 0);

/* set up baud rate */
/* set up buad rate */
{
uint32 divisor;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/ite-boards/generic/dbg_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop)
/* disable interrupts */
UART16550_WRITE(OFS_INTR_ENABLE, 0);

/* set up baud rate */
/* set up buad rate */
{
uint32 divisor;

Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/mips/kernel/cpu-bugs64.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static inline void check_daddi(void)
"daddi %0, %1, %3\n\t"
".set pop"
: "=r" (v), "=&r" (tmp)
: "I" (0xffffffffffffdb9aUL), "I" (0x1234));
: "I" (0xffffffffffffdb9a), "I" (0x1234));
set_except_vector(12, handler);
local_irq_restore(flags);

Expand All @@ -224,7 +224,7 @@ static inline void check_daddi(void)
"dsrl %1, %1, 1\n\t"
"daddi %0, %1, %3"
: "=r" (v), "=&r" (tmp)
: "I" (0xffffffffffffdb9aUL), "I" (0x1234));
: "I" (0xffffffffffffdb9a), "I" (0x1234));
set_except_vector(12, handler);
local_irq_restore(flags);

Expand Down Expand Up @@ -280,7 +280,7 @@ static inline void check_daddiu(void)
"daddu %1, %2\n\t"
".set pop"
: "=&r" (v), "=&r" (w), "=&r" (tmp)
: "I" (0xffffffffffffdb9aUL), "I" (0x1234));
: "I" (0xffffffffffffdb9a), "I" (0x1234));

if (v == w) {
printk("no.\n");
Expand All @@ -296,7 +296,7 @@ static inline void check_daddiu(void)
"addiu %1, $0, %4\n\t"
"daddu %1, %2"
: "=&r" (v), "=&r" (w), "=&r" (tmp)
: "I" (0xffffffffffffdb9aUL), "I" (0x1234));
: "I" (0xffffffffffffdb9a), "I" (0x1234));

if (v == w) {
printk("yes.\n");
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/kernel/cpu-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ static inline void cpu_probe_sibyte(struct cpuinfo_mips *c)
case PRID_IMP_SB1:
c->cputype = CPU_SB1;
/* FPU in pass1 is known to have issues. */
if ((c->processor_id & 0xff) < 0x02)
if ((c->processor_id & 0xff) < 0x20)
c->options &= ~(MIPS_CPU_FPU | MIPS_CPU_32FPR);
break;
case PRID_IMP_SB1A:
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/mips/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,6 @@ int apply_relocate(Elf_Shdr *sechdrs, const char *strtab,
sym = (Elf_Sym *)sechdrs[symindex].sh_addr
+ ELF_MIPS_R_SYM(rel[i]);
if (!sym->st_value) {
/* Ignore unresolved weak symbol */
if (ELF_ST_BIND(sym->st_info) == STB_WEAK)
continue;
printk(KERN_WARNING "%s: Unknown symbol %s\n",
me->name, strtab + sym->st_name);
return -ENOENT;
Expand Down Expand Up @@ -328,9 +325,6 @@ int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab,
sym = (Elf_Sym *)sechdrs[symindex].sh_addr
+ ELF_MIPS_R_SYM(rel[i]);
if (!sym->st_value) {
/* Ignore unresolved weak symbol */
if (ELF_ST_BIND(sym->st_info) == STB_WEAK)
continue;
printk(KERN_WARNING "%s: Unknown symbol %s\n",
me->name, strtab + sym->st_name);
return -ENOENT;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/kernel/scall64-o32.S
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ sys_call_table:
PTR sys_fork
PTR sys_read
PTR sys_write
PTR compat_sys_open /* 4005 */
PTR sys_open /* 4005 */
PTR sys_close
PTR sys_waitpid
PTR sys_creat
Expand Down
18 changes: 8 additions & 10 deletions trunk/arch/mips/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static inline int parse_rd_cmdline(unsigned long* rd_start, unsigned long* rd_en
#ifdef CONFIG_64BIT
/* HACK: Guess if the sign extension was forgotten */
if (start > 0x0000000080000000 && start < 0x00000000ffffffff)
start |= 0xffffffff00000000UL;
start |= 0xffffffff00000000;
#endif

end = start + size;
Expand Down Expand Up @@ -355,6 +355,8 @@ static inline void bootmem_init(void)
}
#endif

memory_present(0, first_usable_pfn, max_low_pfn);

/* Initialize the boot-time allocator with low memory only. */
bootmap_size = init_bootmem(first_usable_pfn, max_low_pfn);

Expand Down Expand Up @@ -408,7 +410,6 @@ static inline void bootmem_init(void)

/* Register lowmem ranges */
free_bootmem(PFN_PHYS(curr_pfn), PFN_PHYS(size));
memory_present(0, curr_pfn, curr_pfn + size - 1);
}

/* Reserve the bootmap memory. */
Expand All @@ -418,20 +419,17 @@ static inline void bootmem_init(void)
#ifdef CONFIG_BLK_DEV_INITRD
initrd_below_start_ok = 1;
if (initrd_start) {
unsigned long initrd_size = ((unsigned char *)initrd_end) -
((unsigned char *)initrd_start);
const int width = sizeof(long) * 2;

unsigned long initrd_size = ((unsigned char *)initrd_end) - ((unsigned char *)initrd_start);
printk("Initial ramdisk at: 0x%p (%lu bytes)\n",
(void *)initrd_start, initrd_size);

if (CPHYSADDR(initrd_end) > PFN_PHYS(max_low_pfn)) {
printk("initrd extends beyond end of memory "
"(0x%0*Lx > 0x%0*Lx)\ndisabling initrd\n",
width,
(unsigned long long) CPHYSADDR(initrd_end),
width,
(unsigned long long) PFN_PHYS(max_low_pfn));
sizeof(long) * 2,
(unsigned long long)CPHYSADDR(initrd_end),
sizeof(long) * 2,
(unsigned long long)PFN_PHYS(max_low_pfn));
initrd_start = initrd_end = 0;
initrd_reserve_bootmem = 0;
}
Expand Down
5 changes: 1 addition & 4 deletions trunk/arch/mips/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,6 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
current_thread_info()->cpu = 0;
smp_tune_scheduling();
plat_prepare_cpus(max_cpus);
#ifndef CONFIG_HOTPLUG_CPU
cpu_present_map = cpu_possible_map;
#endif
}

/* preload SMP state for boot cpu */
Expand Down Expand Up @@ -445,7 +442,7 @@ static int __init topology_init(void)
int cpu;
int ret;

for_each_present_cpu(cpu) {
for_each_cpu(cpu) {
ret = register_cpu(&per_cpu(cpu_devices, cpu), cpu, NULL);
if (ret)
printk(KERN_WARNING "topology_init: register_cpu %d "
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/mips/kernel/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ void sys_set_thread_area(unsigned long addr)

asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3)
{
int tmp;
int tmp, len;
char __user *name;

switch(cmd) {
case MIPS_ATOMIC_SET:
Expand Down
19 changes: 2 additions & 17 deletions trunk/arch/mips/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,30 +819,15 @@ asmlinkage void do_watch(struct pt_regs *regs)

asmlinkage void do_mcheck(struct pt_regs *regs)
{
const int field = 2 * sizeof(unsigned long);
int multi_match = regs->cp0_status & ST0_TS;

show_regs(regs);

if (multi_match) {
printk("Index : %0x\n", read_c0_index());
printk("Pagemask: %0x\n", read_c0_pagemask());
printk("EntryHi : %0*lx\n", field, read_c0_entryhi());
printk("EntryLo0: %0*lx\n", field, read_c0_entrylo0());
printk("EntryLo1: %0*lx\n", field, read_c0_entrylo1());
printk("\n");
dump_tlb_all();
}

show_code((unsigned int *) regs->cp0_epc);

dump_tlb_all();
/*
* Some chips may have other causes of machine check (e.g. SB1
* graduation timer)
*/
panic("Caught Machine Check exception - %scaused by multiple "
"matching entries in the TLB.",
(multi_match) ? "" : "not ");
(regs->cp0_status & ST0_TS) ? "" : "not ");
}

asmlinkage void do_mt(struct pt_regs *regs)
Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/mips/math-emu/dp_fint.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@

ieee754dp ieee754dp_fint(int x)
{
u64 xm;
int xe;
int xs;
COMPXDP;

CLEARCX;

Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/mips/math-emu/dp_flong.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@

ieee754dp ieee754dp_flong(s64 x)
{
u64 xm;
int xe;
int xs;
COMPXDP;

CLEARCX;

Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/mips/math-emu/sp_fint.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@

ieee754sp ieee754sp_fint(int x)
{
unsigned xm;
int xe;
int xs;
COMPXSP;

CLEARCX;

Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/mips/math-emu/sp_flong.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@

ieee754sp ieee754sp_flong(s64 x)
{
u64 xm; /* <--- need 64-bit mantissa temp */
int xe;
int xs;
COMPXDP; /* <--- need 64-bit mantissa temp */

CLEARCX;

Expand Down
Loading

0 comments on commit 5526735

Please sign in to comment.