Commit a0a2616e authored by Ben Avison's avatar Ben Avison
Browse files

Enable cross-compilation, enable CI

parent a8d592ef
Pipeline #1202 passed with stages
in 3 minutes and 39 seconds
/Makefile.d
/o/
/objs/
/oz/
include:
- project: 'Support/CI'
file: '/SyncLib.yml'
......@@ -3,6 +3,7 @@
COMPONENT = SyncLib
HDRS = atomic barrier cpuevent mutex spin spinrw synclib
OBJS = atomic barrier cpuevent init mutex spin spinrw
SOURCES_TO_SYMLINK = $(wildcard hdr/*)
include CLibrary
......
......@@ -5,7 +5,7 @@
*
*/
#define Module_MajorVersion_CMHG 0.05
#define Module_MinorVersion_CMHG
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 07 May 2018
#define Module_MajorVersion "0.05"
......
......@@ -36,6 +36,7 @@
#include "SyncLib/synclib.h"
// cppcheck-suppress unusedFunction
bool mutex_try_lock(mutex_t *mutex)
{
if (atomic_update(MUTEX_LOCKED, (uint32_t *) mutex) == MUTEX_LOCKED)
......@@ -44,6 +45,7 @@ bool mutex_try_lock(mutex_t *mutex)
return true;
}
// cppcheck-suppress unusedFunction
void mutex_lock(mutex_t *mutex)
{
while (atomic_update(MUTEX_LOCKED, (uint32_t *) mutex) == MUTEX_LOCKED)
......@@ -51,6 +53,7 @@ void mutex_lock(mutex_t *mutex)
barrier();
}
// cppcheck-suppress unusedFunction
void mutex_sleep_lock(mutex_t *mutex)
{
while (atomic_update(MUTEX_LOCKED, (uint32_t *) mutex) == MUTEX_LOCKED)
......@@ -58,6 +61,7 @@ void mutex_sleep_lock(mutex_t *mutex)
barrier();
}
// cppcheck-suppress unusedFunction
void mutex_unlock(mutex_t *mutex)
{
barrier();
......
......@@ -30,8 +30,8 @@
GET System
GET CPU/Arch
GET APCS/$APCS
GET hdr/init
GET hdr/vars
GET ./init.hdr
GET ./vars.hdr
Strex_Succeeded * 0
Strex_Failed * 1
......
......@@ -30,8 +30,8 @@
GET System
GET CPU/Arch
GET APCS/$APCS
GET hdr/init
GET hdr/vars
GET ./init.hdr
GET ./vars.hdr
AREA |Asm$$Code|, CODE, READONLY
......
......@@ -30,8 +30,8 @@
GET System
GET CPU/Arch
GET APCS/$APCS
GET hdr/init
GET hdr/vars
GET ./init.hdr
GET ./vars.hdr
AREA |Asm$$Code|, CODE, READONLY
......
......@@ -38,7 +38,7 @@
GET System
GET CPU/Arch
GET APCS/$APCS
GET hdr/init
GET ./init.hdr
AREA |Asm$$Code|, CODE, READONLY
......
......@@ -30,10 +30,10 @@
GET System
GET CPU/Arch
GET APCS/$APCS
GET hdr/barrier
GET hdr/cpuevent
GET hdr/init
GET hdr/vars
GET ./barrier.hdr
GET ./cpuevent.hdr
GET ./init.hdr
GET ./vars.hdr
; Layout of spinlock_t
......
......@@ -30,10 +30,10 @@
GET System
GET CPU/Arch
GET APCS/$APCS
GET hdr/barrier
GET hdr/cpuevent
GET hdr/init
GET hdr/vars
GET ./barrier.hdr
GET ./cpuevent.hdr
GET ./init.hdr
GET ./vars.hdr
; Layout of spinrwlock_t
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment