mirror of
https://github.com/drasko/codezero.git
synced 2026-02-27 01:03:14 +01:00
Reorganized test container sources
This commit is contained in:
14
conts/test/include/capability.h
Normal file
14
conts/test/include/capability.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef __CAPABILITY_H__
|
||||
#define __CAPABILITY_H__
|
||||
|
||||
#include <l4/api/capability.h>
|
||||
#include <l4/generic/capability.h>
|
||||
#include <l4/generic/cap-types.h>
|
||||
|
||||
void print_capability(struct capability *cap);
|
||||
|
||||
int read_pager_capabilities();
|
||||
|
||||
|
||||
|
||||
#endif /* __CAPABILITY_H__ */
|
||||
7
conts/test/include/tests.h
Normal file
7
conts/test/include/tests.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#ifndef __TESTS_H__
|
||||
#define __TESTS_H__
|
||||
|
||||
|
||||
int capability_test(void);
|
||||
|
||||
#endif /* __TESTS_H__ */
|
||||
18
conts/test/include/thread.h
Normal file
18
conts/test/include/thread.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef __THREAD_H__
|
||||
#define __THREAD_H__
|
||||
|
||||
#include <l4lib/arch/syslib.h>
|
||||
#include <l4lib/arch/syscalls.h>
|
||||
#include <l4lib/exregs.h>
|
||||
#include <l4/api/thread.h>
|
||||
|
||||
|
||||
int thread_create(int (*func)(void *), void *args, unsigned int flags,
|
||||
struct task_ids *new_ids);
|
||||
|
||||
/* For same space */
|
||||
#define STACK_SIZE 0x1000
|
||||
|
||||
#define THREADS_TOTAL 10
|
||||
|
||||
#endif /* __THREAD_H__ */
|
||||
Reference in New Issue
Block a user