foss-for-synopsys-dwc-arc-processors / embarc_osp

embARC Open Software Platform (OSP) - An embedded software distribution for IoT and other embedded applications for ARC
https://www.embarc.org/
BSD 3-Clause "New" or "Revised" License
70 stars 62 forks source link

arc_exception priority manipulation #181

Open vandit86 opened 5 days ago

vandit86 commented 5 days ago

``Hello, Can anyone explain why some getter/setter functions in arc_excaption.c, for example int_pri_set(), int_ipm_set(), int_ipm_get().., change the interrupt value passed into the function by adding or subtracting INT_PRI_MIN .. ?????

example :

int32_t int_ipm_get(void)
{
    return ((int32_t)arc_int_ipm_get() + INT_PRI_MIN);
}
abrodkin commented 5 days ago

@vandit86 good question, we'll look into that and will get back to you with comments.