Implement HlClearInterruptFlag() and HlSetInterruptFlag() intrinsic routines
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:
@@ -9,6 +9,20 @@
|
||||
#include "xtkmapi.h"
|
||||
|
||||
|
||||
/**
|
||||
* Instructs the processor to clear the interrupt flag.
|
||||
*
|
||||
* @return This routine does not return any value.
|
||||
*
|
||||
* @since XT 1.0
|
||||
*/
|
||||
XTCDECL
|
||||
VOID
|
||||
HlClearInterruptFlag()
|
||||
{
|
||||
asm volatile("cli");
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a various amount of information about the CPU.
|
||||
*
|
||||
@@ -170,6 +184,20 @@ HlReadControlRegister(IN USHORT ControlRegister)
|
||||
return Value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs the processor to set the interrupt flag.
|
||||
*
|
||||
* @return This routine does not return any value.
|
||||
*
|
||||
* @since XT 1.0
|
||||
*/
|
||||
XTCDECL
|
||||
VOID
|
||||
HlSetInterruptFlag()
|
||||
{
|
||||
asm volatile("sti");
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes a value to the specified CPU control register.
|
||||
*
|
||||
|
Reference in New Issue
Block a user