]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: Remove progress indication in low-level init
authorGraeme Russ <graeme.russ@gmail.com>
Thu, 7 Oct 2010 09:03:24 +0000 (20:03 +1100)
committerGraeme Russ <graeme.russ@gmail.com>
Thu, 7 Oct 2010 09:03:24 +0000 (20:03 +1100)
Progress indication is not relocation friendly so remove it in
preperation for full relocatability support

arch/i386/cpu/start.S
board/eNET/eNET_start.S

index 90dfd5d210be2694726c9f914e287b21e7e67d58..cb47ce7faa61807111638a54840cd4b464ebd5ee 100644 (file)
@@ -83,13 +83,6 @@ _start:
        jmp     early_board_init
 early_board_init_ret:
 
-       /* The __port80 entry-point should be usabe by now */
-       /* so we try to indicate progress */
-       movw    $0x01, %ax
-       movl    $.progress0, %ebp
-       jmp     show_boot_progress_asm
-.progress0:
-
        /* size memory */
        mov     $mem_init_ret, %ebp
        jmp     mem_init
@@ -103,24 +96,11 @@ get_mem_size_ret:
        /* Check we have enough memory for stack */
        movl    $CONFIG_SYS_STACK_SIZE, %ecx
        cmpl    %ecx, %eax
-       jae     mem_ok
-
-       /* indicate (lack of) progress */
-       movw    $0x81, %ax
-       movl    $.progress0a, %ebp
-       jmp     show_boot_progress_asm
-.progress0a:
-       jmp     die
+       jb      die
 mem_ok:
        /* Set stack pointer to upper memory limit*/
        movl    %eax, %esp
 
-       /* indicate progress */
-       movw    $0x02, %ax
-       movl    $.progress1, %ebp
-       jmp     show_boot_progress_asm
-.progress1:
-
        /* Test the stack */
        pushl   $0
        popl    %eax
@@ -129,23 +109,7 @@ mem_ok:
        push    $0x55aa55aa
        popl    %ebx
        cmpl    $0x55aa55aa, %ebx
-       je      stack_ok
-
-no_stack:
-       /* indicate (lack of) progress */
-       movw    $0x82, %ax
-       movl    $.progress1a, %ebp
-       jmp     show_boot_progress_asm
-.progress1a:
-       jmp die
-
-
-stack_ok:
-       /* indicate progress */
-       movw    $0x03, %ax
-       movl    $.progress2, %ebp
-       jmp     show_boot_progress_asm
-.progress2:
+       jne     die
 
        wbinvd
 
@@ -157,10 +121,6 @@ stack_ok:
 
        /* indicate (lack of) progress */
        movw    $0x85, %ax
-       movl    $.progress4a, %ebp
-       jmp     show_boot_progress_asm
-.progress4a:
-
 die:   hlt
        jmp     die
        hlt
index 1b07d622f7f7cfe10540a07026480e863598daef..6659549a37cfe3f214eecdd4364aac1213c2b4e6 100644 (file)
@@ -29,18 +29,6 @@ early_board_init:
        /* No 32-bit board specific initialisation */
        jmp     *%ebp           /* return to caller */
 
-.globl show_boot_progress_asm
-show_boot_progress_asm:
-
-       movb    %al, %dl        /* Create Working Copy */
-       andb    $0x80, %dl      /* Mask in only Error bit */
-       shrb    $0x02, %dl      /* Shift Error bit to Error LED */
-       andb    $0x0f, %al      /* Mask out 'Error' bit */
-       orb     %dl, %al        /* Mask in ERR LED */
-       movw    $LED_LATCH_ADDRESS, %dx
-       outb    %al, %dx
-       jmp     *%ebp           /* return to caller */
-
 .globl cpu_halt_asm
 cpu_halt_asm:
        movb    $0x0f, %al