https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ee514e954ba29dc81e7e1…
commit ee514e954ba29dc81e7e1c10482d94d7abca08ac
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Thu Jun 3 11:19:30 2021 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Thu Jun 17 23:27:44 2021 +0200
[MINIHAL] Compile less stuff
---
hal/halx86/legacy/bus/pcibus.c | 5 ++++-
hal/halx86/legacy/bussupp.c | 10 ++++++++++
hal/halx86/minihal/CMakeLists.txt | 1 -
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/hal/halx86/legacy/bus/pcibus.c b/hal/halx86/legacy/bus/pcibus.c
index b4c0bd070df..f71142626b9 100644
--- a/hal/halx86/legacy/bus/pcibus.c
+++ b/hal/halx86/legacy/bus/pcibus.c
@@ -519,7 +519,7 @@ HalpSetPCIData(IN PBUS_HANDLER BusHandler,
/* Update the total length read */
return Len;
}
-
+#ifndef _MINIHAL_
ULONG
NTAPI
HalpGetPCIIntOnISABus(IN PBUS_HANDLER BusHandler,
@@ -540,6 +540,7 @@ HalpGetPCIIntOnISABus(IN PBUS_HANDLER BusHandler,
Irql,
Affinity);
}
+#endif // _MINIHAL_
VOID
NTAPI
@@ -562,6 +563,7 @@ HalpPCIISALine2Pin(IN PBUS_HANDLER BusHandler,
UNIMPLEMENTED_DBGBREAK();
}
+#ifndef _MINIHAL_
NTSTATUS
NTAPI
HalpGetISAFixedPCIIrq(IN PBUS_HANDLER BusHandler,
@@ -654,6 +656,7 @@ HalpRegisterPciDebuggingDeviceInfo(VOID)
UNIMPLEMENTED_DBGBREAK("You have implemented the KD routines for searching PCI
debugger"
"devices, but you have forgotten to implement this
routine\n");
}
+#endif // _MINIHAL_
static ULONG NTAPI
PciSize(ULONG Base, ULONG Mask)
diff --git a/hal/halx86/legacy/bussupp.c b/hal/halx86/legacy/bussupp.c
index 6e291d58479..97b535285d3 100644
--- a/hal/halx86/legacy/bussupp.c
+++ b/hal/halx86/legacy/bussupp.c
@@ -152,6 +152,7 @@ HalpAllocateBusHandler(IN INTERFACE_TYPE InterfaceType,
return Bus;
}
+#ifndef _MINIHAL_
CODE_SEG("INIT")
VOID
NTAPI
@@ -225,6 +226,7 @@ HalpRegisterInternalBusHandlers(VOID)
/* No support for EISA or MCA */
ASSERT(HalpBusType == MACHINE_TYPE_ISA);
}
+#endif // _MINIHAL_
#ifndef _MINIHAL_
CODE_SEG("INIT")
@@ -1230,6 +1232,7 @@ HalpInitializePciBus(VOID)
#endif
}
+#ifndef _MINIHAL_
CODE_SEG("INIT")
VOID
NTAPI
@@ -1262,6 +1265,7 @@ HalpRegisterKdSupportFunctions(VOID)
/* Register ACPI stub */
KdCheckPowerButton = HalpCheckPowerButton;
}
+#endif // _MINIHAL_
NTSTATUS
NTAPI
@@ -1405,6 +1409,7 @@ HaliTranslateBusAddress(IN INTERFACE_TYPE InterfaceType,
/* PUBLIC FUNCTIONS **********************************************************/
+#ifndef _MINIHAL_
/*
* @implemented
*/
@@ -1430,6 +1435,7 @@ HalAdjustResourceList(IN PIO_RESOURCE_REQUIREMENTS_LIST
*ResourceList)
HalDereferenceBusHandler(Handler);
return Status;
}
+#endif // _MINIHAL_
/*
* @implemented
@@ -1474,6 +1480,7 @@ HalAssignSlotResources(IN PUNICODE_STRING RegistryPath,
}
}
+#ifndef _MINIHAL_
/*
* @implemented
*/
@@ -1493,6 +1500,7 @@ HalGetBusData(IN BUS_DATA_TYPE BusDataType,
0,
Length);
}
+#endif // _MINIHAL_
/*
* @implemented
@@ -1526,6 +1534,7 @@ HalGetBusDataByOffset(IN BUS_DATA_TYPE BusDataType,
return Status;
}
+#ifndef _MINIHAL_
/*
* @implemented
*/
@@ -1623,6 +1632,7 @@ HalSetBusDataByOffset(IN BUS_DATA_TYPE BusDataType,
HalDereferenceBusHandler(Handler);
return Status;
}
+#endif // _MINIHAL_
/*
* @implemented
diff --git a/hal/halx86/minihal/CMakeLists.txt b/hal/halx86/minihal/CMakeLists.txt
index 94a3e93112f..e8300e7bc56 100644
--- a/hal/halx86/minihal/CMakeLists.txt
+++ b/hal/halx86/minihal/CMakeLists.txt
@@ -5,7 +5,6 @@ list(APPEND MINI_HAL_SOURCE
../legacy/bus/cmosbus.c
../legacy/bus/isabus.c
../legacy/bus/pcibus.c
- ../legacy/bus/sysbus.c
../legacy/bussupp.c
../generic/bios.c
../generic/dma.c