summaryrefslogtreecommitdiff
path: root/libhurd-mm/storage.c
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2008-12-18 10:48:24 +0100
committerNeal H. Walfield <neal@gnu.org>2008-12-18 10:48:24 +0100
commit61ce081e93aaf465a31beb41dd4094575cfbb19f (patch)
tree5570a5239f5adb8f5bd852f902fe3d4ca481d41c /libhurd-mm/storage.c
parent87bfe7ed7bbe4dd4350f420cc9649809bef6d5a4 (diff)
Add vg_ prefix to the (hopefully) remaining viengoos symbols.
2008-12-18 Neal H. Walfield <neal@gnu.org> * viengoos/activity.h (struct activity_memory_policy): Rename from this... (struct vg_activity_memory_policy): ... to this. Update users. (struct activity_policy): Rename from this... (struct vg_activity_policy): ... to this. Update users. (ACTIVITY_STATS_PERIODS): Rename from this... (VG_ACTIVITY_STATS_PERIODS): ... to this. Update users. (struct activity_stats): Rename from this... (struct vg_activity_stats): ... to this. Update users. (struct activity_info): Rename from this... (struct vg_activity_info): ... to this. Update users. * viengoos/addr.h (struct addr): Rename from this... (struct vg_addr): ... to this. Update users. * viengoos/cap.h (struct object_policy): Rename from this... (struct vg_object_policy): ... to this. Update users. (struct object_name): Rename from this... (struct vg_object_name): ... to this. Update users. (struct object): Rename from this... (struct vg_object): ... to this. Update users. * viengoos/folio.h (struct folio_policy): Rename from this... (struct vg_folio_policy): ... to this. Update users. (struct folio): Rename for this... (struct vg_folio): ... to this. Update users. * viengoos/thread.h (HURD_EXREGS_SET_UTCB): Rename from this... (VG_EXREGS_SET_UTCB): ... to this. Update users. (HURD_EXREGS_SET_EXCEPTION_MESSENGER): Rename from this... (VG_EXREGS_SET_EXCEPTION_MESSENGER): ... to this. Update users. (HURD_EXREGS_SET_ASPACE): Rename from this... (VG_EXREGS_SET_ASPACE): ... to this. Update users. (HURD_EXREGS_SET_ACTIVITY): Rename from this... (VG_EXREGS_SET_ACTIVITY): ... to this. Update users. (HURD_EXREGS_SET_SP): Rename from this... (VG_EXREGS_SET_SP): ... to this. Update users. (HURD_EXREGS_SET_IP): Rename from this... (VG_EXREGS_SET_IP): ... to this. Update users. (HURD_EXREGS_SET_SP_IP): Rename from this... (VG_EXREGS_SET_SP_IP): ... to this. Update users. (HURD_EXREGS_SET_EFLAGS): Rename from this... (VG_EXREGS_SET_EFLAGS): ... to this. Update users. (HURD_EXREGS_SET_USER_HANDLE): Rename from this... (VG_EXREGS_SET_USER_HANDLE): ... to this. Update users. (HURD_EXREGS_SET_REGS): Rename from this... (VG_EXREGS_SET_REGS): ... to this. Update users. (HURD_EXREGS_GET_REGS): Rename from this... (VG_EXREGS_GET_REGS): ... to this. Update users. (HURD_EXREGS_START): Rename from this... (VG_EXREGS_START): ... to this. Update users. (HURD_EXREGS_STOP): Rename from this... (VG_EXREGS_STOP): ... to this. Update users. (HURD_EXREGS_ABORT_SEND): Rename from this... (VG_EXREGS_ABORT_SEND): ... to this. Update users. (HURD_EXREGS_ABORT_RECEIVE): Rename from this... (VG_EXREGS_ABORT_RECEIVE): ... to this. Update users. (HURD_EXREGS_ABORT_IPC): Rename from this... (VG_EXREGS_ABORT_IPC): ... to this. Update users. (struct hurd_thread_exregs_in): Rename form this... (struct vg_thread_exregs_in): ... to this. Update users. (struct hurd_thread_exregs_out): Rename form this... (struct vg_thread_exregs_out): ... to this. Update users. (RPC_STUB_PREFIX): Define to vg_activation. Update users. (RPC_ID_PREFIX): Define to VG_ACTIVATION. Update users. (ACTIVATION_fault): Rename from this... (VG_ACTIVATION_fault): ... to this. Update users.
Diffstat (limited to 'libhurd-mm/storage.c')
-rw-r--r--libhurd-mm/storage.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libhurd-mm/storage.c b/libhurd-mm/storage.c
index 388603d..5d37a56 100644
--- a/libhurd-mm/storage.c
+++ b/libhurd-mm/storage.c
@@ -58,7 +58,7 @@ struct storage_desc
/* The address of the folio. */
vg_addr_t folio;
/* The location of the shadow vg_cap designating this folio. */
- struct object *shadow;
+ struct vg_object *shadow;
/* Which objects are allocated. */
unsigned char alloced[VG_FOLIO_OBJECTS / 8];
@@ -245,7 +245,7 @@ shadow_setup (struct vg_cap *cap, struct storage_desc *desc)
storage descriptor, which is still unreachable from any other
thread. */
- struct object *shadow;
+ struct vg_object *shadow;
int idx = bit_alloc (desc->alloced, sizeof (desc->alloced), 0);
if (likely (idx != -1))
@@ -531,7 +531,7 @@ storage_check_reserve (bool i_may_have_lock)
struct storage
storage_alloc (vg_addr_t activity,
enum vg_cap_type type, enum storage_expectancy expectancy,
- struct object_policy policy,
+ struct vg_object_policy policy,
vg_addr_t addr)
{
assert (storage_init_done);
@@ -652,7 +652,7 @@ storage_alloc (vg_addr_t activity,
idx, VG_ADDR_PRINTF (folio), VG_ADDR_PRINTF (addr), err);
assert (VG_ADDR_EQ (a, addr));
- struct object *shadow = desc->shadow;
+ struct vg_object *shadow = desc->shadow;
struct vg_cap *cap = NULL;
if (likely (!! shadow))
{
@@ -729,7 +729,7 @@ storage_free_ (vg_addr_t object, bool unmap_now)
storage->free ++;
- struct object *shadow = storage->shadow;
+ struct vg_object *shadow = storage->shadow;
if (storage->free == VG_FOLIO_OBJECTS
|| ((storage->free == VG_FOLIO_OBJECTS - 1)