1 Jun 2007 05:09
Task / driver loading
Andrew Dennison <andrewd.lists <at> gmail.com>
2007-06-01 03:09:14 GMT
2007-06-01 03:09:14 GMT
Kohsuke, I am starting work on adding the capability to load elf images for drivers and tasks from a task. The way I'm planning to do this is to add elf file parsing to the kernel, basically duplicating the elf loading capability present in the bootloader. I would then expose two syscalls, something like: __syscall int task_load_elf(task_t task, char *img, u_long img_size, void **stack) - loads elf EXEC or REL file and allocate memory - probably also does thread_create(), thread_load(), thread_resume() __syscall int driver_load_elf(char *img, u_long img_size) - loads elf REL file and allocate memory - start driver This means starting an application would be something like: task_create(task_self(), VM_NONE, &task); task_load_elf(task, elf_img, size); Does this fit in with your ideas, or do you have some work you have already done in this area? Andrew(Continue reading)
RSS Feed