mirror of
https://github.com/drasko/codezero.git
synced 2026-02-17 12:23:16 +01:00
Finished adding untested bare functionality vfs
Finished adding untested shm syscalls. Finished adding untested l4 send/recv helpers Everything compiles. Now going to fix lots of bugs ;-)
This commit is contained in:
@@ -91,14 +91,14 @@ static inline void l4_set_retval(int retval)
|
||||
|
||||
/* Clients:
|
||||
* Learn result of request.
|
||||
*/
|
||||
*/
|
||||
static inline int l4_get_retval(void)
|
||||
{
|
||||
return read_mr(MR_RETURN);
|
||||
}
|
||||
|
||||
/* Servers:
|
||||
* Return the ipc result back to requesting task.
|
||||
* Return the ipc result back to requesting task.
|
||||
*/
|
||||
static inline int l4_ipc_return(int retval)
|
||||
{
|
||||
@@ -175,5 +175,4 @@ static inline int l4_reclaim_pages(l4id_t tid)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#endif /* __L4LIB_SYSLIB_H__ */
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#define MR_UNUSED_START 2 /* The first mr that's not used by syslib.h */
|
||||
#define MR_TOTAL 6
|
||||
#define MR_UNUSED_TOTAL (MR_TOTAL - MR_UNUSED_START)
|
||||
#define MR_USABLE_TOTAL MR_UNUSED_TOTAL
|
||||
|
||||
/* Compact utcb for now! :-) */
|
||||
struct utcb {
|
||||
|
||||
@@ -40,4 +40,8 @@
|
||||
#define L4_IPC_TAG_CLOSE 16
|
||||
#define L4_IPC_TAG_BRK 17
|
||||
|
||||
/* Tags for ipc between fs0 and mm0 */
|
||||
#define L4_IPC_TAG_OPENDATA 25
|
||||
#define L4_IPC_TAG_TASKDATA 26
|
||||
|
||||
#endif /* __IPCDEFS_H__ */
|
||||
|
||||
Reference in New Issue
Block a user