Implement HlLoadInterruptDescriptorTable() intrinsics for loading IDT
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
6613fdd32c
commit
e94e50b5d9
@ -63,6 +63,10 @@ XTCDECL
|
|||||||
VOID
|
VOID
|
||||||
HlLoadGlobalDescriptorTable(IN PVOID Source);
|
HlLoadGlobalDescriptorTable(IN PVOID Source);
|
||||||
|
|
||||||
|
XTCDECL
|
||||||
|
VOID
|
||||||
|
HlLoadInterruptDescriptorTable(IN PVOID Source);
|
||||||
|
|
||||||
XTCDECL
|
XTCDECL
|
||||||
VOID
|
VOID
|
||||||
HlLoadSegment(IN USHORT Segment,
|
HlLoadSegment(IN USHORT Segment,
|
||||||
|
@ -63,6 +63,10 @@ XTCDECL
|
|||||||
VOID
|
VOID
|
||||||
HlLoadGlobalDescriptorTable(IN PVOID Source);
|
HlLoadGlobalDescriptorTable(IN PVOID Source);
|
||||||
|
|
||||||
|
XTCDECL
|
||||||
|
VOID
|
||||||
|
HlLoadInterruptDescriptorTable(IN PVOID Source);
|
||||||
|
|
||||||
XTCDECL
|
XTCDECL
|
||||||
VOID
|
VOID
|
||||||
HlLoadSegment(IN USHORT Segment,
|
HlLoadSegment(IN USHORT Segment,
|
||||||
|
@ -256,6 +256,26 @@ HlLoadGlobalDescriptorTable(IN PVOID Source)
|
|||||||
: "memory");
|
: "memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads the values in the source operand into the interrupt descriptor table register (IDTR).
|
||||||
|
*
|
||||||
|
* @param Source
|
||||||
|
* Specifies a memory location that contains the base address of IDT.
|
||||||
|
*
|
||||||
|
* @return This routine does not return any value.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
|
XTCDECL
|
||||||
|
VOID
|
||||||
|
HlLoadInterruptDescriptorTable(IN PVOID Source)
|
||||||
|
{
|
||||||
|
asm volatile("lidt %0"
|
||||||
|
:
|
||||||
|
: "m" (*(PSHORT)Source)
|
||||||
|
: "memory");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads source data into specified segment.
|
* Loads source data into specified segment.
|
||||||
*
|
*
|
||||||
|
@ -256,6 +256,26 @@ HlLoadGlobalDescriptorTable(IN PVOID Source)
|
|||||||
: "memory");
|
: "memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads the values in the source operand into the interrupt descriptor table register (IDTR).
|
||||||
|
*
|
||||||
|
* @param Source
|
||||||
|
* Specifies a memory location that contains the base address of IDT.
|
||||||
|
*
|
||||||
|
* @return This routine does not return any value.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
|
XTCDECL
|
||||||
|
VOID
|
||||||
|
HlLoadInterruptDescriptorTable(IN PVOID Source)
|
||||||
|
{
|
||||||
|
asm volatile("lidt %0"
|
||||||
|
:
|
||||||
|
: "m" (*(PSHORT)Source)
|
||||||
|
: "memory");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads source data into specified segment.
|
* Loads source data into specified segment.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user