mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
- Fixed do_mmap() so that it returns mapped address, and various bugs. - A child seems to fork with new setup, but with incorrect return value. Need to use and test exregs() for fork + clone. - Shmat searches an unmapped area if input arg is invalid, do_mmap() should do this.
29 lines
475 B
C
29 lines
475 B
C
/*
|
|
* Exchange registers system call data.
|
|
*
|
|
* Copyright (C) 2008 Bahadir Balban
|
|
*/
|
|
#ifndef __EXREGS_H__
|
|
#define __EXREGS_H__
|
|
|
|
#include <l4/macros.h>
|
|
#include INC_GLUE(syscall.h)
|
|
#include INC_GLUE(context.h)
|
|
#include <l4/types.h>
|
|
|
|
enum exregs_flags {
|
|
EXREGS_SET_PAGER = 1,
|
|
};
|
|
|
|
/* Structure passed by userspace pagers for exchanging registers */
|
|
struct exregs_data {
|
|
exregs_context_t context;
|
|
u32 valid_vect;
|
|
u32 flags;
|
|
l4id_t pagerid;
|
|
};
|
|
|
|
|
|
|
|
#endif /* __EXREGS_H__ */
|