]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/commit
[PDK-9871] OSAL: Arch: Disable the interrupt during OsalArch_HwiPDelete
authorDon Dominic <a0486429@ti.com>
Wed, 9 Jun 2021 09:15:30 +0000 (14:45 +0530)
committerAnkur <ankurbaranwal@ti.com>
Wed, 9 Jun 2021 10:12:57 +0000 (05:12 -0500)
commit98ef3c270548f9ce05818ce8298396849cfc854d
tree697963820380fc989ce8deeaa2793895b61cd7ee
parent1806b8c211960bb893b79b8a3f0eecdb1678e33f
[PDK-9871] OSAL: Arch: Disable the interrupt during OsalArch_HwiPDelete

- This fixes issues with Sciclient Unit Test
  for cases in which a polling mode test is followed by interrupt test

- Root Casue:
  - OsalArch_HwiPDelete->Intc_IntUnregister : sets the interrupt priority to 0
    and sets the callback fxn IntDefaultHandler(infinite while loop)
  - Interrupt occurs during subsequent polling mode test(following an interrupt test)
    and ends up in IntDefaultHandler infinite while loop
  - As a result polling mode test hangs

- Fix:
  - Disable in the interrupt in INTC after Intc_IntUnregister (in OsalArch_HwiPDelete)

Signed-off-by: Don Dominic <a0486429@ti.com>
packages/ti/osal/arch/core/r5/Arch_util.c