Changeset 4c89b09 in mainline


Ignore:
Timestamp:
2006-05-05T14:20:01Z (19 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e8194664
Parents:
203dcd45
Message:

VESA detection failure fix on amd64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/src/boot/boot.S

    r203dcd45 r4c89b09  
    422422        ljmpl $gdtselector(KTEXT32_DES),$(vesa_init_protect-vesa_init+VESA_INIT_SEGMENT<<4);
    423423
     424
     4250:#Error no Prefered mode found
     426  mov $0x111,%cx;
     427  push %di;
     428  push %cx;
     429  mov $VESA_GET_MODE_INFO,%ax;
     430  int $0x10;
     431  pop %cx;
     432  pop %di;
     433  cmp $VESA_OK,%al;
     434  jnz 1f;
     435  jz 2b;    /* Force relative jump */
     436
     437                                                                                                                                                                                                                                                                       
     4381:mov $0x0003,%ax;
     439  int $0x10;
     440  mov $0xffffffff,%edi; /* EGA text mode used, because of problems with VESA */
     441  xor %ax,%ax
     442  jz 8b;    /* Force relative jump */
     443                                                                                                                                                                                                                                                                                                                                                                                                                                                               
     444
    424445vesa_init_protect:     
    425446.code32
    426447        ret;
    427 
    428 0:      #Error no Prefered mode found
    429 
    430         mov $0x111,%cx;
    431         push %di;
    432         push %cx;
    433         mov $VESA_GET_MODE_INFO,%ax;
    434         int $0x10;
    435         pop %cx;
    436         pop %di;
    437         cmp $VESA_OK,%al;
    438         jnz 1f;
    439         jmp 2b;
    440 
    441 1:mov $0x0003,%ax;
    442         int $0x10;
    443         mov $0xffffffff,%edi; /* EGA text mode used, because of problems with VESA */
    444         jmp 8;
    445448
    446449
Note: See TracChangeset for help on using the changeset viewer.