Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

87 lines
1.2 KiB

/*++
Copyright (c) 1995 DeskStation Technology
Module Name:
arcssup.c
Abstract:
This module allocates resources before a call to the ARCS Firmware, and
frees those reources after the call returns.
Author:
Michael D. Kinney 30-Apr-1995
Environment:
Kernel mode
Revision History:
--*/
#include "halp.h"
static KIRQL HalpArcsIrql;
VOID
HalpAllocateArcsResources (
VOID
)
/*++
Routine Description:
This routine allocated resources required before an ARCS Firmware call is made.
On an ALPHA system, this is a NULL function.
Arguments:
None.
Return Value:
None.
--*/
{
if (HalpIoArchitectureType != EV5_PROCESSOR_MODULE) {
KeRaiseIrql(HIGH_LEVEL, &HalpArcsIrql);
HalpMiniTlbSaveState();
}
}
VOID
HalpFreeArcsResources (
VOID
)
/*++
Routine Description:
This routine frees the TLB entry that was reserved for the ARCS
Firmware call. On an ALPHA system, this is a NULL function.
Arguments:
None.
Return Value:
None.
--*/
{
if (HalpIoArchitectureType != EV5_PROCESSOR_MODULE) {
HalpMiniTlbRestoreState();
KeLowerIrql(HalpArcsIrql);
}
}