ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

Definition at line 187 of file pic.c.

Referenced by HalInitSystem(), HalpGrowMapBufferWorker(), KeAcquireInStackQueuedSpinLock(), KeAcquireInStackQueuedSpinLockRaiseToSynch(), KeAcquireQueuedSpinLock(), KeAcquireQueuedSpinLockRaiseToSynch(), KeAcquireSpinLockRaiseToSynch(), KeQueryPerformanceCounter(), KeRaiseIrql(), KeRaiseIrqlToDpcLevel(), KeRaiseIrqlToSynchLevel(), KeSynchronizeExecution(), KeTryToAcquireQueuedSpinLock(), KeTryToAcquireQueuedSpinLockRaiseToSynch(), KfAcquireSpinLock(), KiAcquireDispatcherLock(), KiChainedDispatch(), KiCheckForApcDelivery(), KiDecrementerTrap(), KiDpcInterruptHandler(), KiExitV86Trap(), KiIdleLoop(), KiInitializeKernel(), KiInitializeSystem(), KiInterruptHandler(), KiSystemStartup(), KiSystemStartupBootStack(), KiSystemStartupReal(), KiTrap06Handler(), KiTrap0DHandler(), and KxRaiseIrql().

{
    ARM_STATUS_REGISTER Flags;
    PKIPCR Pcr = (PKIPCR)KeGetPcr();
    KIRQL CurrentIrql;
    ULONG InterruptMask;
    
    /* Disable interrupts */
    Flags = KeArmStatusRegisterGet();
    _disable();

    /* Read current IRQL */
    CurrentIrql = Pcr->Irql;
    
#ifdef IRQL_DEBUG
    /* Validate correct raise */
    if (CurrentIrql > NewIrql)
    {
        /* Crash system */
        Pcr->Irql = PASSIVE_LEVEL;
        KeBugCheck(IRQL_NOT_GREATER_OR_EQUAL);
    }
#endif
    /* Clear interrupts associated to the old IRQL */
    WRITE_REGISTER_ULONG(VIC_INT_CLEAR, 0xFFFFFFFF);
    
    /* Set the new interrupt mask */
    InterruptMask = Pcr->IrqlTable[NewIrql];
    WRITE_REGISTER_ULONG(VIC_INT_ENABLE, InterruptMask);

    /* Set new IRQL */
    Pcr->Irql = NewIrql;
    
    /* Restore interrupt state */
    if (!Flags.IrqDisable) _enable();
    
    /* Return old IRQL */
    return CurrentIrql;
}

Generated on Fri May 25 2012 05:56:24 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.