diff options
author | Neal H. Walfield <neal@gnu.org> | 2008-12-18 10:48:24 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2008-12-18 10:48:24 +0100 |
commit | 61ce081e93aaf465a31beb41dd4094575cfbb19f (patch) | |
tree | 5570a5239f5adb8f5bd852f902fe3d4ca481d41c /libc-parts/process-spawn.c | |
parent | 87bfe7ed7bbe4dd4350f420cc9649809bef6d5a4 (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 'libc-parts/process-spawn.c')
-rw-r--r-- | libc-parts/process-spawn.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/libc-parts/process-spawn.c b/libc-parts/process-spawn.c index b20ffa5..77de8a7 100644 --- a/libc-parts/process-spawn.c +++ b/libc-parts/process-spawn.c @@ -141,9 +141,9 @@ process_spawn (vg_addr_t activity, bind them to the page table. That is, if there is a page table at X, and we index it, we don't refer to X but simply extend its address and return the shadow pte at that address. */ - struct vg_cap *do_index (activity_t activity, - struct vg_cap *pt, vg_addr_t pt_addr, int idx, - struct vg_cap *fake_slot) + struct vg_cap *do_index (vg_activity_t activity, + struct vg_cap *pt, vg_addr_t pt_addr, int idx, + struct vg_cap *fake_slot) { assert (pt->type == vg_cap_cappage || pt->type == vg_cap_rcappage || pt->type == vg_cap_folio); @@ -501,9 +501,9 @@ process_spawn (vg_addr_t activity, /* We know that we are the only one who can access the data structure, however, the object_claim asserts that this lock is held. */ - object_claim (root_activity, (struct object *) root_activity, + object_claim (root_activity, (struct vg_object *) root_activity, VG_OBJECT_POLICY_VOID, true); - object_claim (root_activity, (struct object *) folio_local_addr, + object_claim (root_activity, (struct vg_object *) folio_local_addr, VG_OBJECT_POLICY_VOID, true); #else struct hurd_object_desc *desc; @@ -666,7 +666,7 @@ process_spawn (vg_addr_t activity, { struct vg_cap cap; #ifdef RM_INTERN - cap = object_to_cap ((struct object *) (uintptr_t) + cap = object_to_cap ((struct vg_object *) (uintptr_t) desc->storage.raw); assert (cap.type == vg_cap_folio); #else @@ -745,21 +745,21 @@ process_spawn (vg_addr_t activity, #ifdef RM_INTERN thread->aspace = *as_root_cap; - thread->activity = object_to_cap ((struct object *) root_activity); + thread->activity = object_to_cap ((struct vg_object *) root_activity); l4_word_t sp = STARTUP_DATA_ADDR; error_t err; err = thread_exregs (root_activity, thread, - HURD_EXREGS_SET_SP_IP - | (make_runnable ? HURD_EXREGS_START : 0) - | HURD_EXREGS_ABORT_IPC, + VG_EXREGS_SET_SP_IP + | (make_runnable ? VG_EXREGS_START : 0) + | VG_EXREGS_ABORT_IPC, VG_CAP_VOID, 0, VG_CAP_PROPERTIES_VOID, VG_CAP_VOID, VG_CAP_VOID, VG_CAP_VOID, &sp, &ip, NULL, NULL); #else /* Start thread. */ - struct hurd_thread_exregs_in in; + struct vg_thread_exregs_in in; /* Per the API (cf. <hurd/startup.h>). */ in.sp = STARTUP_DATA_ADDR; in.ip = ip; @@ -767,14 +767,14 @@ process_spawn (vg_addr_t activity, in.aspace_cap_properties_flags = VG_CAP_COPY_COPY_SOURCE_GUARD; error_t err; - struct hurd_thread_exregs_out out; + struct vg_thread_exregs_out out; /* XXX: Use a weakened activity. */ err = vg_thread_exregs (VG_ADDR_VOID, thread, - HURD_EXREGS_SET_SP_IP - | HURD_EXREGS_SET_ASPACE - | HURD_EXREGS_SET_ACTIVITY - | (make_runnable ? HURD_EXREGS_START : 0) - | HURD_EXREGS_ABORT_IPC, + VG_EXREGS_SET_SP_IP + | VG_EXREGS_SET_ASPACE + | VG_EXREGS_SET_ACTIVITY + | (make_runnable ? VG_EXREGS_START : 0) + | VG_EXREGS_ABORT_IPC, in, vg_addr_extend (as_root, VG_THREAD_ASPACE_SLOT, VG_THREAD_SLOTS_LOG2), activity, VG_ADDR_VOID, VG_ADDR_VOID, |