Changeset d6dcdd2e in mainline for arch/amd64/src/asm_utils.S
- Timestamp:
- 2005-09-13T21:20:56Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 01e48c1
- Parents:
- b1cf98c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/asm_utils.S
rb1cf98c rd6dcdd2e 76 76 # 77 77 has_cpuid: 78 pushq %rbx79 80 78 pushfq # store flags 81 79 popq %rax # read flags 82 movq %rax,%r bx # copy flags83 btcl $21,%e bx # swap the ID bit84 pushq %r bx80 movq %rax,%rdx # copy flags 81 btcl $21,%edx # swap the ID bit 82 pushq %rdx 85 83 popfq # propagate the change into flags 86 84 pushfq 87 popq %r bx # read flags85 popq %rdx # read flags 88 86 andl $(1<<21),%eax # interested only in ID bit 89 andl $(1<<21),%ebx 90 xorl %ebx,%eax # 0 if not supported, 1 if supported 91 92 popq %rbx 87 andl $(1<<21),%edx 88 xorl %edx,%eax # 0 if not supported, 1 if supported 93 89 ret 94 90
Note:
See TracChangeset
for help on using the changeset viewer.