summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-12-03 14:01:11 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-12-03 14:01:11 +0000
commiteb17041fbbf2b65d4c90c7aaf4955b42432053c8 (patch)
tree1131cd22433de8d7c54de71b850b817d2019512e /c/src/lib/libcpu
parentNew file. (diff)
downloadrtems-eb17041fbbf2b65d4c90c7aaf4955b42432053c8.tar.bz2
Removed warnings.
Diffstat (limited to 'c/src/lib/libcpu')
-rw-r--r--c/src/lib/libcpu/i386/cpuModel.S48
1 files changed, 24 insertions, 24 deletions
diff --git a/c/src/lib/libcpu/i386/cpuModel.S b/c/src/lib/libcpu/i386/cpuModel.S
index c11802a192..6137d1a770 100644
--- a/c/src/lib/libcpu/i386/cpuModel.S
+++ b/c/src/lib/libcpu/i386/cpuModel.S
@@ -142,8 +142,8 @@ isnew:
*/
is486x: xor ax,ax
sahf
- movb $5,ax
- movb $2,bx
+ movb $5,al
+ movb $2,bl
div bl
lahf
cmpb $2,ah
@@ -154,42 +154,42 @@ is486x: xor ax,ax
* do all this with interrupts off.
*/
#define setCx86(reg, val) \
- movb reg,ax; \
- outb ax,$0x22; \
- movb val,ax; \
- outb ax,$0x23
+ movb reg,al; \
+ outb al,$0x22; \
+ movb val,al; \
+ outb al,$0x23
#define getCx86(reg) \
- movb reg,ax; \
- outb ax,$0x22; \
- inb $0x23,ax
+ movb reg,al; \
+ outb al,$0x22; \
+ inb $0x23,al
cli
getCx86($0xc3) /* get CCR3 */
- movb ax,cx /* Save old value */
- movb ax,bx
- andb $0x0f,bx /* Enable access to all config registers */
- orb $0x10,bx /* by setting bit 4 */
- setCx86($0xc3,bx)
+ movb al,cl /* Save old value */
+ movb al,bl
+ andb $0x0f,bl /* Enable access to all config registers */
+ orb $0x10,bl /* by setting bit 4 */
+ setCx86($0xc3,bl)
getCx86($0xe8) /* now we can get CCR4 */
- orb $0x80,ax /* and set bit 7 (CPUIDEN) */
- movb ax,bx /* to enable CPUID execution */
- setCx86($0xe8,bx)
+ orb $0x80,al /* and set bit 7 (CPUIDEN) */
+ movb al,bl /* to enable CPUID execution */
+ setCx86($0xe8,bl)
getCx86($0xfe) /* DIR0 : let's check this is a 6x86(L) */
- andb $0xf0,ax /* should be 3xh */
- cmpb $0x30,ax
+ andb $0xf0,al /* should be 3xh */
+ cmpb $0x30,al
jne n6x86
getCx86($0xe9) /* CCR5 : we reset the SLOP bit */
- andb $0xfd,ax /* so that udelay calculation */
- movb ax,bx /* is correct on 6x86(L) CPUs */
- setCx86($0xe9,bx)
- setCx86($0xc3,cx) /* Restore old CCR3 */
+ andb $0xfd,al /* so that udelay calculation */
+ movb al,bl /* is correct on 6x86(L) CPUs */
+ setCx86($0xe9,bl)
+ setCx86($0xc3,cl) /* Restore old CCR3 */
sti
jmp isnew /* We enabled CPUID now */
-n6x86: setCx86($0xc3,cx) /* Restore old CCR3 */
+n6x86: setCx86($0xc3,cl) /* Restore old CCR3 */
sti
ncyrix: /* restore original EFLAGS */
popfl