search for: idtword

Displaying 2 results from an estimated 2 matches for "idtword".

2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
...it is not the macro we want */ + #cmpq $__PAGE_OFFSET, %rcx; + jb do_hypercall + movq %gs:pda_vcpu, %rcx; + movq LGUEST_VCPU_guest_syscall(%rcx), %rcx; +#endif + +/** + * DECODE_IDT parse a IDT descriptor to find the target. + * @IDT - The register that holds the IDT descriptor location + * @IDTWORD - The word version of the IDT register + * (ie. IDT is %rax, then IDTWORD must be %ax) + * @RESULT - The regsiter to place the result. + * + * This clobbers both IDT and RESULT regs. + */ +.macro DECODE_IDT IDT IDTWORD RESULT + movzwq (\IDT), \RESULT + movq 4(\IDT), \IDT + xorw \IDTWORD,...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
...it is not the macro we want */ + #cmpq $__PAGE_OFFSET, %rcx; + jb do_hypercall + movq %gs:pda_vcpu, %rcx; + movq LGUEST_VCPU_guest_syscall(%rcx), %rcx; +#endif + +/** + * DECODE_IDT parse a IDT descriptor to find the target. + * @IDT - The register that holds the IDT descriptor location + * @IDTWORD - The word version of the IDT register + * (ie. IDT is %rax, then IDTWORD must be %ax) + * @RESULT - The regsiter to place the result. + * + * This clobbers both IDT and RESULT regs. + */ +.macro DECODE_IDT IDT IDTWORD RESULT + movzwq (\IDT), \RESULT + movq 4(\IDT), \IDT + xorw \IDTWORD,...