Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b6ea5f34
Commit
b6ea5f34
authored
Jan 23, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hal: Limit exports to the appropriate architectures.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0e89c840
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
64 deletions
+43
-64
hal.c
dlls/hal/hal.c
+30
-51
hal.spec
dlls/hal/hal.spec
+13
-13
No files found.
dlls/hal/hal.c
View file @
b6ea5f34
...
...
@@ -47,53 +47,42 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntoskrnl);
"pushl %ecx\n\t" \
"pushl %eax\n\t" \
"jmp " __ASM_NAME("__regs_") #name __ASM_STDCALL(8))
#endif
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT
(
ExAcquireFastMutex
)
VOID
WINAPI
DECLSPEC_HIDDEN
__regs_ExAcquireFastMutex
(
PFAST_MUTEX
FastMutex
)
#else
VOID
WINAPI
ExAcquireFastMutex
(
PFAST_MUTEX
FastMutex
)
#endif
{
FIXME
(
"%p: stub
\n
"
,
FastMutex
);
}
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT
(
ExReleaseFastMutex
)
VOID
WINAPI
DECLSPEC_HIDDEN
__regs_ExReleaseFastMutex
(
PFAST_MUTEX
FastMutex
)
#else
VOID
WINAPI
ExReleaseFastMutex
(
PFAST_MUTEX
FastMutex
)
#endif
{
FIXME
(
"%p: stub
\n
"
,
FastMutex
);
}
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT
(
ExTryToAcquireFastMutex
)
BOOLEAN
WINAPI
DECLSPEC_HIDDEN
__regs_ExTryToAcquireFastMutex
(
PFAST_MUTEX
FastMutex
)
#else
BOOLEAN
WINAPI
ExTryToAcquireFastMutex
(
PFAST_MUTEX
FastMutex
)
#endif
{
FIXME
(
"(%p) stub
\n
"
,
FastMutex
);
return
TRUE
;
}
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT
(
KfAcquireSpinLock
)
KIRQL
WINAPI
DECLSPEC_HIDDEN
__regs_KfAcquireSpinLock
(
PKSPIN_LOCK
SpinLock
)
#else
KIRQL
WINAPI
KfAcquireSpinLock
(
PKSPIN_LOCK
SpinLock
)
#endif
{
FIXME
(
"(%p) stub!
\n
"
,
SpinLock
);
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
DEFINE_FASTCALL1_ENTRYPOINT
(
KfLowerIrql
)
VOID
WINAPI
DECLSPEC_HIDDEN
__regs_KfLowerIrql
(
KIRQL
NewIrql
)
...
...
@@ -117,39 +106,6 @@ KIRQL WINAPI KfRaiseIrql(KIRQL NewIrql)
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
)
{
FIXME
(
" stub!
\n
"
);
...
...
@@ -177,6 +133,29 @@ void WINAPI WRITE_PORT_ULONG(ULONG *port, ULONG 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
)
{
...
...
dlls/hal/hal.spec
View file @
b6ea5f34
@ stdcall -norelay ExAcquireFastMutex(ptr)
@ stdcall -norelay ExReleaseFastMutex(ptr)
@ stdcall -norelay ExTryToAcquireFastMutex(ptr)
@ stdcall -
arch=i386 -
norelay ExAcquireFastMutex(ptr)
@ stdcall -
arch=i386 -
norelay ExReleaseFastMutex(ptr)
@ stdcall -
arch=i386 -
norelay ExTryToAcquireFastMutex(ptr)
@ stub HalClearSoftwareInterrupt
@ stub HalRequestSoftwareInterrupt
@ stub HalSystemVectorDispatchEntry
...
...
@@ -13,10 +13,10 @@
@ stub KeReleaseQueuedSpinLock
@ stub KeTryToAcquireQueuedSpinLock
@ stub KeTryToAcquireQueuedSpinLockRaiseToSynch
@ stdcall -norelay KfAcquireSpinLock(ptr)
@ stdcall -norelay KfLowerIrql(long)
@ stdcall -norelay KfRaiseIrql(long)
@ stdcall -norelay KfReleaseSpinLock(ptr long)
@ stdcall -
arch=i386 -
norelay KfAcquireSpinLock(ptr)
@ stdcall -
arch=arm,arm64,i386 -
norelay KfLowerIrql(long)
@ stdcall -
arch=arm,arm64,i386 -
norelay KfRaiseIrql(long)
@ stdcall -
arch=i386 -
norelay KfReleaseSpinLock(ptr long)
@ stub HalAcquireDisplayOwnership
@ stub HalAdjustResourceList
@ stub HalAllProcessorsStarted
...
...
@@ -70,23 +70,23 @@
@ stub KdComPortInUse
@ stub KeAcquireSpinLock
@ stub KeFlushWriteBuffer
@ stdcall KeGetCurrentIrql()
@ stdcall
-arch=arm,arm64,i386
KeGetCurrentIrql()
@ stub KeLowerIrql
@ stdcall -ret64 KeQueryPerformanceCounter(ptr)
@ stub KeRaiseIrql
@ stub KeRaiseIrqlToDpcLevel
@ stub KeRaiseIrqlToSynchLevel
@ stdcall KeReleaseSpinLock(ptr long) ntoskrnl.exe.KeReleaseSpinLock
@ stdcall
-arch=i386
KeReleaseSpinLock(ptr long) ntoskrnl.exe.KeReleaseSpinLock
@ stub KeStallExecutionProcessor
@ stub READ_PORT_BUFFER_UCHAR
@ stub READ_PORT_BUFFER_ULONG
@ stub READ_PORT_BUFFER_USHORT
@ stdcall READ_PORT_UCHAR(ptr)
@ stdcall READ_PORT_ULONG(ptr)
@ stdcall
-arch=arm,arm64,i386
READ_PORT_UCHAR(ptr)
@ stdcall
-arch=arm,arm64,i386
READ_PORT_ULONG(ptr)
@ stub READ_PORT_USHORT
@ stub WRITE_PORT_BUFFER_UCHAR
@ stub WRITE_PORT_BUFFER_ULONG
@ stub WRITE_PORT_BUFFER_USHORT
@ stdcall WRITE_PORT_UCHAR(ptr long)
@ stdcall WRITE_PORT_ULONG(ptr long)
@ stdcall
-arch=arm,arm64,i386
WRITE_PORT_UCHAR(ptr long)
@ stdcall
-arch=arm,arm64,i386
WRITE_PORT_ULONG(ptr long)
@ stub WRITE_PORT_USHORT
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment