Changeset eb17041 in rtems


Ignore:
Timestamp:
12/03/99 14:01:11 (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ae252c9
Parents:
ad9a21a
Message:

Removed warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/i386/cpuModel.S

    rad9a21a reb17041  
    143143is486x: xor ax,ax
    144144        sahf
    145         movb $5,ax
    146         movb $2,bx
     145        movb $5,al
     146        movb $2,bl
    147147        div bl
    148148        lahf
     
    155155         */
    156156#define setCx86(reg, val) \
    157         movb reg,ax;    \
    158         outb ax,$0x22;  \
    159         movb val,ax;    \
    160         outb ax,$0x23
     157        movb reg,al;    \
     158        outb al,$0x22;  \
     159        movb val,al;    \
     160        outb al,$0x23
    161161
    162162#define getCx86(reg) \
    163         movb reg,ax;    \
    164         outb ax,$0x22;  \
    165         inb $0x23,ax
     163        movb reg,al;    \
     164        outb al,$0x22;  \
     165        inb $0x23,al
    166166
    167167        cli
    168168        getCx86($0xc3)          /*  get CCR3 */
    169         movb ax,cx              /* Save old value */
    170         movb ax,bx
    171         andb $0x0f,bx           /* Enable access to all config registers */
    172         orb $0x10,bx            /* by setting bit 4 */
    173         setCx86($0xc3,bx)
     169        movb al,cl              /* Save old value */
     170        movb al,bl
     171        andb $0x0f,bl           /* Enable access to all config registers */
     172        orb $0x10,bl            /* by setting bit 4 */
     173        setCx86($0xc3,bl)
    174174
    175175        getCx86($0xe8)          /* now we can get CCR4 */
    176         orb $0x80,ax            /* and set bit 7 (CPUIDEN) */
    177         movb ax,bx              /* to enable CPUID execution */
    178         setCx86($0xe8,bx)
     176        orb $0x80,al            /* and set bit 7 (CPUIDEN) */
     177        movb al,bl              /* to enable CPUID execution */
     178        setCx86($0xe8,bl)
    179179
    180180        getCx86($0xfe)          /* DIR0 : let's check this is a 6x86(L) */
    181         andb $0xf0,ax           /* should be 3xh */
    182         cmpb $0x30,ax           
     181        andb $0xf0,al           /* should be 3xh */
     182        cmpb $0x30,al           
    183183        jne n6x86
    184184        getCx86($0xe9)          /* CCR5 : we reset the SLOP bit */
    185         andb $0xfd,ax           /* so that udelay calculation */
    186         movb ax,bx              /* is correct on 6x86(L) CPUs */
    187         setCx86($0xe9,bx)
    188         setCx86($0xc3,cx)       /* Restore old CCR3 */
     185        andb $0xfd,al           /* so that udelay calculation */
     186        movb al,bl              /* is correct on 6x86(L) CPUs */
     187        setCx86($0xe9,bl)
     188        setCx86($0xc3,cl)       /* Restore old CCR3 */
    189189        sti
    190190        jmp isnew               /* We enabled CPUID now */
    191191
    192 n6x86:  setCx86($0xc3,cx)       /* Restore old CCR3 */
     192n6x86:  setCx86($0xc3,cl)       /* Restore old CCR3 */
    193193        sti
    194194ncyrix:                         /* restore original EFLAGS */
Note: See TracChangeset for help on using the changeset viewer.