Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95708
b: refs/heads/master
c: 1616132
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and Herbert Xu committed May 1, 2008
1 parent 9e492ac commit 7e5a36f
Show file tree
Hide file tree
Showing 115 changed files with 699 additions and 1,166 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: 3b2b74cad34e7a0cf6d4929ee9e8ad4e11a84867
refs/heads/master: 161613293fd4b7d5ceb1faab788f47e688e07a67
5 changes: 1 addition & 4 deletions trunk/Documentation/kdump/kdump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ The syntax is:
crashkernel=<range1>:<size1>[,<range2>:<size2>,...][@offset]
range=start-[end]

'start' is inclusive and 'end' is exclusive.

For example:

crashkernel=512M-2G:64M,2G-:128M
Expand All @@ -255,11 +253,10 @@ This would mean:

1) if the RAM is smaller than 512M, then don't reserve anything
(this is the "rescue" case)
2) if the RAM size is between 512M and 2G (exclusive), then reserve 64M
2) if the RAM size is between 512M and 2G, then reserve 64M
3) if the RAM size is larger than 2G, then reserve 128M



Boot into System Kernel
=======================

Expand Down
12 changes: 2 additions & 10 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1196,9 +1196,9 @@ S: Maintained

CPUSETS
P: Paul Jackson
P: Paul Menage
P: Simon Derr
M: pj@sgi.com
M: menage@google.com
M: simon.derr@bull.net
L: linux-kernel@vger.kernel.org
W: http://www.bullopensource.org/cpuset/
S: Supported
Expand Down Expand Up @@ -1557,14 +1557,6 @@ M: raisch@de.ibm.com
L: general@lists.openfabrics.org
S: Supported

EMBEDDED LINUX
P: Paul Gortmaker
M: paul.gortmaker@windriver.com
P David Woodhouse
M: dwmw2@infradead.org
L: linux-embedded@vger.kernel.org
S: Maintained

EMULEX LPFC FC SCSI DRIVER
P: James Smart
M: james.smart@emulex.com
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/frv/mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ obj-y := init.o kmap.o

obj-$(CONFIG_MMU) += \
pgalloc.o highmem.o fault.o extable.o cache-page.o tlb-flush.o tlb-miss.o \
mmu-context.o dma-alloc.o elf-fdpic.o
mmu-context.o dma-alloc.o unaligned.o elf-fdpic.o
3 changes: 2 additions & 1 deletion trunk/arch/ia64/kvm/kvm-ia64.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*
* kvm_ia64.c: Basic KVM suppport On Itanium series processors
*
Expand Down Expand Up @@ -430,7 +431,7 @@ int kvm_emulate_halt(struct kvm_vcpu *vcpu)
if (itc_diff < 0)
itc_diff = -itc_diff;

expires = div64_u64(itc_diff, cyc_per_usec);
expires = div64_64(itc_diff, cyc_per_usec);
kt = ktime_set(0, 1000 * expires);
vcpu->arch.ht_active = 1;
hrtimer_start(p_ht, kt, HRTIMER_MODE_ABS);
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/m68knommu/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ int main(void)
DEFINE(TI_TASK, offsetof(struct thread_info, task));
DEFINE(TI_EXECDOMAIN, offsetof(struct thread_info, exec_domain));
DEFINE(TI_FLAGS, offsetof(struct thread_info, flags));
DEFINE(TI_PREEMPTCOUNT, offsetof(struct thread_info, preempt_count));
DEFINE(TI_CPU, offsetof(struct thread_info, cpu));

return 0;
Expand Down
9 changes: 0 additions & 9 deletions trunk/arch/m68knommu/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <asm/segment.h>
#include <asm/asm-offsets.h>
#include <asm/entry.h>
#include <asm/unistd.h>

.text

Expand Down Expand Up @@ -141,11 +140,3 @@ ENTRY(sys_rt_sigreturn)
RESTORE_SWITCH_STACK
rts

ENTRY(ret_from_user_signal)
moveq #__NR_sigreturn,%d0
trap #0

ENTRY(ret_from_user_rt_signal)
move #__NR_rt_sigreturn,%d0
trap #0

