From: Ben Gras Date: Thu, 13 Oct 2005 12:45:09 +0000 (+0000) Subject: Moved 'struct hole' for memory holes from PM to ; also X-Git-Tag: v3.1.2a~628 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=c06149cffef9401c8670b6e62dd5b2a7e0691320;p=minix.git Moved 'struct hole' for memory holes from PM to ; also number of holes to sys_config.h, to make memory allocation data structure visible from outside.. --- diff --git a/include/minix/sys_config.h b/include/minix/sys_config.h index 59a2115a9..69ccaa47d 100755 --- a/include/minix/sys_config.h +++ b/include/minix/sys_config.h @@ -20,6 +20,7 @@ #define _NR_PROCS 100 #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 * indicative of more than just the CPU. For example, machines for which diff --git a/include/minix/type.h b/include/minix/type.h index d992bd603..4760de0c0 100755 --- a/include/minix/type.h +++ b/include/minix/type.h @@ -47,6 +47,13 @@ struct vir_addr { 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 struct vir_cp_req { struct vir_addr src;