diff options
Diffstat (limited to 'arch/m68knommu/kernel')
-rw-r--r-- | arch/m68knommu/kernel/ptrace.c | 4 | ||||
-rw-r--r-- | arch/m68knommu/kernel/setup.c | 6 | ||||
-rw-r--r-- | arch/m68knommu/kernel/time.c | 14 | ||||
-rw-r--r-- | arch/m68knommu/kernel/traps.c | 2 | ||||
-rw-r--r-- | arch/m68knommu/kernel/vmlinux.lds.S | 12 |
5 files changed, 21 insertions, 17 deletions
diff --git a/arch/m68knommu/kernel/ptrace.c b/arch/m68knommu/kernel/ptrace.c index 9130119537b9..72d349623575 100644 --- a/arch/m68knommu/kernel/ptrace.c +++ b/arch/m68knommu/kernel/ptrace.c | |||
@@ -62,7 +62,7 @@ static inline long get_reg(struct task_struct *task, int regno) | |||
62 | 62 | ||
63 | if (regno == PT_USP) | 63 | if (regno == PT_USP) |
64 | addr = &task->thread.usp; | 64 | addr = &task->thread.usp; |
65 | else if (regno < sizeof(regoff)/sizeof(regoff[0])) | 65 | else if (regno < ARRAY_SIZE(regoff)) |
66 | addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); | 66 | addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); |
67 | else | 67 | else |
68 | return 0; | 68 | return 0; |
@@ -79,7 +79,7 @@ static inline int put_reg(struct task_struct *task, int regno, | |||
79 | 79 | ||
80 | if (regno == PT_USP) | 80 | if (regno == PT_USP) |
81 | addr = &task->thread.usp; | 81 | addr = &task->thread.usp; |
82 | else if (regno < sizeof(regoff)/sizeof(regoff[0])) | 82 | else if (regno < ARRAY_SIZE(regoff)) |
83 | addr = (unsigned long *) (task->thread.esp0 + regoff[regno]); | 83 | addr = (unsigned long *) (task->thread.esp0 + regoff[regno]); |
84 | else | 84 | else |
85 | return -1; | 85 | return -1; |
diff --git a/arch/m68knommu/kernel/setup.c b/arch/m68knommu/kernel/setup.c index 9cf2e4d1fc77..d5c25d27b64d 100644 --- a/arch/m68knommu/kernel/setup.c +++ b/arch/m68knommu/kernel/setup.c | |||
@@ -44,7 +44,7 @@ unsigned long memory_end; | |||
44 | EXPORT_SYMBOL(memory_start); | 44 | EXPORT_SYMBOL(memory_start); |
45 | EXPORT_SYMBOL(memory_end); | 45 | EXPORT_SYMBOL(memory_end); |
46 | 46 | ||
47 | char command_line[COMMAND_LINE_SIZE]; | 47 | char __initdata command_line[COMMAND_LINE_SIZE]; |
48 | 48 | ||
49 | /* setup some dummy routines */ | 49 | /* setup some dummy routines */ |
50 | static void dummy_waitbut(void) | 50 | static void dummy_waitbut(void) |
@@ -231,8 +231,8 @@ void setup_arch(char **cmdline_p) | |||
231 | 231 | ||
232 | /* Keep a copy of command line */ | 232 | /* Keep a copy of command line */ |
233 | *cmdline_p = &command_line[0]; | 233 | *cmdline_p = &command_line[0]; |
234 | memcpy(saved_command_line, command_line, COMMAND_LINE_SIZE); | 234 | memcpy(boot_command_line, command_line, COMMAND_LINE_SIZE); |
235 | saved_command_line[COMMAND_LINE_SIZE-1] = 0; | 235 | boot_command_line[COMMAND_LINE_SIZE-1] = 0; |
236 | 236 | ||
237 | #ifdef DEBUG | 237 | #ifdef DEBUG |
238 | if (strlen(*cmdline_p)) | 238 | if (strlen(*cmdline_p)) |
diff --git a/arch/m68knommu/kernel/time.c b/arch/m68knommu/kernel/time.c index 9226264abf1a..467053da2d08 100644 --- a/arch/m68knommu/kernel/time.c +++ b/arch/m68knommu/kernel/time.c | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | #include <asm/machdep.h> | 24 | #include <asm/machdep.h> |
25 | #include <asm/io.h> | 25 | #include <asm/io.h> |
26 | #include <asm/irq_regs.h> | ||
26 | 27 | ||
27 | #define TICK_SIZE (tick_nsec / 1000) | 28 | #define TICK_SIZE (tick_nsec / 1000) |
28 | 29 | ||
@@ -38,7 +39,7 @@ static inline int set_rtc_mmss(unsigned long nowtime) | |||
38 | * timer_interrupt() needs to keep up the real-time clock, | 39 | * timer_interrupt() needs to keep up the real-time clock, |
39 | * as well as call the "do_timer()" routine every clocktick | 40 | * as well as call the "do_timer()" routine every clocktick |
40 | */ | 41 | */ |
41 | static irqreturn_t timer_interrupt(int irq, void *dummy, struct pt_regs * regs) | 42 | static irqreturn_t timer_interrupt(int irq, void *dummy) |
42 | { | 43 | { |
43 | /* last time the cmos clock got updated */ | 44 | /* last time the cmos clock got updated */ |
44 | static long last_rtc_update=0; | 45 | static long last_rtc_update=0; |
@@ -51,7 +52,7 @@ static irqreturn_t timer_interrupt(int irq, void *dummy, struct pt_regs * regs) | |||
51 | 52 | ||
52 | do_timer(1); | 53 | do_timer(1); |
53 | #ifndef CONFIG_SMP | 54 | #ifndef CONFIG_SMP |
54 | update_process_times(user_mode(regs)); | 55 | update_process_times(user_mode(get_irq_regs())); |
55 | #endif | 56 | #endif |
56 | if (current->pid) | 57 | if (current->pid) |
57 | profile_tick(CPU_PROFILING); | 58 | profile_tick(CPU_PROFILING); |
@@ -173,13 +174,4 @@ int do_settimeofday(struct timespec *tv) | |||
173 | clock_was_set(); | 174 | clock_was_set(); |
174 | return 0; | 175 | return 0; |
175 | } | 176 | } |
176 | |||
177 | /* | ||
178 | * Scheduler clock - returns current time in nanosec units. | ||
179 | */ | ||
180 | unsigned long long sched_clock(void) | ||
181 | { | ||
182 | return (unsigned long long)jiffies * (1000000000 / HZ); | ||
183 | } | ||
184 | |||
185 | EXPORT_SYMBOL(do_settimeofday); | 177 | EXPORT_SYMBOL(do_settimeofday); |
diff --git a/arch/m68knommu/kernel/traps.c b/arch/m68knommu/kernel/traps.c index 9129b3a5258b..bed5f47bf568 100644 --- a/arch/m68knommu/kernel/traps.c +++ b/arch/m68knommu/kernel/traps.c | |||
@@ -158,7 +158,7 @@ void show_stack(struct task_struct *task, unsigned long *stack) | |||
158 | void bad_super_trap(struct frame *fp) | 158 | void bad_super_trap(struct frame *fp) |
159 | { | 159 | { |
160 | console_verbose(); | 160 | console_verbose(); |
161 | if (fp->ptregs.vector < 4*sizeof(vec_names)/sizeof(vec_names[0])) | 161 | if (fp->ptregs.vector < 4 * ARRAY_SIZE(vec_names)) |
162 | printk (KERN_WARNING "*** %s *** FORMAT=%X\n", | 162 | printk (KERN_WARNING "*** %s *** FORMAT=%X\n", |
163 | vec_names[(fp->ptregs.vector) >> 2], | 163 | vec_names[(fp->ptregs.vector) >> 2], |
164 | fp->ptregs.format); | 164 | fp->ptregs.format); |
diff --git a/arch/m68knommu/kernel/vmlinux.lds.S b/arch/m68knommu/kernel/vmlinux.lds.S index 2b2a10da64a4..c86a1bf589d4 100644 --- a/arch/m68knommu/kernel/vmlinux.lds.S +++ b/arch/m68knommu/kernel/vmlinux.lds.S | |||
@@ -87,6 +87,16 @@ SECTIONS { | |||
87 | *(__ksymtab_gpl) | 87 | *(__ksymtab_gpl) |
88 | __stop___ksymtab_gpl = .; | 88 | __stop___ksymtab_gpl = .; |
89 | 89 | ||
90 | /* Kernel symbol table: Normal unused symbols */ | ||
91 | __start___ksymtab_unused = .; | ||
92 | *(__ksymtab_unused) | ||
93 | __stop___ksymtab_unused = .; | ||
94 | |||
95 | /* Kernel symbol table: GPL-only unused symbols */ | ||
96 | __start___ksymtab_unused_gpl = .; | ||
97 | *(__ksymtab_unused_gpl) | ||
98 | __stop___ksymtab_unused_gpl = .; | ||
99 | |||
90 | /* Kernel symbol table: GPL-future symbols */ | 100 | /* Kernel symbol table: GPL-future symbols */ |
91 | __start___ksymtab_gpl_future = .; | 101 | __start___ksymtab_gpl_future = .; |
92 | *(__ksymtab_gpl_future) | 102 | *(__ksymtab_gpl_future) |
@@ -149,10 +159,12 @@ SECTIONS { | |||
149 | __security_initcall_start = .; | 159 | __security_initcall_start = .; |
150 | *(.security_initcall.init) | 160 | *(.security_initcall.init) |
151 | __security_initcall_end = .; | 161 | __security_initcall_end = .; |
162 | #ifdef CONFIG_BLK_DEV_INITRD | ||
152 | . = ALIGN(4); | 163 | . = ALIGN(4); |
153 | __initramfs_start = .; | 164 | __initramfs_start = .; |
154 | *(.init.ramfs) | 165 | *(.init.ramfs) |
155 | __initramfs_end = .; | 166 | __initramfs_end = .; |
167 | #endif | ||
156 | . = ALIGN(4096); | 168 | . = ALIGN(4096); |
157 | __init_end = .; | 169 | __init_end = .; |
158 | } > INIT | 170 | } > INIT |