mirror of
https://github.com/drasko/codezero.git
synced 2026-01-16 04:43:16 +01:00
Various changes to incorporate new utcb setup.
Issues with l4_return value not reaching client side modified: libs/c/include/stdio.h modified: src/arch/arm/exception.c modified: src/glue/arm/init.c modified: tasks/fs0/src/task.c modified: tasks/libl4/include/l4lib/arch-arm/utcb.h modified: tasks/libl4/src/arm/syscalls.S modified: tasks/libl4/src/init.c deleted: tasks/libl4/tagfilelist modified: tasks/libposix/open.c modified: tasks/mm0/include/utcb.h modified: tasks/mm0/include/vm_area.h modified: tasks/mm0/main.c modified: tasks/mm0/src/init.c modified: tasks/mm0/src/task.c modified: tasks/mm0/src/utcb.c modified: tasks/mm0/src/vm_object.c
This commit is contained in:
@@ -79,14 +79,11 @@ struct task_data_head {
|
||||
struct task_data tdata[];
|
||||
};
|
||||
|
||||
/* Read task information into the utcb buffer, since it wont fit into mrs. */
|
||||
/* Read task information into the utcb page, since it won't fit into mrs. */
|
||||
struct task_data_head *receive_pager_taskdata(void)
|
||||
{
|
||||
int err;
|
||||
|
||||
/* Ask pager to write the data at this address */
|
||||
write_mr(L4SYS_ARG0, (unsigned long)utcb->buf);
|
||||
|
||||
/* Make the actual ipc call */
|
||||
if ((err = l4_sendrecv(PAGER_TID, PAGER_TID,
|
||||
L4_IPC_TAG_TASKDATA)) < 0) {
|
||||
@@ -100,10 +97,11 @@ struct task_data_head *receive_pager_taskdata(void)
|
||||
return PTR_ERR(err);
|
||||
}
|
||||
|
||||
/* Data is expected in the utcb page */
|
||||
printf("%s: %d Total tasks.\n", __FUNCTION__,
|
||||
((struct task_data_head *)utcb->buf)->total);
|
||||
((struct task_data_head *)utcb_page)->total);
|
||||
|
||||
return (struct task_data_head *)utcb->buf;
|
||||
return (struct task_data_head *)utcb_page;
|
||||
}
|
||||
|
||||
/* Allocate a task struct and initialise it */
|
||||
|
||||
Reference in New Issue
Block a user