mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-02-27 00:53:25 +01:00
Compilable MIPS code.
Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include "atommutex.h"
|
||||
#include "atomtests.h"
|
||||
|
||||
|
||||
/* Number of test threads */
|
||||
#define NUM_TEST_THREADS 2
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,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"
|
||||
|
||||
@@ -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,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,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,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,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,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,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