Skip to content
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

Exception/Interrupt API updates #317

Merged

Conversation

jphickey
Copy link
Contributor

Describe the contribution
Fix #316

  • Ensure the FPU functions that are actually not implemented in RTEMS/POSIX all return OS_ERR_NOT_IMPLEMENTED, not OS_SUCCESS.
  • The RTEMS IntEnable/Disable API should not be a duplicate of the IntLock/Unlock API, as the semantics are slightly different.
    The Enable/Disable API should return OS_ERR_NOT_IMPLEMENTED.
  • The OS_FPUExcGetMask API should confirm that the output buffer is not NULL.

Testing performed
Sanity check on basic CFE operation on native/simulation build - no changes to FSW behavior.

Modified APIs are exercised in the OSAL unit tests. Unit tests executed on RTEMS, POSIX (native), and VxWorks in conjunction with changeset for #313.

Expected behavior changes
No change to FSW.
Unit tests related to these particular API calls now all PASS or are skipped appropriately for the ones that are actually not implemented.

System(s) tested on:

  • Ubuntu 18.04 LTS 64-bit (native/posix)
  • RTEMS 4.11 on i686/pc (QEMU-emulated target)
  • VxWorks 6.9 on PPC/MCP750

Contributor Info
Joseph Hickey, Vantage Systems, Inc.

Community contributors
You must attach a signed CLA (required for acceptance) or reference one already submitted

- Ensure the FPU functions that are actually not implemented in
  RTEMS/POSIX all return OS_ERR_NOT_IMPLEMENTED, not OS_SUCCESS.
- The RTEMS IntEnable/Disable API should not be a duplicate of
  the IntLock/Unlock API, as the semantics are slightly different.
  The Enable/Disable API should return OS_ERR_NOT_IMPLEMENTED.
- The OS_FPUExcGetMask API should confirm that the output buffer
  is not NULL.
@skliper skliper added the CCB:Approved Indicates code review and approval by community CCB label Dec 18, 2019
@skliper skliper added this to the 5.1.0 milestone Dec 18, 2019
@skliper
Copy link
Contributor

skliper commented Dec 18, 2019

CCB 20191218 - Reviewed and approved for IC

@skliper skliper changed the base branch from master to merge-20191230 December 30, 2019 21:35
@skliper skliper merged commit 3c30fd0 into nasa:merge-20191230 Dec 30, 2019
skliper added a commit that referenced this pull request Dec 30, 2019
Fix #295, #298, #305, #307, #308,
    #313, #314, #316, #321, #323
Reviewed and approved at 2019-12-18 CCB
skliper added a commit that referenced this pull request Dec 31, 2019
Fix #297 
Reviewed and approved at 2019-12-18 CCB
@jphickey jphickey deleted the fix-316-exception-interrupt-api branch February 13, 2020 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants