Moved 'struct hole' for memory holes from PM to <minix/type.h>; also

number of holes to sys_config.h, to make memory allocation data structure
visible from outside..
This commit is contained in:
Ben Gras 2005-10-13 12:45:09 +00:00
parent ee9b08e5c0
commit c06149cffe
2 changed files with 8 additions and 0 deletions

View file

@ -20,6 +20,7 @@
#define _NR_PROCS 100 #define _NR_PROCS 100
#define _NR_SYS_PROCS 32 #define _NR_SYS_PROCS 32
#define _NR_HOLES (2*_NR_PROCS+4) /* No. of memory holes maintained by PM */
/* Set the CHIP type based on the machine selected. The symbol CHIP is actually /* Set the CHIP type based on the machine selected. The symbol CHIP is actually
* indicative of more than just the CPU. For example, machines for which * indicative of more than just the CPU. For example, machines for which

View file

@ -47,6 +47,13 @@ struct vir_addr {
vir_bytes offset; vir_bytes offset;
}; };
/* Memory allocation by PM. */
struct hole {
struct hole *h_next; /* pointer to next entry on the list */
phys_clicks h_base; /* where does the hole begin? */
phys_clicks h_len; /* how big is the hole? */
};
#define phys_cp_req vir_cp_req #define phys_cp_req vir_cp_req
struct vir_cp_req { struct vir_cp_req {
struct vir_addr src; struct vir_addr src;