hal: Limit exports to the appropriate architectures.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-01-23 23:50:32 -06:00 committed by Alexandre Julliard
parent 0e89c840a6
commit b6ea5f347e
2 changed files with 43 additions and 64 deletions

View File

@ -47,53 +47,42 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntoskrnl);
"pushl %ecx\n\t" \ "pushl %ecx\n\t" \
"pushl %eax\n\t" \ "pushl %eax\n\t" \
"jmp " __ASM_NAME("__regs_") #name __ASM_STDCALL(8)) "jmp " __ASM_NAME("__regs_") #name __ASM_STDCALL(8))
#endif
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT( ExAcquireFastMutex ) DEFINE_FASTCALL1_ENTRYPOINT( ExAcquireFastMutex )
VOID WINAPI DECLSPEC_HIDDEN __regs_ExAcquireFastMutex(PFAST_MUTEX FastMutex) VOID WINAPI DECLSPEC_HIDDEN __regs_ExAcquireFastMutex(PFAST_MUTEX FastMutex)
#else
VOID WINAPI ExAcquireFastMutex(PFAST_MUTEX FastMutex)
#endif
{ {
FIXME("%p: stub\n", FastMutex); FIXME("%p: stub\n", FastMutex);
} }
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT( ExReleaseFastMutex ) DEFINE_FASTCALL1_ENTRYPOINT( ExReleaseFastMutex )
VOID WINAPI DECLSPEC_HIDDEN __regs_ExReleaseFastMutex(PFAST_MUTEX FastMutex) VOID WINAPI DECLSPEC_HIDDEN __regs_ExReleaseFastMutex(PFAST_MUTEX FastMutex)
#else
VOID WINAPI ExReleaseFastMutex(PFAST_MUTEX FastMutex)
#endif
{ {
FIXME("%p: stub\n", FastMutex); FIXME("%p: stub\n", FastMutex);
} }
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT( ExTryToAcquireFastMutex ) DEFINE_FASTCALL1_ENTRYPOINT( ExTryToAcquireFastMutex )
BOOLEAN WINAPI DECLSPEC_HIDDEN __regs_ExTryToAcquireFastMutex(PFAST_MUTEX FastMutex) BOOLEAN WINAPI DECLSPEC_HIDDEN __regs_ExTryToAcquireFastMutex(PFAST_MUTEX FastMutex)
#else
BOOLEAN WINAPI ExTryToAcquireFastMutex(PFAST_MUTEX FastMutex)
#endif
{ {
FIXME("(%p) stub\n", FastMutex); FIXME("(%p) stub\n", FastMutex);
return TRUE; return TRUE;
} }
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT( KfAcquireSpinLock ) DEFINE_FASTCALL1_ENTRYPOINT( KfAcquireSpinLock )
KIRQL WINAPI DECLSPEC_HIDDEN __regs_KfAcquireSpinLock(PKSPIN_LOCK SpinLock) KIRQL WINAPI DECLSPEC_HIDDEN __regs_KfAcquireSpinLock(PKSPIN_LOCK SpinLock)
#else
KIRQL WINAPI KfAcquireSpinLock(PKSPIN_LOCK SpinLock)
#endif
{ {
FIXME( "(%p) stub!\n", SpinLock ); FIXME( "(%p) stub!\n", SpinLock );
return 0; return 0;
} }
DEFINE_FASTCALL2_ENTRYPOINT( KfReleaseSpinLock )
VOID WINAPI DECLSPEC_HIDDEN __regs_KfReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL NewIrql)
{
FIXME( "(%p %u) stub!\n", SpinLock, NewIrql );
}
#endif /* __i386__ */
#if defined(__i386__) || defined(__arm__) || defined(__aarch64__)
#ifdef DEFINE_FASTCALL1_ENTRYPOINT #ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT( KfLowerIrql ) DEFINE_FASTCALL1_ENTRYPOINT( KfLowerIrql )
VOID WINAPI DECLSPEC_HIDDEN __regs_KfLowerIrql(KIRQL NewIrql) VOID WINAPI DECLSPEC_HIDDEN __regs_KfLowerIrql(KIRQL NewIrql)
@ -117,39 +106,6 @@ KIRQL WINAPI KfRaiseIrql(KIRQL NewIrql)
return 0; return 0;
} }
#ifdef DEFINE_FASTCALL2_ENTRYPOINT
DEFINE_FASTCALL2_ENTRYPOINT( KfReleaseSpinLock )
VOID WINAPI DECLSPEC_HIDDEN __regs_KfReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL NewIrql)
#else
VOID WINAPI KfReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL NewIrql)
#endif
{
FIXME( "(%p %u) stub!\n", SpinLock, NewIrql );
}
ULONG WINAPI HalGetBusData(BUS_DATA_TYPE BusDataType, ULONG BusNumber, ULONG SlotNumber, PVOID Buffer, ULONG Length)
{
FIXME("(%u %u %u %p %u) stub!\n", BusDataType, BusNumber, SlotNumber, Buffer, Length);
/* Claim that there is no such bus */
return 0;
}
ULONG WINAPI HalGetBusDataByOffset(BUS_DATA_TYPE BusDataType, ULONG BusNumber, ULONG SlotNumber, PVOID Buffer, ULONG Offset, ULONG Length)
{
FIXME("(%u %u %u %p %u %u) stub!\n", BusDataType, BusNumber, SlotNumber, Buffer, Offset, Length);
/* Claim that there is no such bus */
return 0;
}
BOOLEAN WINAPI HalTranslateBusAddress(INTERFACE_TYPE InterfaceType, ULONG BusNumber, PHYSICAL_ADDRESS BusAddress,
PULONG AddressSpace, PPHYSICAL_ADDRESS TranslatedAddress)
{
FIXME("(%d %d %s %p %p) stub!\n", InterfaceType, BusNumber,
wine_dbgstr_longlong(BusAddress.QuadPart), AddressSpace, TranslatedAddress);
return FALSE;
}
KIRQL WINAPI KeGetCurrentIrql(VOID) KIRQL WINAPI KeGetCurrentIrql(VOID)
{ {
FIXME( " stub!\n"); FIXME( " stub!\n");
@ -177,6 +133,29 @@ void WINAPI WRITE_PORT_ULONG(ULONG *port, ULONG value)
{ {
FIXME("(%p %d) stub!\n", port, value); FIXME("(%p %d) stub!\n", port, value);
} }
#endif /* __i386__ || __arm__ || __arm64__ */
ULONG WINAPI HalGetBusData(BUS_DATA_TYPE BusDataType, ULONG BusNumber, ULONG SlotNumber, PVOID Buffer, ULONG Length)
{
FIXME("(%u %u %u %p %u) stub!\n", BusDataType, BusNumber, SlotNumber, Buffer, Length);
/* Claim that there is no such bus */
return 0;
}
ULONG WINAPI HalGetBusDataByOffset(BUS_DATA_TYPE BusDataType, ULONG BusNumber, ULONG SlotNumber, PVOID Buffer, ULONG Offset, ULONG Length)
{
FIXME("(%u %u %u %p %u %u) stub!\n", BusDataType, BusNumber, SlotNumber, Buffer, Offset, Length);
/* Claim that there is no such bus */
return 0;
}
BOOLEAN WINAPI HalTranslateBusAddress(INTERFACE_TYPE InterfaceType, ULONG BusNumber, PHYSICAL_ADDRESS BusAddress,
PULONG AddressSpace, PPHYSICAL_ADDRESS TranslatedAddress)
{
FIXME("(%d %d %s %p %p) stub!\n", InterfaceType, BusNumber,
wine_dbgstr_longlong(BusAddress.QuadPart), AddressSpace, TranslatedAddress);
return FALSE;
}
ULONGLONG WINAPI KeQueryPerformanceCounter(LARGE_INTEGER *frequency) ULONGLONG WINAPI KeQueryPerformanceCounter(LARGE_INTEGER *frequency)
{ {

View File

@ -1,6 +1,6 @@
@ stdcall -norelay ExAcquireFastMutex(ptr) @ stdcall -arch=i386 -norelay ExAcquireFastMutex(ptr)
@ stdcall -norelay ExReleaseFastMutex(ptr) @ stdcall -arch=i386 -norelay ExReleaseFastMutex(ptr)
@ stdcall -norelay ExTryToAcquireFastMutex(ptr) @ stdcall -arch=i386 -norelay ExTryToAcquireFastMutex(ptr)
@ stub HalClearSoftwareInterrupt @ stub HalClearSoftwareInterrupt
@ stub HalRequestSoftwareInterrupt @ stub HalRequestSoftwareInterrupt
@ stub HalSystemVectorDispatchEntry @ stub HalSystemVectorDispatchEntry
@ -13,10 +13,10 @@
@ stub KeReleaseQueuedSpinLock @ stub KeReleaseQueuedSpinLock
@ stub KeTryToAcquireQueuedSpinLock @ stub KeTryToAcquireQueuedSpinLock
@ stub KeTryToAcquireQueuedSpinLockRaiseToSynch @ stub KeTryToAcquireQueuedSpinLockRaiseToSynch
@ stdcall -norelay KfAcquireSpinLock(ptr) @ stdcall -arch=i386 -norelay KfAcquireSpinLock(ptr)
@ stdcall -norelay KfLowerIrql(long) @ stdcall -arch=arm,arm64,i386 -norelay KfLowerIrql(long)
@ stdcall -norelay KfRaiseIrql(long) @ stdcall -arch=arm,arm64,i386 -norelay KfRaiseIrql(long)
@ stdcall -norelay KfReleaseSpinLock(ptr long) @ stdcall -arch=i386 -norelay KfReleaseSpinLock(ptr long)
@ stub HalAcquireDisplayOwnership @ stub HalAcquireDisplayOwnership
@ stub HalAdjustResourceList @ stub HalAdjustResourceList
@ stub HalAllProcessorsStarted @ stub HalAllProcessorsStarted
@ -70,23 +70,23 @@
@ stub KdComPortInUse @ stub KdComPortInUse
@ stub KeAcquireSpinLock @ stub KeAcquireSpinLock
@ stub KeFlushWriteBuffer @ stub KeFlushWriteBuffer
@ stdcall KeGetCurrentIrql() @ stdcall -arch=arm,arm64,i386 KeGetCurrentIrql()
@ stub KeLowerIrql @ stub KeLowerIrql
@ stdcall -ret64 KeQueryPerformanceCounter(ptr) @ stdcall -ret64 KeQueryPerformanceCounter(ptr)
@ stub KeRaiseIrql @ stub KeRaiseIrql
@ stub KeRaiseIrqlToDpcLevel @ stub KeRaiseIrqlToDpcLevel
@ stub KeRaiseIrqlToSynchLevel @ stub KeRaiseIrqlToSynchLevel
@ stdcall KeReleaseSpinLock(ptr long) ntoskrnl.exe.KeReleaseSpinLock @ stdcall -arch=i386 KeReleaseSpinLock(ptr long) ntoskrnl.exe.KeReleaseSpinLock
@ stub KeStallExecutionProcessor @ stub KeStallExecutionProcessor
@ stub READ_PORT_BUFFER_UCHAR @ stub READ_PORT_BUFFER_UCHAR
@ stub READ_PORT_BUFFER_ULONG @ stub READ_PORT_BUFFER_ULONG
@ stub READ_PORT_BUFFER_USHORT @ stub READ_PORT_BUFFER_USHORT
@ stdcall READ_PORT_UCHAR(ptr) @ stdcall -arch=arm,arm64,i386 READ_PORT_UCHAR(ptr)
@ stdcall READ_PORT_ULONG(ptr) @ stdcall -arch=arm,arm64,i386 READ_PORT_ULONG(ptr)
@ stub READ_PORT_USHORT @ stub READ_PORT_USHORT
@ stub WRITE_PORT_BUFFER_UCHAR @ stub WRITE_PORT_BUFFER_UCHAR
@ stub WRITE_PORT_BUFFER_ULONG @ stub WRITE_PORT_BUFFER_ULONG
@ stub WRITE_PORT_BUFFER_USHORT @ stub WRITE_PORT_BUFFER_USHORT
@ stdcall WRITE_PORT_UCHAR(ptr long) @ stdcall -arch=arm,arm64,i386 WRITE_PORT_UCHAR(ptr long)
@ stdcall WRITE_PORT_ULONG(ptr long) @ stdcall -arch=arm,arm64,i386 WRITE_PORT_ULONG(ptr long)
@ stub WRITE_PORT_USHORT @ stub WRITE_PORT_USHORT