Changeset d13b247 in rtems


Ignore:
Timestamp:
Jun 25, 1998, 6:42:30 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
98100d2
Parents:
7252f656
Message:

Clean up from Aleksey Romanov (Quality Quorum <qqi@…>).
Here are his comments:

I removed all unnecessary stuff from start16.s - setting idt and
setting 16-bit stack using .code32 istructions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/start/start16.s

    r7252f656 rd13b247  
    3434.set STACKOFF,      0x200-0x10  # offset to load into %esp, from start of image
    3535
    36 /*----------------------------------------------------------------------------+
    37 | A Descriptor table register has the following format:
    38 +----------------------------------------------------------------------------*/
    39 
    40 .set DTR_LIMIT, 0               # offset of two byte limit
    41 .set DTR_BASE,  2               # offset of four byte base address
    42 .set DTR_SIZE,  6               # size of DTR register
    4336
    4437/*----------------------------------------------------------------------------+
     
    6154        movw    %ax, %es        #
    6255        movw    %ax, %ss        #
    63 
    64 .code32
    65 
    66         movl    $STACKOFF, %esp # set stack pointer
    67         movl    $STACKOFF, %ebp #
    68 
    69 .code16
    7056
    7157#if defined(RTEMS_VIDEO_80x50)
     
    9581
    9682        lgdt    gdtptr - start16        # load Global Descriptor Table
    97         lidt    idtptr - start16        # load Interrupt Descriptor Table
    9883       
    9984        movl    %cr0, %eax
     
    11398        movl    %ax, %es
    11499        movl    %ax, %ss
    115         addl    $start16, %esp          # fix up stack pointer
    116         addl    $start16, %ebp          # fix up stack pointer
     100        movl    $start16 + STACKOFF, %esp       # set up stack pointer
     101        addl    $start16 + STACKOFF, %ebp       # set up stack pointer
    117102
    118103        /*---------------------------------------------------------------------+
     
    175160**************************/
    176161
    177         .align  4
     162        .p2align 4
    178163gdtptr:
    179164        /* we use the NULL descriptor to store the GDT pointer - a trick quite
     
    193178        .set    gdtlen, . - gdtptr      # length of GDT
    194179       
    195 /*************************************
    196 * INTERRUPT DESCRIPTOR TABLE POINTER *
    197 *************************************/
    198 
    199         .align  4
    200 idtptr:
    201         .word   0x07ff  # limit at maximum (allows all 256 interrupts)
    202         .word   0, 0    # base at 0
Note: See TracChangeset for help on using the changeset viewer.