Changed l4id_t type to unsigned integer. Expanded task_ids to have cid

Task ids are now unsigned as the container ids will need to be encoded
in the id fields as well.

For requests who require even more comprehensive id input, (such as
thread creation) also added is the container id so that threads
_could_ potentially be created in other containers as well.
This commit is contained in:
Bahadir Balban
2009-11-04 16:39:04 +02:00
parent db57c598b0
commit aeef546544
11 changed files with 32 additions and 19 deletions

View File

@@ -226,13 +226,11 @@ int read_pager_capabilities()
/* Set up pointers to important capabilities */
list_foreach_struct(cap, &capability_list.caps, list) {
/* Physical memory bank */
if ((cap->type & CAP_RTYPE_MASK)
== CAP_RTYPE_PHYSMEM)
if (cap_type(cap) == CAP_TYPE_MAP_PHYSMEM)
cont_mem_regions.physmem = cap;
/* Virtual regions */
if ((cap->type & CAP_RTYPE_MASK)
== CAP_RTYPE_VIRTMEM) {
if (cap_type(cap) == CAP_TYPE_MAP_VIRTMEM) {
/* Pager address region (get from linker-defined) */
if (__pfn_to_addr(cap->start)

View File

@@ -26,7 +26,7 @@ void wait_pager(l4id_t partner)
}
pid_t parent_of_all;
pid_t pagerid;
l4id_t pagerid;
int main(int argc, char *argv[])
{

View File

@@ -24,7 +24,7 @@ void wait_pager(l4id_t partner)
// printf("Pager synced with us.\n");
}
pid_t pagerid;
l4id_t pagerid;
int main(int argc, char *argv[])
{