#include <stdlib.h>
#include <stdio.h>
#include "cpe.h"
#include "interrupt.h"
#include "symbol.h"

UINT32 fLib_FIQSources = 0;

void MaskFIQ(UINT32 FIQ)
{
    volatile UINT32 *FIQBase;

    FIQBase = (UINT32 *)CPE_IC_BASE;

    FIQBase[(FIQ_MASK / sizeof(UINT32))] &= ~(1 << FIQ);
}

void UnmaskFIQ(UINT32 FIQ)
{
    volatile UINT32 *FIQBase;


    FIQBase = (UINT32 *)CPE_IC_BASE;

    FIQBase[(FIQ_MASK / sizeof(UINT32))] |= (1 << FIQ);
}
