gcc-4.1.2 inlines weak functions, which causes FRV to fail when the dummy thread_info_cache_init() gets inlined into start_kernel().
Unified · Split
| @@ -442,9 +442,11 @@ void __init __weak smp_setup_processor_id(void) · 441 unmodified lines | |||
| 442 | { | 442 | { |
| 443 | } | 443 | } |
| 444 | 444 | ||
| 445 | # if THREAD_SIZE >= PAGE_SIZE | ||
| 445 | void __init __weak thread_info_cache_init(void) | 446 | void __init __weak thread_info_cache_init(void) |
| 446 | { | 447 | { |
| 447 | } | 448 | } |
| 449 | #endif | ||
| 448 | 450 | ||
| 449 | /* | 451 | /* |
| 450 | * Set up kernel memory allocators | 452 | * Set up kernel memory allocators |