mirror of
https://github.com/drasko/codezero.git
synced 2026-01-22 15:53:16 +01:00
shmat/shmget for utcbs are working for now.
faults on shared memory needs to be implemented.
This commit is contained in:
@@ -25,4 +25,6 @@ int do_munmap(void *vaddr, unsigned long size, struct tcb *task);
|
||||
int do_mmap(struct vm_file *mapfile, unsigned long f_offset, struct tcb *t,
|
||||
unsigned long map_address, unsigned int flags, unsigned int pages);
|
||||
|
||||
int mmap_address_validate(unsigned long map_address, unsigned int vm_flags);
|
||||
|
||||
#endif /* __MM0_MMAP_H__ */
|
||||
|
||||
@@ -12,7 +12,7 @@ struct shm_descriptor {
|
||||
struct list_head list; /* SHM list, used by mm0 */
|
||||
struct vm_file *owner;
|
||||
void *shm_addr; /* The virtual address for segment. */
|
||||
unsigned long size; /* Size of the area */
|
||||
unsigned long size; /* Size of the area in pages */
|
||||
unsigned int flags;
|
||||
int refcnt;
|
||||
};
|
||||
@@ -23,12 +23,6 @@ struct shm_descriptor {
|
||||
#define SHM_SHMMIN 1
|
||||
#define SHM_SHMMAX (PAGE_SIZE * 10)
|
||||
|
||||
/*
|
||||
* NOTE: This flags the unique shm vaddr pool. If its not globally unique
|
||||
* and shm areas are cached, on ARMv5 cache aliasing occurs.
|
||||
*/
|
||||
#define SHM_DISJOINT_VADDR_POOL
|
||||
|
||||
/* Initialises shared memory bookkeeping structures */
|
||||
void shm_init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user