Chameleon

Chameleon Commit Details

Date:2011-04-29 12:18:21 (8 years 3 months ago)
Author:Tamás Kosárszky
Commit:753
Parents: 752
Message:Added warning fixes for boot0.s and chain0.s (thanks to KillerJK and iFabio).
Changes:
M/trunk/i386/boot0/chain0.s
M/trunk/i386/boot0/boot0.s

File differences

trunk/i386/boot0/chain0.s
122122
123123
124124
125
125
126126
127127
128128
......
278278
279279
280280
281
281
282282
283283
284284
......
432432
433433
434434
435
435
436436
437437
438438
......
583583
584584
585585
586
586
587587
588588
589
589
590590
591591
592592
593593
594594
595595
596
596
597597
598598
599599
......
690690
691691
692692
693
693
694694
695695
696
696
697697
698698
699699
700
700
;--------------------------------------------------------------------------
; Boot code is loaded at 0:7C00h.
;
start
start:
;
; Set up the stack to grow down from kBoot0Segment:kBoot0Stack.
; Interrupts should be off while the stack is being manipulated.
jmp .continue
.found
.found:
DebugChar('*')
;
jnc .exit
loop .chs_loop
.exit
.exit:
DebugChar('R')
pop cx
ret
; Clobber list:
; AX, BX, SI
;
print_string
print_string:
mov bx, 1 ; BH=0, BL=1 (blue)
cld ; increment SI after each lodsb call
.loop
.loop:
lodsb ; load a byte from DS:SI into AL
cmp al, 0 ; Is it a NULL?
je .exit ; yes, all done
mov ah, 0xE ; INT10 Func 0xE
int 0x10 ; display byte in tty mode
jmp short .loop
.exit
.exit:
ret
ebios_lba dd 0 ; starting LBA of the intial extended partition.
ebios_present db 0 ; 1 if EBIOS is supported, 0 otherwise.
pad_boot
pad_boot:
times 446-($-$$) db 0
pad_table_and_sig
pad_table_and_sig:
times 510-($-$$) db 0
dw kBootSignature
END
;END
trunk/i386/boot0/boot0.s
371371
372372
373373
374
374
375375
376376
377377
jnz .switchPass2; didn't find Protective MBR before
call checkGPT
.switchPass2
.switchPass2:
;
; Switching to Pass 2
; try to find a boot1h aware HFS+ MBR partition

Archive Download the corresponding diff file

Revision: 753