Rev 3760 | Rev 3774 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3760 | Rev 3762 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | ;; KolibriOS 16-bit loader, ;; |
9 | ;; KolibriOS 16-bit loader, ;; |
10 | ;; based on bootcode for MenuetOS ;; |
10 | ;; based on bootcode for MenuetOS ;; |
11 | ;; ;; |
11 | ;; ;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 13... | Line 13... | ||
13 | 13 | ||
Line 14... | Line 14... | ||
14 | $Revision: 3760 $ |
14 | $Revision: 3762 $ |
15 | 15 | ||
16 | 16 | ||
Line 446... | Line 446... | ||
446 | and cx, 0xFFF0 ; clear address decode type |
446 | and cx, 0xFFF0 ; clear address decode type |
447 | mov [es:BOOT_IDE_BASE_ADDR], cx |
447 | mov [es:BOOT_IDE_BASE_ADDR], cx |
448 | .no_BAR4: |
448 | .no_BAR4: |
449 | pop cx |
449 | pop cx |
450 | .found: |
450 | .found: |
- | 451 | ; get Interrupt Line |
|
- | 452 | mov ax, 0xB10A |
|
- | 453 | mov di, 0x3c ; memory base is config register at 0x3c |
|
- | 454 | push cx |
|
- | 455 | int 0x1A |
|
- | 456 | jc .no_Interrupt ;.nopci |
|
- | 457 | ; and cx, 0xFFF0 ; clear address decode type |
|
- | 458 | mov [es:BOOT_IDE_INTERR_16], cx |
|
- | 459 | .no_Interrupt: |
|
- | 460 | pop cx |
|
451 | ; get memory base BAR0 |
461 | ; get memory base BAR0 |
452 | mov ax, 0xB10A |
462 | mov ax, 0xB10A |
453 | mov di, 0x10 ; memory base is config register at 0x10 |
463 | mov di, 0x10 ; memory base is config register at 0x10 |
454 | push cx |
464 | push cx |
455 | int 0x1A |
465 | int 0x1A |