Set valid calling convention for HAL routines
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2022-12-23 14:41:11 +01:00
parent 3ab1695968
commit 93ad0b4ea0
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
4 changed files with 36 additions and 36 deletions

View File

@ -18,30 +18,30 @@
extern ULONG ComPortAddress[];
/* HAL library routines forward references */
XTAPI
XTCDECL
BOOLEAN
HlCpuId(IN OUT PCPUID_REGISTERS Registers);
XTAPI
XTCDECL
VOID
HlHalt();
XTAPI
XTCDECL
UCHAR
HlIoPortInByte(IN USHORT Port);
XTAPI
XTCDECL
VOID
HlIoPortOutByte(IN USHORT Port,
IN UCHAR Data);
XTAPI
XTCDECL
ULONG_PTR
HlReadControlRegister(USHORT ControlRegister);
HlReadControlRegister(IN USHORT ControlRegister);
XTAPI
XTCDECL
VOID
HlWriteControlRegister(USHORT ControlRegister,
UINT_PTR Value);
HlWriteControlRegister(IN USHORT ControlRegister,
IN UINT_PTR Value);
#endif /* __XTDK_AMD64_HLFUNCS_H */

View File

@ -18,30 +18,30 @@
extern ULONG ComPortAddress[];
/* HAL library routines forward references */
XTAPI
XTCDECL
BOOLEAN
HlCpuId(IN OUT PCPUID_REGISTERS Registers);
XTAPI
XTCDECL
VOID
HlHalt();
XTAPI
XTCDECL
UCHAR
HlIoPortInByte(IN USHORT Port);
XTAPI
XTCDECL
VOID
HlIoPortOutByte(IN USHORT Port,
IN UCHAR Data);
XTAPI
XTCDECL
ULONG_PTR
HlReadControlRegister(USHORT ControlRegister);
HlReadControlRegister(IN USHORT ControlRegister);
XTAPI
XTCDECL
VOID
HlWriteControlRegister(USHORT ControlRegister,
UINT_PTR Value);
HlWriteControlRegister(IN USHORT ControlRegister,
IN UINT_PTR Value);
#endif /* __XTDK_I686_HLFUNCS_H */

View File

@ -19,7 +19,7 @@
*
* @since XT 1.0
*/
XTAPI
XTCDECL
BOOLEAN
HlCpuId(IN OUT PCPUID_REGISTERS Registers)
{
@ -58,7 +58,7 @@ HlCpuId(IN OUT PCPUID_REGISTERS Registers)
*
* @since XT 1.0
*/
XTAPI
XTCDECL
VOID
HlHalt()
{
@ -78,7 +78,7 @@ HlHalt()
*
* @since XT 1.0
*/
XTAPI
XTCDECL
UCHAR
HlIoPortInByte(IN USHORT Port)
{
@ -102,7 +102,7 @@ HlIoPortInByte(IN USHORT Port)
*
* @since XT 1.0
*/
XTAPI
XTCDECL
VOID
HlIoPortOutByte(IN USHORT Port,
IN UCHAR Value)
@ -123,9 +123,9 @@ HlIoPortOutByte(IN USHORT Port,
*
* @since XT 1.0
*/
XTAPI
XTCDECL
ULONG_PTR
HlReadControlRegister(USHORT ControlRegister)
HlReadControlRegister(IN USHORT ControlRegister)
{
ULONG_PTR Value;
@ -189,10 +189,10 @@ HlReadControlRegister(USHORT ControlRegister)
*
* @since XT 1.0
*/
XTAPI
XTCDECL
VOID
HlWriteControlRegister(USHORT ControlRegister,
UINT_PTR Value)
HlWriteControlRegister(IN USHORT ControlRegister,
IN UINT_PTR Value)
{
/* Write a value into specified control register */
switch(ControlRegister)

View File

@ -19,7 +19,7 @@
*
* @since XT 1.0
*/
XTAPI
XTCDECL
BOOLEAN
HlCpuId(IN OUT PCPUID_REGISTERS Registers)
{
@ -58,7 +58,7 @@ HlCpuId(IN OUT PCPUID_REGISTERS Registers)
*
* @since XT 1.0
*/
XTAPI
XTCDECL
VOID
HlHalt()
{
@ -78,7 +78,7 @@ HlHalt()
*
* @since XT 1.0
*/
XTAPI
XTCDECL
UCHAR
HlIoPortInByte(IN USHORT Port)
{
@ -102,7 +102,7 @@ HlIoPortInByte(IN USHORT Port)
*
* @since XT 1.0
*/
XTAPI
XTCDECL
VOID
HlIoPortOutByte(IN USHORT Port,
IN UCHAR Value)
@ -123,9 +123,9 @@ HlIoPortOutByte(IN USHORT Port,
*
* @since XT 1.0
*/
XTAPI
XTCDECL
ULONG_PTR
HlReadControlRegister(USHORT ControlRegister)
HlReadControlRegister(IN USHORT ControlRegister)
{
ULONG_PTR Value;
@ -183,10 +183,10 @@ HlReadControlRegister(USHORT ControlRegister)
*
* @since XT 1.0
*/
XTAPI
XTCDECL
VOID
HlWriteControlRegister(USHORT ControlRegister,
UINT_PTR Value)
HlWriteControlRegister(IN USHORT ControlRegister,
IN UINT_PTR Value)
{
/* Write a value into specified control register */
switch(ControlRegister)