Лекция №8 Организация ЭВМ и систем

  • Published on
    11-Jul-2015

  • View
    167

  • Download
    1

Embed Size (px)

Transcript

  • :

  • PC AT , , . , . IA-32 :

  • PC AT PC AT DOS BIOS DSRISR

  • , , . INTR# NMI#. INTR# (, 8259A) () . NMI# #2., INTR#, . IF () ., NMI#, . IF.

  • INTn (n ) 0...255. . IF . DOS- (, INT$21 DOS). DOS. BIOS- ( ) (, : INT$33 : INT$10 - BIOS, INT$31 DPMI-, INT$67 EMS).

  • - . : , (INTO , INT3 , BOUND ); (#18), (Pentium, P6 Pentium4); ( , , . .)

  • , . () , , . , . . , . CS EIP, , . , JMP, CS EIP, JMP.

  • , , . "" , . , , . , . . ( ) 0 255. 0...31 Intel .

  • () , , . BDRWCUCMPD7-0RD WRA0CSCAS0CAS1CAS2SPCUINTRINTA#ISRPRBRGIRGMIRQ0IRQ1IRQ2IRQ3IRQ4IRQ5IRQ6IRQ7

  • RGI - ; , IRQx;PRB - ; ;ISR - ; , ;RGM - ; ;BD - ; ;RWCU - /; ;

  • CMP - -; ; CU - ; CALL .

  • (PC AT) MASTER012345 SP/EN67 CAS2-CAS00 CAS2/0123 SLAVE45 SP/EN67IRQ0IRQ1IRQ3IRQ4IRQ5IRQ6IRQ7IRQ13IRQ8IRQ9IRQ10IRQ11IRQ12IRQ14IRQ15 +5 INTR INTR INTR

  • PC AT

  • PC AT

  • ( IRQ ) . ISR , .

    ( ). , . , .

  • . . , .

    ( , , ).

  • (APIC) IA-32, Pentium, (APIC). APIC . APIC , APIC (IPI InterProcessor Interrupt). ( , ..).

  • APIC : . , , , LINT0 LINT1 (, 8259A). . , , , . APIC ( Pentium4). (IPI). IPI APIC ( Pentium4).

  • APIC. APIC , . . P6 Pentium4 . , . . Pentium4 , . APIC. APIC (, APIC).

  • 1, 4, 5, 6, 7 APIC, (LVT local vector table). APIC . Pentium P6 APIC. Pentium4 APIC- , (, PCI). APIC Intel 82489DX. APIC 4 FEE00000h ( MSR ).

  • APIC

  • (DMA) PC AT DMA, DMA Intel 8237, DMA DMA. 7 DMA. DMA DMA, , ( ).

  • - DMA- -

    - --EOPRESET-CSREADYCLKAENAOSTB-MEMR-MEMW-IOR-IOWDREQ0DREQ1DREQ2DREQ3HLDAHRQDACK0DACK1DACK2DACK3

    . (16)

    ./ .

    . (16)/

    (416) (416) /

    (416) (416)

    -

    /

    (46) (8) (8) (8) (8) (4)0 78 154 70 3D0 D1DB0 DB7

  • DMA PC ATDMA1DRQ0 DACK0DRQ1 DACK1DRQ2 DACK2DRQ3 DACK3

    HLDA HRQ

    DMA2DRQ0 DACK0DRQ1 DACK1DRQ2 DACK2DRQ3 DACK3

    HLDA HRQ8 DMA 16- DMA

  • DMA* - 8 , * * - 16

  • DMA DMA :

    (Single Transfer Mode) (Block Transfer Mode) (Demand Transfer Mode) (Cascade Mode)

  • DMA 24- , 16 .24- DMA1 (8 )

    23< ----- > A16DMA1 (16)

    15< ----- >A8 A7< ----- >A0 24- DMA2

    23< ----- > A17DMA2 (16 )

    A16< ----- >A9 A8< ----->A1 0

    0

  • DMA : . . DMA . SI ;S0 DMA, (DREQ);S1,S2,S3,S4 ;SW .

Recommended

View more >