-
Notifications
You must be signed in to change notification settings - Fork 78
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
Update core_ca.h #216
base: main
Are you sure you want to change the base?
Update core_ca.h #216
Conversation
Small bugs fixed
@Masmiseim36, could you double check this one? |
@@ -1015,7 +1015,7 @@ typedef struct | |||
|
|||
/* GICInterface HPPIR Register */ | |||
#define GICInterface_HPPIR_INTID_Pos 0U /*!< PTIM HPPIR: INTID Position */ | |||
#define GICInterface_HPPIR_INTID_Msk (0xFFFFFFU /*<< GICInterface_HPPIR_INTID_Pos*/) /*!< PTIM HPPIR: INTID Mask */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://arm-software.github.io/CMSIS_5/Core_A/html/structGICInterface__Type.html#af793cd280a74bf73cca8c4fedfc329d6
the value 0xFFFFFFU is correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NVMarkovich Which documentation are you referring to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IHI0048B_gic_architecture_specification_GICv2-GICv1.pdf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JonatanAntoni: I think the CMSIS documentation also needs to be updated
#define GICInterface_DIR_INTID_Pos 0U /*!< PTIM DIR: INTID Position */ | ||
#define GICInterface_DIR_INTID_Msk (0xFFFFFFU /*<< GICInterface_DIR_INTID_Pos*/) /*!< PTIM DIR: INTID Mask */ | ||
#define GICInterface_DIR_INTID_Pos 0U /*!< GICInterface DIR: INTID Position */ | ||
#define GICInterface_DIR_INTID_Msk (0xFFFFFFU /*<< GICInterface_DIR_INTID_Pos*/) /*!< GICInterface DIR: INTID Mask */ | ||
#define GICInterface_DIR_INTID(x) (((uint32_t)(((uint32_t)(x)) /*<< GICInterface_DIR_INTID_Pos*/)) & GICInterface_DIR_INTID_Msk) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://arm-software.github.io/CMSIS_5/Core_A/html/structGICInterface__Type.html#a554bd1f88421df3189c664b9fd9c02aa
the value 0xFFFFFFU is correct.
Also in Version six:
https://arm-software.github.io/CMSIS_6/latest/Core_A/structGICInterface__Type.html#af793cd280a74bf73cca8c4fedfc329d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, I was referring to an older spec for Architecture version 2.0: ARM IHI 0048B (ID061411)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here the remark is about the PTIM comment, not about the value
#define ISR_I_Msk (1UL << ISR_I_Pos) /*!< \brief ISR: I Mask */ | ||
|
||
#define ISR_F_Pos 11U /*!< \brief ISR: F Position */ | ||
#define ISR_F_Pos 6U /*!< \brief ISR: F Position */ | ||
#define ISR_F_Msk (1UL << ISR_F_Pos) /*!< \brief ISR: F Mask */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://developer.arm.com/documentation/ddi0406/b/System-Level-Architecture/Virtual-Memory-System-Architecture--VMSA-/CP15-registers-for-a-VMSA-implementation/c12--Interrupt-Status-Register--ISR- this change is correct.
But the CMSIS documentation says something different:
https://arm-software.github.io/CMSIS_5/Core_A/html/group__CMSIS__ISR__BITS.html#ga8c6d55d243da46ed7ca05c3941316c8d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The values appear to have been corrected in the sixth version of the CMSIS documentation:
https://arm-software.github.io/CMSIS_6/latest/Core_A/unionISR__Type.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be the CMSIS documentation needs change too?
Small bugs fixed