mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
- Added a full ipc send/recv test - Removed non-zero value checking in r2 for ipc that was there to catch inadvertent full ipc calls. - Added correct hanlding for read/write mrs for current status of utcb. TODO: - Add mapping of every utcb to every task for privileged access so that the kernel can access every utcb without switching spaces. - Removal of same mappings - Upon thread creation need to copy page tables accordingly i.e. each task will have its own utcb mapped with USER access, but every other utcb as kernel access only. Need to handle this case upon page table copying.
27 lines
479 B
C
27 lines
479 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);
|
|
|
|
int shmtest(void);
|
|
int forktest(void);
|
|
int mmaptest(void);
|
|
int dirtest(void);
|
|
int fileio(void);
|
|
int clonetest(void);
|
|
int exectest(void);
|
|
|
|
#endif /* __TEST0_TESTS_H__ */
|