You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
185 lines
3.3 KiB
185 lines
3.3 KiB
/*++
|
|
|
|
Copyright (c) 1991 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
ixsproc.c
|
|
|
|
Abstract:
|
|
|
|
Stub functions for UP hals.
|
|
|
|
Author:
|
|
|
|
Ken Reneris (kenr) 22-Jan-1991
|
|
|
|
Environment:
|
|
|
|
Kernel mode only.
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#include "halp.h"
|
|
|
|
#ifdef ALLOC_DATA_PRAGMA
|
|
#pragma data_seg("INITCONST") // INITCONST is OK to use for data_seg
|
|
#endif // ALLOC_DATA_PRAGMA
|
|
const WCHAR HalHardwareIdString[] = L"acpipic_up";
|
|
|
|
#ifdef ALLOC_DATA_PRAGMA
|
|
#pragma data_seg()
|
|
#endif // ALLOC_DATA_PRAGMA
|
|
|
|
const UCHAR HalName[] = "ACPI Compatible Eisa/Isa HAL"; // This is placed in .text for debugging
|
|
#define HalName L"ACPI Compatible Eisa/Isa HAL"
|
|
|
|
const ULONG HalDisableFirmwareMapper = 1;
|
|
|
|
BOOLEAN
|
|
HalpInitMP (
|
|
IN ULONG Phase,
|
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock
|
|
);
|
|
|
|
VOID
|
|
HalpMcaInit (
|
|
VOID
|
|
);
|
|
|
|
VOID
|
|
HalpAcpiEnumerate (
|
|
PUNICODE_STRING DriverName
|
|
);
|
|
|
|
VOID HalpInitOtherBuses (VOID);
|
|
VOID HalpInitializePciBus (VOID);
|
|
|
|
#ifdef ALLOC_PRAGMA
|
|
#pragma alloc_text(INIT,HalpInitMP)
|
|
#pragma alloc_text(INIT,HalStartNextProcessor)
|
|
#pragma alloc_text(INIT,HalAllProcessorsStarted)
|
|
#pragma alloc_text(INIT,HalReportResourceUsage)
|
|
#pragma alloc_text(INIT,HalpInitOtherBuses)
|
|
#endif
|
|
|
|
|
|
|
|
BOOLEAN
|
|
HalpInitMP (
|
|
IN ULONG Phase,
|
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock
|
|
)
|
|
{
|
|
// do nothing
|
|
return TRUE;
|
|
}
|
|
|
|
|
|
VOID
|
|
HalpResetAllProcessors (
|
|
VOID
|
|
)
|
|
{
|
|
// Just return, that will invoke the standard PC reboot code
|
|
}
|
|
|
|
|
|
BOOLEAN
|
|
HalStartNextProcessor (
|
|
IN PLOADER_PARAMETER_BLOCK pLoaderBlock,
|
|
IN PKPROCESSOR_STATE pProcessorState
|
|
)
|
|
{
|
|
// no other processors
|
|
return FALSE;
|
|
}
|
|
|
|
BOOLEAN
|
|
HalAllProcessorsStarted (
|
|
VOID
|
|
)
|
|
{
|
|
#if !defined(_WIN64)
|
|
if (HalpFeatureBits & HAL_NO_SPECULATION) {
|
|
|
|
//
|
|
// Processor doesn't perform speculative execeution,
|
|
// remove fences in critical code paths
|
|
//
|
|
|
|
HalpRemoveFences ();
|
|
}
|
|
#endif
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
|
|
VOID
|
|
HalReportResourceUsage (
|
|
VOID
|
|
)
|
|
{
|
|
INTERFACE_TYPE interfacetype;
|
|
UNICODE_STRING UHalName;
|
|
|
|
HalInitSystemPhase2 ();
|
|
|
|
//
|
|
// Turn on MCA support if present
|
|
//
|
|
|
|
HalpMcaInit();
|
|
|
|
//
|
|
// Registry is now intialized, see if there are any PCI buses
|
|
//
|
|
|
|
HalpInitializePciBus ();
|
|
|
|
switch (HalpBusType) {
|
|
case MACHINE_TYPE_ISA: interfacetype = Isa; break;
|
|
case MACHINE_TYPE_EISA: interfacetype = Eisa; break;
|
|
case MACHINE_TYPE_MCA: interfacetype = MicroChannel; break;
|
|
default: interfacetype = Internal; break;
|
|
}
|
|
|
|
RtlInitUnicodeString (&UHalName, HalName);
|
|
HalpReportResourceUsage (
|
|
&UHalName, // descriptive name
|
|
interfacetype // device space interface type
|
|
);
|
|
|
|
#if 0
|
|
//
|
|
// Display all buses & ranges
|
|
//
|
|
|
|
HalpDisplayAllBusRanges ();
|
|
#endif
|
|
|
|
HalpRegisterPciDebuggingDeviceInfo();
|
|
}
|
|
|
|
|
|
VOID
|
|
HalpInitOtherBuses (
|
|
VOID
|
|
)
|
|
{
|
|
// no other internal buses supported
|
|
}
|
|
|
|
ULONG
|
|
FASTCALL
|
|
HalSystemVectorDispatchEntry (
|
|
IN ULONG Vector,
|
|
OUT PKINTERRUPT_ROUTINE **FlatDispatch,
|
|
OUT PKINTERRUPT_ROUTINE *NoConnection
|
|
)
|
|
{
|
|
return FALSE;
|
|
}
|