mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-04-11 22:49:02 +02:00
Compilable MIPS code.
Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
This commit is contained in:
@@ -27,8 +27,13 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
#ifdef STAND_ALONE
|
||||
#include <printk.h>
|
||||
#endif
|
||||
|
||||
/**
|
||||
* \b test_start
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
#ifdef STAND_ALONE
|
||||
#include <printk.h>
|
||||
#endif
|
||||
|
||||
/* Number of test threads */
|
||||
#define NUM_TEST_THREADS 2
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
#ifdef STAND_ALONE
|
||||
#include <printk.h>
|
||||
#endif
|
||||
|
||||
/* Number of test threads */
|
||||
#define NUM_TEST_THREADS 4
|
||||
|
||||
@@ -27,12 +27,17 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atommutex.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
|
||||
/* Number of test threads */
|
||||
#define NUM_TEST_THREADS 2
|
||||
|
||||
|
||||
@@ -27,8 +27,13 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atommutex.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
#include "atomtests.h"
|
||||
#include "atommutex.h"
|
||||
|
||||
#ifdef STAND_ALONE
|
||||
#include <printk.h>
|
||||
#endif
|
||||
|
||||
/* Number of test threads */
|
||||
#define NUM_TEST_THREADS 4
|
||||
@@ -288,4 +291,4 @@ static void test_thread_func (uint32_t param)
|
||||
{
|
||||
atomTimerDelay (SYSTEM_TICKS_PER_SEC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
@@ -293,4 +299,4 @@ static void test_thread_func (uint32_t param)
|
||||
{
|
||||
atomTimerDelay (SYSTEM_TICKS_PER_SEC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
@@ -299,4 +305,4 @@ static void test_thread_func (uint32_t param)
|
||||
{
|
||||
atomTimerDelay (SYSTEM_TICKS_PER_SEC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,13 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
@@ -290,4 +297,4 @@ static void test_thread_func (uint32_t param)
|
||||
{
|
||||
atomTimerDelay (SYSTEM_TICKS_PER_SEC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,8 +27,13 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
#include "atommutex.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atommutex.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -27,8 +27,13 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomqueue.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomqueue.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomqueue.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomqueue.h"
|
||||
|
||||
@@ -27,8 +27,13 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomqueue.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomqueue.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomqueue.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -27,8 +27,13 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomsem.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -27,8 +27,13 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomsem.h"
|
||||
#include "atomtests.h"
|
||||
@@ -321,4 +326,4 @@ static void testCallback (POINTER cb_data)
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomsem.h"
|
||||
|
||||
@@ -27,8 +27,13 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomsem.h"
|
||||
#include "atomtimer.h"
|
||||
@@ -246,4 +251,4 @@ static void testCallback (POINTER cb_data)
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtimer.h"
|
||||
|
||||
@@ -27,8 +27,13 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomsem.h"
|
||||
#include "atomtimer.h"
|
||||
@@ -240,4 +245,4 @@ static void testCallback (POINTER cb_data)
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtimer.h"
|
||||
@@ -190,4 +196,4 @@ static void testCallback (POINTER cb_data)
|
||||
/* Not called at expected time, don't clear the location */
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,8 +27,13 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomsem.h"
|
||||
#include "atomtimer.h"
|
||||
@@ -138,4 +143,4 @@ static void testCallback (POINTER cb_data)
|
||||
{
|
||||
/* Callback was called */
|
||||
callback_ran_flag = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtimer.h"
|
||||
@@ -152,4 +158,4 @@ static void testCallback (POINTER cb_data)
|
||||
{
|
||||
/* Callback was called */
|
||||
*(int *)cb_data = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef STAND_ALONE
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <printk.h>
|
||||
#include <atom-types.h>
|
||||
#endif
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
Reference in New Issue
Block a user