1 |
|
2005-04-06 Neal H. Walfield <neal@gnu.org> |
2 |
|
|
3 |
|
* vm.h (hurd_vm_allocate): Remove declaration. |
4 |
|
(hurd_vm_release): Rename from hurd_vm_deallocate. Update |
5 |
|
callers. |
6 |
|
(VM_HERE): Remove. |
7 |
|
(VM_ZEROFILL): Remove. |
8 |
|
* vm.c (hurd_vm_allocate): Remove function. |
9 |
|
(hurd_vm_release): Rename from hurd_vm_deallocate. |
10 |
|
|
11 |
|
* mm.h: Include <stdint.h>, <sys/types.h>, <l4/types.h> and |
12 |
|
<hurd/physmem.h>. |
13 |
|
(hurd_store_t): New typedef. |
14 |
|
(hurd_memory_t): Likewise. |
15 |
|
(hurd_memory_use): New declaration. |
16 |
|
(hurd_memory_transfer): Likewise. |
17 |
|
(hurd_store_fault_t): New typedef. |
18 |
|
(hurd_store_init): New declaration. |
19 |
|
(hurd_store_size): New declaration. |
20 |
|
(HURD_VM_HERE): New definition. |
21 |
|
(hurd_store_bind_to_vm): New declaration. |
22 |
|
(hurd_store_flush): New declaration. |
23 |
|
|
24 |
|
* priv.h: Include "vm.h" and "mm.h". |
25 |
|
(here): New debugging macro. |
26 |
|
(struct region): Move to... |
27 |
|
* mm.h: ...here. |
28 |
|
(struct hurd_memory): Rename from struct frame. |
29 |
|
Rename field dc_start to cont_start. Add field cont. Remove |
30 |
|
field refs. Update users. |
31 |
|
(memory_slab): Rename from frame_slab. Update users. |
32 |
|
(memory_alloc_into): Rename from frame_alloc_into. Update users. |
33 |
|
(frame_alloc): Move to... |
34 |
|
* priv.h (frame_insert): Move to... |
35 |
|
* mm.h (hurd_store_cache): ...here. |
36 |
|
* priv.h (frame_find_first): Move to... |
37 |
|
* mm.h (hurd_store_find_cached): ...here. |
38 |
|
* priv.h (frame_map): Move to... |
39 |
|
* mm.h (hurd_memory_map): ...here. |
40 |
|
* priv.h (frame_dealloc): Move to... |
41 |
|
* mm.h (hurd_memory_dealloc): ...here. |
42 |
|
* priv.h (struct hurd_store): Rename from struct store. Remove |
43 |
|
fields server and handle. Add fields hook and fault. Rename |
44 |
|
field frames to memory. Update users. |
45 |
|
(store_find_free): Remove declaration. |
46 |
|
(struct map): Add field store_offset. |
47 |
|
(default_container): Likewise. |
48 |
|
(map_init): Likewise. |
49 |
|
(map_free): Rename from map_dealloc. Update callers. |
50 |
|
(map_init): New declaration. |
51 |
|
(map_find_first): Rename from map_find. Update callers. |
52 |
|
(as_find_free): Rename from map_find_free. Update callers. |
53 |
|
(container_find_free): Remove declaration. |
54 |
|
(core_slab_allocate_buffer): Rename from |
55 |
|
mem_slab_allocate_buffer. Update users. |
56 |
|
(core_slab_deallocate_buffer): Rename from |
57 |
|
mem_slab_deallocate_buffer. Update users. |
58 |
|
(frame_spare): Rename to memory_spare. Update users. |
59 |
|
(core_store): New declaration. |
60 |
|
|
61 |
|
* map.c (VIRTUAL_MEMORY_START): Move from here... |
62 |
|
* priv.h: ...to here. |
63 |
|
* map.c (as): Move from here... |
64 |
|
* as.c: ...to here. |
65 |
|
(map_system_init): Rename from map_init. Reserve the UTCB and the |
66 |
|
KIP. |
67 |
|
(memory_spare): Rename from frame_spare. |
68 |
|
(core_slab_allocate_buffer): Rename from mem_slab_allocate_buffer. |
69 |
|
(core_slab_deallocate_buffer): Rename from |
70 |
|
mem_slab_deallocate_buffer. |
71 |
|
(map_init): New function. |
72 |
|
(map_free): Rename from map_dealloc. |
73 |
|
(map_find): Rename from map_find_first. Avoid gratuitous |
74 |
|
hurd_btree_map_prev. |
75 |
|
(map_find_free): Remove function. |
76 |
|
(store_find_free): Move from here... |
77 |
|
* as.c (as_find_free): ...to here. |
78 |
|
|
79 |
|
* frame.c: Move from here... |
80 |
|
* memory.c: ...to here. Include <hurd/startup.h>. |
81 |
|
(swap_store): Remove definition. |
82 |
|
(memory_slab): Rename from frame_slab. |
83 |
|
(default_container): New static global. |
84 |
|
(dc_offset): New function. |
85 |
|
(memory_system_init): Likewise. |
86 |
|
(memory_alloc_into): Rename from frame_alloc_into. |
87 |
|
(hurd_memory_new): New function. Refactored from frame_alloc. |
88 |
|
(hurd_memory_delete): New function. |
89 |
|
(hurd_memory_alloc): Rename from frame_alloc. Rewritten to use |
90 |
|
hurd_memory_new. |
91 |
|
(frame_insert): Move from here... |
92 |
|
* store.c (hurd_store_cache): ...to here. |
93 |
|
* memory.c (hurd_memory_use): New function. |
94 |
|
(hurd_memory_transfer): New function. |
95 |
|
(hurd_memory_dealloc): Rename from frame_dealloc. Don't |
96 |
|
deallocate too eagerly: split memory which is only partially |
97 |
|
deallocated. |
98 |
|
(frame_find_first): Move from here... |
99 |
|
* store.c (hurd_store_find_cached): ...to here. |
100 |
|
* memory.c (hurd_memory_map): Rename from frame_map. Loop |
101 |
|
mapping all of the requested if a single RPC is insufficient. |
102 |
|
|
103 |
|
* mm-init.c (default_container): Remove definition. |
104 |
|
(hurd_mm_init): Don't initialize DEFAULT_CONTAINER. Don't |
105 |
|
initialize the store data structures. Call memory_system_init, |
106 |
|
core_system_init, hurd_anonymous_init, and map_system_init. Use |
107 |
|
core_allocate rather than hurd_vm_allocate to allocate a stack for |
108 |
|
the pager thread. |
109 |
|
|
110 |
|
* pager.c (pager): Don't round ADDR. Call MAP->STORE->FAULT if |
111 |
|
the physical memory is not cached. |
112 |
|
|
113 |
|
* physmem-user.h: Include <hurd/physmem.h>. Improve |
114 |
|
documentation. |
115 |
|
(hurd_pm_control_t): Remove redundant typedef. |
116 |
|
(hurd_pm_container_t): Likewise. |
117 |
|
(hurd_pm_container_access_t): Remove typedef. |
118 |
|
(HURD_PM_CONT_ALLOC_PARTIAL): Remove redundant define. |
119 |
|
(HURD_PM_CONT_ALLOC_SQUASH): Likewise. |
120 |
|
(HURD_PM_CONT_ALLOC_EXTRA): Likewise. |
121 |
|
(HURD_PM_CONT_ALLOC_DMA): Likewise. |
122 |
|
(hurd_pm_container_share): Change ACCESSS from a |
123 |
|
hurd_pm_container_access_t * to a hurd_pm_container_t *. |
124 |
|
(hurd_pm_container_map): Rename parameter rights to flags. Add |
125 |
|
new parameter AMOUNT. Update callers. |
126 |
|
* physmem-user.c (container_ops): Remove redundant enumeration. |
127 |
|
(hurd_pm_container_create): Use hurd_pm_container_create_id as the |
128 |
|
RPC identifier. |
129 |
|
(hurd_pm_container_share): Use hurd_pm_container_share_id as the |
130 |
|
RPC identifier. |
131 |
|
(hurd_pm_container_allocate): Use hurd_pm_container_allocate_id as |
132 |
|
the RPC identifier. |
133 |
|
(hurd_pm_container_deallocate): Use |
134 |
|
hurd_pm_container_deallocate_id as the RPC identifier. |
135 |
|
(hurd_pm_container_map): Use hurd_pm_container_map_id as the RPC |
136 |
|
identifier. If AMOUNTP is non-NULL, return the number of bytes |
137 |
|
mapped in *AMOUNTP. Remove debugging code. |
138 |
|
(hurd_pm_container_copy): Use hurd_pm_container_copy_id as the RPC |
139 |
|
identifier. |
140 |
|
|
141 |
|
* anonymous.h: New file. |
142 |
|
* anonymous.c: New file. |
143 |
|
* as.c: New file. |
144 |
|
* core.c: New file. |
145 |
|
* frame.c: Remove file. |
146 |
|
* store.c: New file. |
147 |
|
* Makefile.am (libhurd_mm_a_SOURCES): Add as.c, store.c, memory.c, |
148 |
|
core.c, anonymous.c and anonymous.h. Remove frame.c. |
149 |
|
* headers.m4: Install anonymous.h as <hurd/anonymous.h>. |
150 |
|
|
151 |
2005-03-09 Neal H. Walfield <neal@gnu.org> |
2005-03-09 Neal H. Walfield <neal@gnu.org> |
152 |
|
|
153 |
* physmem-user.c (hurd_pm_container_map): Update argument |
* physmem-user.c (hurd_pm_container_map): Update argument |