mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
- Mutex test added. Forked tasks demonstrate produce/consumer using a shared mmap'ed page. - Added l4lib assembler syscall - Added forgotten SWI to mutex control offset in syscall page. - Added mutex head initialization - Contended child successfully sleeps in a waitqueue. Issues: - Somehow the child's produced page buffer is altered at about [4020] offset. Parent fails to validate buffer therefore. - Need to add syncing to test so that parent does not unlock and lock again before child has a chance to lock buffer and produce.
29 lines
536 B
C
29 lines
536 B
C
#ifndef __TEST0_TESTS_H__
|
|
#define __TEST0_TESTS_H__
|
|
|
|
#define __TASKNAME__ "test0"
|
|
|
|
//#define TEST_VERBOSE_PRINT
|
|
#if defined (TEST_VERBOSE_PRINT)
|
|
#define test_printf(...) printf(__VA_ARGS__)
|
|
#else
|
|
#define test_printf(...)
|
|
#endif
|
|
|
|
#include <sys/types.h>
|
|
extern pid_t parent_of_all;
|
|
|
|
void ipc_full_test(void);
|
|
void ipc_extended_test(void);
|
|
|
|
int shmtest(void);
|
|
int forktest(void);
|
|
int mmaptest(void);
|
|
int dirtest(void);
|
|
int fileio(void);
|
|
int clonetest(void);
|
|
int exectest(void);
|
|
int user_mutex_test(void);
|
|
|
|
#endif /* __TEST0_TESTS_H__ */
|