summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/atpic_vector.s
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-05-10 01:24:23 +0000
committerobrien <obrien@FreeBSD.org>2000-05-10 01:24:23 +0000
commit3407cffd5743913e8139db168932d47d674ba338 (patch)
tree0db668362109b11150d567dc43bb984661835595 /sys/i386/isa/atpic_vector.s
parent5840ec82fcfbe54eec6513ea52cc0c6b30620f5c (diff)
downloadFreeBSD-src-3407cffd5743913e8139db168932d47d674ba338.zip
FreeBSD-src-3407cffd5743913e8139db168932d47d674ba338.tar.gz
1. `movl' is for use with 32-bit operands. Do NOT use it with 16-bit
operands. `movw' could be used, but instead let the assembler decide the right instruction to use. 2. AT&T asm syntax requires a leading '*' in front of the operand for indirect calls and jumps.
Diffstat (limited to 'sys/i386/isa/atpic_vector.s')
-rw-r--r--sys/i386/isa/atpic_vector.s18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/i386/isa/atpic_vector.s b/sys/i386/isa/atpic_vector.s
index 24ce97b..21ea2a8 100644
--- a/sys/i386/isa/atpic_vector.s
+++ b/sys/i386/isa/atpic_vector.s
@@ -54,8 +54,8 @@ IDTVEC(vec_name) ; \
pushl %edx ; \
pushl %ds ; \
MAYBE_PUSHL_ES ; \
- movl $KDSEL,%eax ; \
- movl %ax,%ds ; \
+ mov $KDSEL,%ax ; \
+ mov %ax,%ds ; \
MAYBE_MOVW_AX_ES ; \
FAKE_MCOUNT((4+ACTUALLY_PUSHED)*4(%esp)) ; \
pushl _intr_unit + (irq_num) * 4 ; \
@@ -95,9 +95,9 @@ IDTVEC(vec_name) ; \
pushl %ecx ; /* ... actually %ds ... */ \
pushl %es ; \
pushl %fs ; \
- movl $KDSEL,%eax ; \
- movl %ax,%es ; \
- movl %ax,%fs ; \
+ mov $KDSEL,%ax ; \
+ mov %ax,%es ; \
+ mov %ax,%fs ; \
movl (3+8+0)*4(%esp),%ecx ; /* ... %ecx from thin frame ... */ \
movl %ecx,(3+6)*4(%esp) ; /* ... to fat frame ... */ \
movl (3+8+1)*4(%esp),%eax ; /* ... cpl from thin frame */ \
@@ -116,10 +116,10 @@ IDTVEC(vec_name) ; \
pushl %ds ; /* save our data and extra segments ... */ \
pushl %es ; \
pushl %fs ; \
- movl $KDSEL,%eax ; /* ... and reload with kernel's own ... */ \
- movl %ax,%ds ; /* ... early for obsolete reasons */ \
- movl %ax,%es ; \
- movl %ax,%fs ; \
+ mov $KDSEL,%ax ; /* ... and reload with kernel's own ... */ \
+ mov %ax,%ds ; /* ... early for obsolete reasons */ \
+ mov %ax,%es ; \
+ mov %ax,%fs ; \
maybe_extra_ipending ; \
movb _imen + IRQ_BYTE(irq_num),%al ; \
orb $IRQ_BIT(irq_num),%al ; \
OpenPOWER on IntegriCloud