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

osal Integration candidate: Caelum-rc4+dev15 #1277

Merged
merged 5 commits into from
Aug 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF

## Changelog

### Development Build: v6.0.0-rc4+dev103

- Remove stray terminators
- Add RTEMS timebase callback wrapper
- See <https://github.com/nasa/osal/pull/1274> and <https://github.com/nasa/osal/pull/1276>

### Development Build: v6.0.0-rc4+dev97
- Ensure address alignment of TCB for VxWorks 7
- See <https://github.com/nasa/osal/pull/1272>
Expand Down
2 changes: 1 addition & 1 deletion src/os/inc/osapi-version.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/*
* Development Build Macro Definitions
*/
#define OS_BUILD_NUMBER 97
#define OS_BUILD_NUMBER 103
#define OS_BUILD_BASELINE "v6.0.0-rc4"

/*
Expand Down
24 changes: 21 additions & 3 deletions src/os/rtems/src/os-impl-timebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,24 @@ void OS_UsecsToTicks(uint32 usecs, rtems_interval *ticks)
/* The user may specify whether to use priority inheritance on mutexes via osconfig.h */
#define OSAL_TIMEBASE_MUTEX_ATTRIBS RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY

/*----------------------------------------------------------------
*
* Function: OS_TimeBase_CallbackThreadEntry
*
* Purpose: Local helper routine, not part of OSAL API.
* Wrapper function used by OS_TimeBaseCreate_Impl to
* convert the rtems_task_argument on newly created
* timebase task into an osal_id_t used by the
* OS_TimeBase_CallbackThread.
*
*-----------------------------------------------------------------*/
static void OS_TimeBase_CallbackThreadEntry(rtems_task_argument arg)
{
osal_id_t id;
id = OS_ObjectIdFromInteger(arg);
OS_TimeBase_CallbackThread(id);
}

/*----------------------------------------------------------------
*
* Function: OS_TimeBaseCreate_Impl
Expand Down Expand Up @@ -390,9 +408,9 @@ int32 OS_TimeBaseCreate_Impl(const OS_object_token_t *token)
else
{
/* will place the task in 'ready for scheduling' state */
rtems_sc = rtems_task_start(local->handler_task, /*rtems task id*/
(rtems_task_entry)OS_TimeBase_CallbackThread, /* task entry point */
(rtems_task_argument)r_name); /* passed argument */
rtems_sc = rtems_task_start(local->handler_task, /*rtems task id*/
(rtems_task_entry)OS_TimeBase_CallbackThreadEntry, /* task entry point */
(rtems_task_argument)r_name); /* passed argument */

if (rtems_sc != RTEMS_SUCCESSFUL)
{
Expand Down
2 changes: 0 additions & 2 deletions src/unit-tests/osfile-test/ut_osfile_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,13 @@ int32 UT_os_setup_fs()
if (res != OS_SUCCESS)
{
UtPrintf("OS_mkfs() returns %d\n", (int)res);
;
goto UT_os_setup_fs_exit_tag;
}

res = OS_mount(g_devName, g_mntName);
if (res != OS_SUCCESS)
{
UtPrintf("OS_mount() returns %d\n", (int)res);
;
OS_rmfs(g_devName);
goto UT_os_setup_fs_exit_tag;
}
Expand Down