]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - arch/x86/cpu/start.S
x86: Fix car_uninit weak symbol definition
[thirdparty/u-boot.git] / arch / x86 / cpu / start.S
index e1f634ffcd530c58bde0b534101d0ae82253de5a..30fa7def464337d57f425d88ed60a86c6457c89c 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/processor-flags.h>
 #include <generated/generic-asm-offsets.h>
 #include <generated/asm-offsets.h>
+#include <linux/linkage.h>
 
 .section .text.start
 .code32
@@ -184,13 +185,8 @@ board_init_f_r_trampoline:
        movl    %eax, %esp
 
        /* See if we need to disable CAR */
-.weak  car_uninit
-       movl    $car_uninit, %eax
-       cmpl    $0, %eax
-       jz      1f
-
        call    car_uninit
-1:
+
        /* Re-enter U-Boot by calling board_init_f_r() */
        call    board_init_f_r
 
@@ -199,6 +195,10 @@ die:
        jmp     die
        hlt
 
+WEAK(car_uninit)
+       ret
+ENDPROC(car_uninit)
+
 blank_idt_ptr:
        .word   0               /* limit */
        .long   0               /* base */