diff options
Diffstat (limited to 'arch/m68knommu')
-rw-r--r-- | arch/m68knommu/Kconfig | 4 | ||||
-rw-r--r-- | arch/m68knommu/Makefile | 1 | ||||
-rw-r--r-- | arch/m68knommu/kernel/m68k_ksyms.c | 4 | ||||
-rw-r--r-- | arch/m68knommu/kernel/process.c | 51 | ||||
-rw-r--r-- | arch/m68knommu/kernel/ptrace.c | 2 | ||||
-rw-r--r-- | arch/m68knommu/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/m68knommu/kernel/signal.c | 8 | ||||
-rw-r--r-- | arch/m68knommu/kernel/vmlinux.lds.S | 2 |
8 files changed, 12 insertions, 62 deletions
diff --git a/arch/m68knommu/Kconfig b/arch/m68knommu/Kconfig index b96498120fe9..e2a6e8648960 100644 --- a/arch/m68knommu/Kconfig +++ b/arch/m68knommu/Kconfig | |||
@@ -17,10 +17,6 @@ config FPU | |||
17 | bool | 17 | bool |
18 | default n | 18 | default n |
19 | 19 | ||
20 | config UID16 | ||
21 | bool | ||
22 | default y | ||
23 | |||
24 | config RWSEM_GENERIC_SPINLOCK | 20 | config RWSEM_GENERIC_SPINLOCK |
25 | bool | 21 | bool |
26 | default y | 22 | default y |
diff --git a/arch/m68knommu/Makefile b/arch/m68knommu/Makefile index b6b5c14e55fd..6f880cbff1c8 100644 --- a/arch/m68knommu/Makefile +++ b/arch/m68knommu/Makefile | |||
@@ -99,7 +99,6 @@ cflags-$(CONFIG_M68360) := -m68332 | |||
99 | AFLAGS += $(cflags-y) | 99 | AFLAGS += $(cflags-y) |
100 | 100 | ||
101 | CFLAGS += $(cflags-y) | 101 | CFLAGS += $(cflags-y) |
102 | CFLAGS += -O1 -g | ||
103 | CFLAGS += -D__linux__ | 102 | CFLAGS += -D__linux__ |
104 | CFLAGS += -DUTS_SYSNAME=\"uClinux\" | 103 | CFLAGS += -DUTS_SYSNAME=\"uClinux\" |
105 | 104 | ||
diff --git a/arch/m68knommu/kernel/m68k_ksyms.c b/arch/m68knommu/kernel/m68k_ksyms.c index e93a5ad56496..eddb8d3e130a 100644 --- a/arch/m68knommu/kernel/m68k_ksyms.c +++ b/arch/m68knommu/kernel/m68k_ksyms.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <asm/checksum.h> | 18 | #include <asm/checksum.h> |
19 | #include <asm/current.h> | 19 | #include <asm/current.h> |
20 | 20 | ||
21 | extern void dump_thread(struct pt_regs *, struct user *); | ||
22 | extern int dump_fpu(struct pt_regs *, elf_fpregset_t *); | 21 | extern int dump_fpu(struct pt_regs *, elf_fpregset_t *); |
23 | 22 | ||
24 | /* platform dependent support */ | 23 | /* platform dependent support */ |
@@ -26,7 +25,6 @@ extern int dump_fpu(struct pt_regs *, elf_fpregset_t *); | |||
26 | EXPORT_SYMBOL(__ioremap); | 25 | EXPORT_SYMBOL(__ioremap); |
27 | EXPORT_SYMBOL(iounmap); | 26 | EXPORT_SYMBOL(iounmap); |
28 | EXPORT_SYMBOL(dump_fpu); | 27 | EXPORT_SYMBOL(dump_fpu); |
29 | EXPORT_SYMBOL(dump_thread); | ||
30 | EXPORT_SYMBOL(strnlen); | 28 | EXPORT_SYMBOL(strnlen); |
31 | EXPORT_SYMBOL(strrchr); | 29 | EXPORT_SYMBOL(strrchr); |
32 | EXPORT_SYMBOL(strstr); | 30 | EXPORT_SYMBOL(strstr); |
@@ -38,8 +36,6 @@ EXPORT_SYMBOL(strncmp); | |||
38 | 36 | ||
39 | EXPORT_SYMBOL(ip_fast_csum); | 37 | EXPORT_SYMBOL(ip_fast_csum); |
40 | 38 | ||
41 | EXPORT_SYMBOL(mach_enable_irq); | ||
42 | EXPORT_SYMBOL(mach_disable_irq); | ||
43 | EXPORT_SYMBOL(kernel_thread); | 39 | EXPORT_SYMBOL(kernel_thread); |
44 | 40 | ||
45 | /* Networking helper routines. */ | 41 | /* Networking helper routines. */ |
diff --git a/arch/m68knommu/kernel/process.c b/arch/m68knommu/kernel/process.c index 82e7ec888806..99bf43824795 100644 --- a/arch/m68knommu/kernel/process.c +++ b/arch/m68knommu/kernel/process.c | |||
@@ -198,10 +198,9 @@ int copy_thread(int nr, unsigned long clone_flags, | |||
198 | { | 198 | { |
199 | struct pt_regs * childregs; | 199 | struct pt_regs * childregs; |
200 | struct switch_stack * childstack, *stack; | 200 | struct switch_stack * childstack, *stack; |
201 | unsigned long stack_offset, *retp; | 201 | unsigned long *retp; |
202 | 202 | ||
203 | stack_offset = THREAD_SIZE - sizeof(struct pt_regs); | 203 | childregs = (struct pt_regs *) (task_stack_page(p) + THREAD_SIZE) - 1; |
204 | childregs = (struct pt_regs *) ((unsigned long) p->thread_info + stack_offset); | ||
205 | 204 | ||
206 | *childregs = *regs; | 205 | *childregs = *regs; |
207 | childregs->d0 = 0; | 206 | childregs->d0 = 0; |
@@ -276,52 +275,6 @@ int dump_fpu(struct pt_regs *regs, struct user_m68kfp_struct *fpu) | |||
276 | } | 275 | } |
277 | 276 | ||
278 | /* | 277 | /* |
279 | * fill in the user structure for a core dump.. | ||
280 | */ | ||
281 | void dump_thread(struct pt_regs * regs, struct user * dump) | ||
282 | { | ||
283 | struct switch_stack *sw; | ||
284 | |||
285 | /* changed the size calculations - should hopefully work better. lbt */ | ||
286 | dump->magic = CMAGIC; | ||
287 | dump->start_code = 0; | ||
288 | dump->start_stack = rdusp() & ~(PAGE_SIZE - 1); | ||
289 | dump->u_tsize = ((unsigned long) current->mm->end_code) >> PAGE_SHIFT; | ||
290 | dump->u_dsize = ((unsigned long) (current->mm->brk + | ||
291 | (PAGE_SIZE-1))) >> PAGE_SHIFT; | ||
292 | dump->u_dsize -= dump->u_tsize; | ||
293 | dump->u_ssize = 0; | ||
294 | |||
295 | if (dump->start_stack < TASK_SIZE) | ||
296 | dump->u_ssize = ((unsigned long) (TASK_SIZE - dump->start_stack)) >> PAGE_SHIFT; | ||
297 | |||
298 | dump->u_ar0 = (struct user_regs_struct *)((int)&dump->regs - (int)dump); | ||
299 | sw = ((struct switch_stack *)regs) - 1; | ||
300 | dump->regs.d1 = regs->d1; | ||
301 | dump->regs.d2 = regs->d2; | ||
302 | dump->regs.d3 = regs->d3; | ||
303 | dump->regs.d4 = regs->d4; | ||
304 | dump->regs.d5 = regs->d5; | ||
305 | dump->regs.d6 = sw->d6; | ||
306 | dump->regs.d7 = sw->d7; | ||
307 | dump->regs.a0 = regs->a0; | ||
308 | dump->regs.a1 = regs->a1; | ||
309 | dump->regs.a2 = regs->a2; | ||
310 | dump->regs.a3 = sw->a3; | ||
311 | dump->regs.a4 = sw->a4; | ||
312 | dump->regs.a5 = sw->a5; | ||
313 | dump->regs.a6 = sw->a6; | ||
314 | dump->regs.d0 = regs->d0; | ||
315 | dump->regs.orig_d0 = regs->orig_d0; | ||
316 | dump->regs.stkadj = regs->stkadj; | ||
317 | dump->regs.sr = regs->sr; | ||
318 | dump->regs.pc = regs->pc; | ||
319 | dump->regs.fmtvec = (regs->format << 12) | regs->vector; | ||
320 | /* dump floating point stuff */ | ||
321 | dump->u_fpvalid = dump_fpu (regs, &dump->m68kfp); | ||
322 | } | ||
323 | |||
324 | /* | ||
325 | * Generic dumping code. Used for panic and debug. | 278 | * Generic dumping code. Used for panic and debug. |
326 | */ | 279 | */ |
327 | void dump(struct pt_regs *fp) | 280 | void dump(struct pt_regs *fp) |
diff --git a/arch/m68knommu/kernel/ptrace.c b/arch/m68knommu/kernel/ptrace.c index 262ab8c72e5f..382ca5797b97 100644 --- a/arch/m68knommu/kernel/ptrace.c +++ b/arch/m68knommu/kernel/ptrace.c | |||
@@ -101,7 +101,7 @@ void ptrace_disable(struct task_struct *child) | |||
101 | put_reg(child, PT_SR, tmp); | 101 | put_reg(child, PT_SR, tmp); |
102 | } | 102 | } |
103 | 103 | ||
104 | long arch_ptrace(truct task_struct *child, long request, long addr, long data) | 104 | long arch_ptrace(struct task_struct *child, long request, long addr, long data) |
105 | { | 105 | { |
106 | int ret; | 106 | int ret; |
107 | 107 | ||
diff --git a/arch/m68knommu/kernel/setup.c b/arch/m68knommu/kernel/setup.c index abb80fa2b940..93120b9bfff1 100644 --- a/arch/m68knommu/kernel/setup.c +++ b/arch/m68knommu/kernel/setup.c | |||
@@ -65,8 +65,6 @@ void (*mach_kbd_leds) (unsigned int) = NULL; | |||
65 | /* machine dependent irq functions */ | 65 | /* machine dependent irq functions */ |
66 | void (*mach_init_IRQ) (void) = NULL; | 66 | void (*mach_init_IRQ) (void) = NULL; |
67 | irqreturn_t (*(*mach_default_handler)[]) (int, void *, struct pt_regs *) = NULL; | 67 | irqreturn_t (*(*mach_default_handler)[]) (int, void *, struct pt_regs *) = NULL; |
68 | void (*mach_enable_irq) (unsigned int) = NULL; | ||
69 | void (*mach_disable_irq) (unsigned int) = NULL; | ||
70 | int (*mach_get_irq_list) (struct seq_file *, void *) = NULL; | 68 | int (*mach_get_irq_list) (struct seq_file *, void *) = NULL; |
71 | void (*mach_process_int) (int irq, struct pt_regs *fp) = NULL; | 69 | void (*mach_process_int) (int irq, struct pt_regs *fp) = NULL; |
72 | void (*mach_trap_init) (void); | 70 | void (*mach_trap_init) (void); |
diff --git a/arch/m68knommu/kernel/signal.c b/arch/m68knommu/kernel/signal.c index 43a2726c0d0a..e1b3aa39e270 100644 --- a/arch/m68knommu/kernel/signal.c +++ b/arch/m68knommu/kernel/signal.c | |||
@@ -285,6 +285,7 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext *usc, void *fp, | |||
285 | regs->d1 = context.sc_d1; | 285 | regs->d1 = context.sc_d1; |
286 | regs->a0 = context.sc_a0; | 286 | regs->a0 = context.sc_a0; |
287 | regs->a1 = context.sc_a1; | 287 | regs->a1 = context.sc_a1; |
288 | ((struct switch_stack *)regs - 1)->a5 = context.sc_a5; | ||
288 | regs->sr = (regs->sr & 0xff00) | (context.sc_sr & 0xff); | 289 | regs->sr = (regs->sr & 0xff00) | (context.sc_sr & 0xff); |
289 | regs->pc = context.sc_pc; | 290 | regs->pc = context.sc_pc; |
290 | regs->orig_d0 = -1; /* disable syscall checks */ | 291 | regs->orig_d0 = -1; /* disable syscall checks */ |
@@ -498,6 +499,7 @@ static void setup_sigcontext(struct sigcontext *sc, struct pt_regs *regs, | |||
498 | sc->sc_d1 = regs->d1; | 499 | sc->sc_d1 = regs->d1; |
499 | sc->sc_a0 = regs->a0; | 500 | sc->sc_a0 = regs->a0; |
500 | sc->sc_a1 = regs->a1; | 501 | sc->sc_a1 = regs->a1; |
502 | sc->sc_a5 = ((struct switch_stack *)regs - 1)->a5; | ||
501 | sc->sc_sr = regs->sr; | 503 | sc->sc_sr = regs->sr; |
502 | sc->sc_pc = regs->pc; | 504 | sc->sc_pc = regs->pc; |
503 | sc->sc_formatvec = regs->format << 12 | regs->vector; | 505 | sc->sc_formatvec = regs->format << 12 | regs->vector; |
@@ -597,6 +599,9 @@ static void setup_frame (int sig, struct k_sigaction *ka, | |||
597 | /* Set up registers for signal handler */ | 599 | /* Set up registers for signal handler */ |
598 | wrusp ((unsigned long) frame); | 600 | wrusp ((unsigned long) frame); |
599 | regs->pc = (unsigned long) ka->sa.sa_handler; | 601 | regs->pc = (unsigned long) ka->sa.sa_handler; |
602 | ((struct switch_stack *)regs - 1)->a5 = current->mm->start_data; | ||
603 | regs->format = 0x4; /*set format byte to make stack appear modulo 4 | ||
604 | which it will be when doing the rte */ | ||
600 | 605 | ||
601 | adjust_stack: | 606 | adjust_stack: |
602 | /* Prepare to skip over the extra stuff in the exception frame. */ | 607 | /* Prepare to skip over the extra stuff in the exception frame. */ |
@@ -664,6 +669,9 @@ static void setup_rt_frame (int sig, struct k_sigaction *ka, siginfo_t *info, | |||
664 | /* Set up registers for signal handler */ | 669 | /* Set up registers for signal handler */ |
665 | wrusp ((unsigned long) frame); | 670 | wrusp ((unsigned long) frame); |
666 | regs->pc = (unsigned long) ka->sa.sa_handler; | 671 | regs->pc = (unsigned long) ka->sa.sa_handler; |
672 | ((struct switch_stack *)regs - 1)->a5 = current->mm->start_data; | ||
673 | regs->format = 0x4; /*set format byte to make stack appear modulo 4 | ||
674 | which it will be when doing the rte */ | ||
667 | 675 | ||
668 | adjust_stack: | 676 | adjust_stack: |
669 | /* Prepare to skip over the extra stuff in the exception frame. */ | 677 | /* Prepare to skip over the extra stuff in the exception frame. */ |
diff --git a/arch/m68knommu/kernel/vmlinux.lds.S b/arch/m68knommu/kernel/vmlinux.lds.S index 0eab92ca4b97..ac9de2661c0b 100644 --- a/arch/m68knommu/kernel/vmlinux.lds.S +++ b/arch/m68knommu/kernel/vmlinux.lds.S | |||
@@ -129,7 +129,7 @@ | |||
129 | */ | 129 | */ |
130 | #if defined(CONFIG_M5208EVB) | 130 | #if defined(CONFIG_M5208EVB) |
131 | #define RAM_START 0x40020000 | 131 | #define RAM_START 0x40020000 |
132 | #define RAM_LENGTH 0x01e00000 | 132 | #define RAM_LENGTH 0x01fe0000 |
133 | #endif | 133 | #endif |
134 | 134 | ||
135 | /* | 135 | /* |