2 changes: 1 addition & 1 deletion trunk/arch/m68knommu/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void __init setup_arch(char **cmdline_p)
printk(KERN_INFO "DragonEngine II board support by Georges Menie\n");
#endif
#ifdef CONFIG_M5235EVB
printk(KERN_INFO "Motorola M5235EVB support (C)2005 Syn-tech Systems, Inc. (Jate Sujjavanich)\n");
printk(KERN_INFO "Motorola M5235EVB support (C)2005 Syn-tech Systems, Inc. (Jate Sujjavanich)");
#endif

#ifdef DEBUG
Expand Down
21 changes: 17 additions & 4 deletions trunk/arch/m68knommu/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@

#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))

void ret_from_user_signal(void);
void ret_from_user_rt_signal(void);
asmlinkage int do_signal(sigset_t *oldset, struct pt_regs *regs);

/*
Expand Down Expand Up @@ -541,6 +539,10 @@ static inline int rt_setup_ucontext(struct ucontext *uc, struct pt_regs *regs)
return err;
}

static inline void push_cache (unsigned long vaddr)
{
}

static inline void *
get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size)
{
Expand Down Expand Up @@ -584,11 +586,16 @@ static void setup_frame (int sig, struct k_sigaction *ka,
err |= copy_to_user (&frame->sc, &context, sizeof(context));

/* Set up to return from userspace. */
err |= __put_user((void *) ret_from_user_signal, &frame->pretcode);
err |= __put_user(frame->retcode, &frame->pretcode);
/* moveq #,d0; trap #0 */
err |= __put_user(0x70004e40 + (__NR_sigreturn << 16),
(long *)(frame->retcode));

if (err)
goto give_sigsegv;

push_cache ((unsigned long) &frame->retcode);

/* Set up registers for signal handler */
wrusp ((unsigned long) frame);
regs->pc = (unsigned long) ka->sa.sa_handler;
Expand Down Expand Up @@ -648,11 +655,17 @@ static void setup_rt_frame (int sig, struct k_sigaction *ka, siginfo_t *info,
err |= copy_to_user (&frame->uc.uc_sigmask, set, sizeof(*set));

/* Set up to return from userspace. */
err |= __put_user((void *) ret_from_user_rt_signal, &frame->pretcode);
err |= __put_user(frame->retcode, &frame->pretcode);
/* moveq #,d0; notb d0; trap #0 */
err |= __put_user(0x70004600 + ((__NR_rt_sigreturn ^ 0xff) << 16),
(long *)(frame->retcode + 0));
err |= __put_user(0x4e40, (short *)(frame->retcode + 4));

if (err)
goto give_sigsegv;

push_cache ((unsigned long) &frame->retcode);

/* Set up registers for signal handler */
wrusp ((unsigned long) frame);
regs->pc = (unsigned long) ka->sa.sa_handler;
Expand Down
88 changes: 34 additions & 54 deletions trunk/arch/m68knommu/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <linux/linkage.h>
#include <linux/init.h>
#include <linux/ptrace.h>
#include <linux/kallsyms.h>

#include <asm/setup.h>
#include <asm/fpu.h>
Expand Down Expand Up @@ -103,47 +102,56 @@ asmlinkage void buserr_c(struct frame *fp)
force_sig(SIGSEGV, current);
}


int kstack_depth_to_print = 48;

