diff options
Diffstat (limited to 'drivers/net/ethernet/freescale/fman')
-rw-r--r-- | drivers/net/ethernet/freescale/fman/src/xx/xx_linux.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fman/src/xx/xx_linux.c b/drivers/net/ethernet/freescale/fman/src/xx/xx_linux.c index 132459b..546c68b 100644 --- a/drivers/net/ethernet/freescale/fman/src/xx/xx_linux.c +++ b/drivers/net/ethernet/freescale/fman/src/xx/xx_linux.c @@ -354,14 +354,22 @@ uint32_t XX_DisableAllIntr(void) { unsigned long flags; +#ifdef local_irq_save_nort local_irq_save_nort(flags); +#else + local_irq_save(flags); +#endif return (uint32_t)flags; } void XX_RestoreAllIntr(uint32_t flags) { +#ifdef local_irq_restore_nort local_irq_restore_nort((unsigned long)flags); +#else + local_irq_restore((unsigned long)flags); +#endif } t_Error XX_Call( uint32_t qid, t_Error (* f)(t_Handle), t_Handle id, t_Handle appId, uint16_t flags ) |