[rtems commit] i386/score: fix assembly mnemonic

Gedare Bloom gedare at rtems.org
Fri Oct 2 16:40:15 UTC 2020


Module:    rtems
Branch:    5
Commit:    40f23ceae6026433154dda9591f101ffa8a1e747
Changeset: http://git.rtems.org/rtems/commit/?id=40f23ceae6026433154dda9591f101ffa8a1e747

Author:    Gedare Bloom <gedare at rtems.org>
Date:      Fri Oct  2 10:38:49 2020 -0600

i386/score: fix assembly mnemonic

This is a backport for assembler error observed in 6. Although the
assembler error does not appear in 5, the backport was requested.

Closes #4083.

---

 cpukit/score/cpu/i386/include/rtems/asm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/i386/include/rtems/asm.h b/cpukit/score/cpu/i386/include/rtems/asm.h
index 5856f72..904dc53 100644
--- a/cpukit/score/cpu/i386/include/rtems/asm.h
+++ b/cpukit/score/cpu/i386/include/rtems/asm.h
@@ -154,7 +154,7 @@
     movl     imps_lapic_addr,\REG
     movl     LAPIC_ID(\REG),\REG
     shrl     $LAPIC_ID_SHIFT,\REG                /* LAPIC_ID in REG */
-    movb     imps_apic_cpu_map(\REG),\REG        /* CPU ID in REG */
+    movzbl   imps_apic_cpu_map(\REG),\REG        /* CPU ID in REG */
 .endm
 
 .macro GET_SELF_CPU_CONTROL REG



More information about the vc mailing list