static void __show_stack(struct task_struct *task, unsigned long *stack)
void show_stack(struct task_struct *task, unsigned long *stack)
{
unsigned long *endstack, addr;
unsigned long *last_stack;
extern char _start, _etext;
int i;

if (!stack)
stack = (unsigned long *)task->thread.ksp;
if (!stack) {
if (task)
stack = (unsigned long *)task->thread.ksp;
else
stack = (unsigned long *)&stack;
}

addr = (unsigned long) stack;
endstack = (unsigned long *) PAGE_ALIGN(addr);

printk(KERN_EMERG "Stack from %08lx:", (unsigned long)stack);
for (i = 0; i < kstack_depth_to_print; i++) {
if (stack + 1 + i > endstack)
if (stack + 1 > endstack)
break;
if (i % 8 == 0)
printk("\n" KERN_EMERG " ");
printk(" %08lx", *(stack + i));
printk(" %08lx", *stack++);
}
printk("\n");

#ifdef CONFIG_FRAME_POINTER
printk(KERN_EMERG "Call Trace:\n");

last_stack = stack - 1;
while (stack <= endstack && stack > last_stack) {

addr = *(stack + 1);
printk(KERN_EMERG " [%08lx] ", addr);
print_symbol(KERN_CONT "%s\n", addr);

last_stack = stack;
stack = (unsigned long *)*stack;
printk(KERN_EMERG "Call Trace:");
i = 0;
while (stack + 1 <= endstack) {
addr = *stack++;
/*
* If the address is either in the text segment of the
* kernel, or in the region which contains vmalloc'ed
* memory, it *may* be the address of a calling
* routine; if so, print it so that someone tracing
* down the cause of the crash will be able to figure
* out the call path that was taken.
*/
if (((addr >= (unsigned long) &_start) &&
(addr <= (unsigned long) &_etext))) {
if (i % 4 == 0)
printk("\n" KERN_EMERG " ");
printk(" [<%08lx>]", addr);
i++;
}
}
printk("\n");
#else
printk(KERN_EMERG "CONFIG_FRAME_POINTER disabled, no symbolic call trace\n");
#endif
}

void bad_super_trap(struct frame *fp)
Expand Down Expand Up @@ -290,46 +298,18 @@ asmlinkage void set_esp0(unsigned long ssp)
current->thread.esp0 = ssp;
}


/*
* The architecture-independent backtrace generator
*/
void dump_stack(void)
{
/*
* We need frame pointers for this little trick, which works as follows:
*
* +------------+ 0x00
* | Next SP | -> 0x0c
* +------------+ 0x04
* | Caller |
* +------------+ 0x08
* | Local vars | -> our stack var
* +------------+ 0x0c
* | Next SP | -> 0x18, that is what we pass to show_stack()
* +------------+ 0x10
* | Caller |
* +------------+ 0x14
* | Local vars |
* +------------+ 0x18
* | ... |
* +------------+
*/
unsigned long stack;

unsigned long *stack;

stack = (unsigned long *)&stack;
stack++;
__show_stack(current, stack);
show_stack(current, &stack);
}
EXPORT_SYMBOL(dump_stack);

void show_stack(struct task_struct *task, unsigned long *stack)
{
if (!stack && !task)
dump_stack();
else
__show_stack(task, stack);
}
EXPORT_SYMBOL(dump_stack);

#ifdef CONFIG_M68KFPU_EMU
asmlinkage void fpemu_signal(int signal, int code, void *addr)
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/m68knommu/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ SECTIONS {
_stext = . ;
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
*(.text.lock)

. = ALIGN(16); /* Exception table */
Expand All @@ -74,7 +73,6 @@ SECTIONS {

*(.rodata) *(.rodata.*)
*(__vermagic) /* Kernel version magic */
*(__markers_strings)
*(.rodata1)
*(.rodata.str1.1)

Expand Down Expand Up @@ -184,7 +182,6 @@ SECTIONS {
*(COMMON)
. = ALIGN(4) ;
_ebss = . ;
_end = . ;
} > BSS

}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/m68knommu/platform/5206e/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static struct platform_device *m5206e_devices[] __initdata = {

/***************************************************************************/

static void __init m5206e_uart_init_line(int line, int irq)
static void __init m5206_uart_init_line(int line, int irq)
{
if (line == 0) {
writel(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI1, MCF_MBAR + MCFSIM_UART1ICR);
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/m68knommu/platform/5272/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ void __init config_BSP(char *commandp, int size)
/* Copy command line from FLASH to local buffer... */
memcpy(commandp, (char *) 0xf0004000, size);
commandp[size-1] = 0;
#elif defined(CONFIG_MTD_KeyTechnology)
/* Copy command line from FLASH to local buffer... */
memcpy(commandp, (char *) 0xffe06000, size);
commandp[size-1] = 0;
#elif defined(CONFIG_CANCam)
/* Copy command line from FLASH to local buffer... */
memcpy(commandp, (char *) 0xf0010000, size);
Expand Down
Loading

0 comments on commit 7e5a36f

Please sign in to comment.