diff options
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/armksyms.c | 3 | ||||
-rw-r--r-- | arch/arm/kernel/head.S | 20 | ||||
-rw-r--r-- | arch/arm/kernel/setup.c | 4 | ||||
-rw-r--r-- | arch/arm/kernel/traps.c | 12 |
4 files changed, 15 insertions, 24 deletions
diff --git a/arch/arm/kernel/armksyms.c b/arch/arm/kernel/armksyms.c index b713c44c6fb4..835d450797a1 100644 --- a/arch/arm/kernel/armksyms.c +++ b/arch/arm/kernel/armksyms.c | |||
@@ -41,7 +41,10 @@ extern void fp_enter(void); | |||
41 | * This has a special calling convention; it doesn't | 41 | * This has a special calling convention; it doesn't |
42 | * modify any of the usual registers, except for LR. | 42 | * modify any of the usual registers, except for LR. |
43 | */ | 43 | */ |
44 | #define EXPORT_CRC_ALIAS(sym) __CRC_SYMBOL(sym, "") | ||
45 | |||
44 | #define EXPORT_SYMBOL_ALIAS(sym,orig) \ | 46 | #define EXPORT_SYMBOL_ALIAS(sym,orig) \ |
47 | EXPORT_CRC_ALIAS(sym) \ | ||
45 | const struct kernel_symbol __ksymtab_##sym \ | 48 | const struct kernel_symbol __ksymtab_##sym \ |
46 | __attribute__((section("__ksymtab"))) = \ | 49 | __attribute__((section("__ksymtab"))) = \ |
47 | { (unsigned long)&orig, #sym }; | 50 | { (unsigned long)&orig, #sym }; |
diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S index bd4823c74645..1155cf07c871 100644 --- a/arch/arm/kernel/head.S +++ b/arch/arm/kernel/head.S | |||
@@ -344,9 +344,9 @@ __create_page_tables: | |||
344 | str r6, [r0] | 344 | str r6, [r0] |
345 | #endif | 345 | #endif |
346 | 346 | ||
347 | #ifdef CONFIG_DEBUG_LL | ||
347 | bic r7, r7, #0x0c @ turn off cacheable | 348 | bic r7, r7, #0x0c @ turn off cacheable |
348 | @ and bufferable bits | 349 | @ and bufferable bits |
349 | #ifdef CONFIG_DEBUG_LL | ||
350 | /* | 350 | /* |
351 | * Map in IO space for serial debugging. | 351 | * Map in IO space for serial debugging. |
352 | * This allows debug messages to be output | 352 | * This allows debug messages to be output |
@@ -372,28 +372,24 @@ __create_page_tables: | |||
372 | teq r1, #MACH_TYPE_NETWINDER | 372 | teq r1, #MACH_TYPE_NETWINDER |
373 | teqne r1, #MACH_TYPE_CATS | 373 | teqne r1, #MACH_TYPE_CATS |
374 | bne 1f | 374 | bne 1f |
375 | add r0, r4, #0x3fc0 @ ff000000 | 375 | add r0, r4, #0xff000000 >> 18 |
376 | mov r3, #0x7c000000 | 376 | orr r3, r7, #0x7c000000 |
377 | orr r3, r3, r7 | 377 | str r3, [r0] |
378 | str r3, [r0], #4 | ||
379 | add r3, r3, #1 << 20 | ||
380 | str r3, [r0], #4 | ||
381 | 1: | 378 | 1: |
382 | #endif | 379 | #endif |
383 | #endif | ||
384 | #ifdef CONFIG_ARCH_RPC | 380 | #ifdef CONFIG_ARCH_RPC |
385 | /* | 381 | /* |
386 | * Map in screen at 0x02000000 & SCREEN2_BASE | 382 | * Map in screen at 0x02000000 & SCREEN2_BASE |
387 | * Similar reasons here - for debug. This is | 383 | * Similar reasons here - for debug. This is |
388 | * only for Acorn RiscPC architectures. | 384 | * only for Acorn RiscPC architectures. |
389 | */ | 385 | */ |
390 | add r0, r4, #0x80 @ 02000000 | 386 | add r0, r4, #0x02000000 >> 18 |
391 | mov r3, #0x02000000 | 387 | orr r3, r7, #0x02000000 |
392 | orr r3, r3, r7 | ||
393 | str r3, [r0] | 388 | str r3, [r0] |
394 | add r0, r4, #0x3600 @ d8000000 | 389 | add r0, r4, #0xd8000000 >> 18 |
395 | str r3, [r0] | 390 | str r3, [r0] |
396 | #endif | 391 | #endif |
392 | #endif | ||
397 | mov pc, lr | 393 | mov pc, lr |
398 | .ltorg | 394 | .ltorg |
399 | 395 | ||
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 35b7273cfdb4..c9b69771f92e 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
@@ -737,8 +737,8 @@ void __init setup_arch(char **cmdline_p) | |||
737 | if (mdesc->soft_reboot) | 737 | if (mdesc->soft_reboot) |
738 | reboot_setup("s"); | 738 | reboot_setup("s"); |
739 | 739 | ||
740 | if (mdesc->param_offset) | 740 | if (mdesc->boot_params) |
741 | tags = phys_to_virt(mdesc->param_offset); | 741 | tags = phys_to_virt(mdesc->boot_params); |
742 | 742 | ||
743 | /* | 743 | /* |
744 | * If we have the old style parameters, convert them to | 744 | * If we have the old style parameters, convert them to |
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c index 2fb0a4cfb37a..df2cb06ce424 100644 --- a/arch/arm/kernel/traps.c +++ b/arch/arm/kernel/traps.c | |||
@@ -230,16 +230,8 @@ NORET_TYPE void die(const char *str, struct pt_regs *regs, int err) | |||
230 | do_exit(SIGSEGV); | 230 | do_exit(SIGSEGV); |
231 | } | 231 | } |
232 | 232 | ||
233 | void die_if_kernel(const char *str, struct pt_regs *regs, int err) | 233 | void notify_die(const char *str, struct pt_regs *regs, struct siginfo *info, |
234 | { | 234 | unsigned long err, unsigned long trap) |
235 | if (user_mode(regs)) | ||
236 | return; | ||
237 | |||
238 | die(str, regs, err); | ||
239 | } | ||
240 | |||
241 | static void notify_die(const char *str, struct pt_regs *regs, siginfo_t *info, | ||
242 | unsigned long err, unsigned long trap) | ||
243 | { | 235 | { |
244 | if (user_mode(regs)) { | 236 | if (user_mode(regs)) { |
245 | current->thread.error_code = err; | 237 | current->thread.error_code = err; |