diff --git a/arch/arm/common/los_common_interrupt.c b/arch/arm/common/los_common_interrupt.c index b90dc5e4fce7628535037414d4549fd03c761843..50ca5917aecc7f0932e63d0599095603100a7964 100644 --- a/arch/arm/common/los_common_interrupt.c +++ b/arch/arm/common/los_common_interrupt.c @@ -105,10 +105,6 @@ BOOL OsHwiIsCreated(UINT32 index) #endif #if (LOSCFG_PLATFORM_HWI_WITH_ARG == 1) -typedef struct { - HWI_PROC_FUNC pfnHandler; - VOID *pParm; -} HWI_HANDLER_FUNC; /* * * @ingroup los_hwi diff --git a/arch/arm/common/los_common_interrupt.h b/arch/arm/common/los_common_interrupt.h index 180a00d57426890aeca38bed981ac54a9ffa39f7..8a663a29e33d97ab367daac17a9333f4d64663a5 100644 --- a/arch/arm/common/los_common_interrupt.h +++ b/arch/arm/common/los_common_interrupt.h @@ -63,6 +63,11 @@ extern UINT32 g_intCount; #endif #if (LOSCFG_PLATFORM_HWI_WITH_ARG == 1) +typedef struct { + HWI_PROC_FUNC pfnHandler; + VOID *pParm; +} HWI_HANDLER_FUNC; + /* * * @ingroup los_arch_interrupt * Set interrupt vector table. diff --git a/arch/csky/common/los_common_interrupt.c b/arch/csky/common/los_common_interrupt.c index f6a557906790d59972e4674c28567b63aca9eb4b..473fda93abf2d816ba5a00b0c0b19f9ae2d9c8d5 100644 --- a/arch/csky/common/los_common_interrupt.c +++ b/arch/csky/common/los_common_interrupt.c @@ -155,10 +155,6 @@ UINT32 ArchIntCurIrqNum(VOID) } #if (LOSCFG_PLATFORM_HWI_WITH_ARG == 1) -typedef struct { - HWI_PROC_FUNC pfnHandler; - VOID *pParm; -} HWI_HANDLER_FUNC; /* * * @ingroup los_hwi diff --git a/arch/csky/common/los_common_interrupt.h b/arch/csky/common/los_common_interrupt.h index 6a58a2e7d7327490da933e092ee5bf174fd3a6b3..6ad52ad1cb5be0083ae0aaede5b943e0dec541a1 100644 --- a/arch/csky/common/los_common_interrupt.h +++ b/arch/csky/common/los_common_interrupt.h @@ -63,6 +63,11 @@ extern volatile UINT32 g_intCount; #endif #if (LOSCFG_PLATFORM_HWI_WITH_ARG == 1) +typedef struct { + HWI_PROC_FUNC pfnHandler; + VOID *pParm; +} HWI_HANDLER_FUNC; + /* * * @ingroup los_arch_interrupt * Set interrupt vector table. diff --git a/arch/xtensa/common/los_common_interrupt.c b/arch/xtensa/common/los_common_interrupt.c index 9046d6119dbfa18bebe70abfb542741829ea6ec8..1b33c5c21d93b1058d389d3fa819f6e515310ed1 100644 --- a/arch/xtensa/common/los_common_interrupt.c +++ b/arch/xtensa/common/los_common_interrupt.c @@ -137,10 +137,6 @@ UINT32 ArchIntCurIrqNum(VOID) } #if (LOSCFG_PLATFORM_HWI_WITH_ARG == 1) -typedef struct { - HWI_PROC_FUNC pfnHandler; - VOID *pParm; -} HWI_HANDLER_FUNC; /* * * @ingroup los_hwi diff --git a/arch/xtensa/common/los_common_interrupt.h b/arch/xtensa/common/los_common_interrupt.h index c0a42f1255655f3fe18b1508406c2bbf5c00d47e..e575b5f8df81ab3efc19efcfdb7152ad72de7880 100644 --- a/arch/xtensa/common/los_common_interrupt.h +++ b/arch/xtensa/common/los_common_interrupt.h @@ -63,6 +63,11 @@ extern UINT32 g_intCount; #endif #if (LOSCFG_PLATFORM_HWI_WITH_ARG == 1) +typedef struct { + HWI_PROC_FUNC pfnHandler; + VOID *pParm; +} HWI_HANDLER_FUNC; + /* * * @ingroup los_arch_interrupt * Set interrupt vector table.