summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f696e05)
raw | patch | inline | side by side (parent: f696e05)
author | Ramsey Harris <ramsey@ti.com> | |
Fri, 14 Mar 2014 22:19:09 +0000 (15:19 -0700) | ||
committer | Chris Ring <cring@ti.com> | |
Mon, 17 Mar 2014 23:30:14 +0000 (16:30 -0700) |
Changed default interrupt vector to actual values. When creating Hwi
instances, compute a mask which blocks both interrupt vectors. Set
the mask in Hwi create params.
instances, compute a mask which blocks both interrupt vectors. Set
the mask in Hwi create params.
packages/ti/sdo/ipc/family/vayu/NotifySetup.c | patch | blob | history | |
packages/ti/sdo/ipc/family/vayu/NotifySetup.xdc | patch | blob | history |
diff --git a/packages/ti/sdo/ipc/family/vayu/NotifySetup.c b/packages/ti/sdo/ipc/family/vayu/NotifySetup.c
index 80a4bf8a1929d7467e4ef4c81f7c5fcdd269fba1..2fd11ef17cbc30ace594febfe5677204cbf9b3fb 100644 (file)
UInt combinedEventId;
#elif defined(xdc_target__isaCompatible_arp32)
UInt mbxIdx;
+ Bits16 mask;
#endif
Error_init(&eb);
- /* disable global interrupts (TODO: should be a gated module) */
+ /* disable interrupts */
key = Hwi_disable();
/* map processor id to virtual id */
if (NotifySetup_module->numPlugged[mbxIdx] == 1) {
eventId = NotifySetup_module->interruptTable[virtId];
+ /* compute the hwi mask */
+ mask = (1 << NotifySetup_eveIntVectId_INTC0)
+ | (1 << NotifySetup_eveIntVectId_INTC1);
+
Hwi_Params_init(&hwiParams);
hwiParams.arg = eventId;
hwiParams.vectorNum = cpuIntrNum;
+ hwiParams.maskSetting = Hwi_MaskingOption_BITMASK;
+ hwiParams.disableIerMask = mask;
Hwi_create(eventId, NotifySetup_dispatchIsr, &hwiParams, &eb);
/* TODO: add error handling */
#error Invalid target
#endif
- /* restore global interrupts */
+ /* restore interrupts */
Hwi_restore(key);
}
diff --git a/packages/ti/sdo/ipc/family/vayu/NotifySetup.xdc b/packages/ti/sdo/ipc/family/vayu/NotifySetup.xdc
index 44d3ff2cdab98b320eafb6d913398a7117b435eb..6a51ee53a0fb6641ef5f20698494e526fc837368 100644 (file)
/*!
* Interrupt vector id for Vayu/EVE
*/
- config UInt eveIntVectId_INTC0 = -1;
- config UInt eveIntVectId_INTC1 = -1;
+ config UInt eveIntVectId_INTC0 = 4;
+ config UInt eveIntVectId_INTC1 = 8;
/*!
* Available notify drivers.