Skip to content

[RZ_A1H]Fixed a bug of CMSIS-RTOS RTX for Cortex-A9 #700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libraries/rtos/rtx/TARGET_CORTEX_A/rt_HAL_CA.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ extern const U32 GICInterface_BASE;

/* HW initialization needs to be done in os_tick_init (void) -RTX_Conf_CM.c-
* OS_X_INIT enables the IRQ n in the GIC */
#define OS_X_INIT(n) char *reg; \
#define OS_X_INIT(n) volatile char *reg; \
reg = (char *)(&GICD_ICDIPR0 + n / 4); \
reg += n % 4; \
*reg = (char)0xff; \
Expand Down Expand Up @@ -163,7 +163,7 @@ __inline static void rt_systick_init (void) {

__inline static void rt_svc_init (void) {
/* Register pendSV - through SGI */
char *reg;
volatile char *reg;

reg = (char *)(&GICD_ICDIPR0 + SGI_PENDSV/4);
reg += SGI_PENDSV % 4;
Expand Down