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.
25 lines
511 B
C
25 lines
511 B
C
/*
|
|
* Physical page descriptor
|
|
*
|
|
* Copyright (C) 2007 Bahadir Balban
|
|
*/
|
|
#ifndef __MEMORY_H__
|
|
#define __MEMORY_H__
|
|
|
|
#include <vm_area.h>
|
|
#include <init.h>
|
|
|
|
struct membank {
|
|
unsigned long start;
|
|
unsigned long end;
|
|
unsigned long free;
|
|
struct page *page_array;
|
|
};
|
|
extern struct membank membank[];
|
|
|
|
void init_mm_descriptors(struct page_bitmap *page_map,
|
|
struct bootdesc *bootdesc, struct membank *membank);
|
|
void init_physmem(struct initdata *initdata, struct membank *membank);
|
|
|
|
#endif /* __MEMORY_H__ */
|