Changeset 20d50a1 in mainline for generic/src/proc/task.c


Ignore:
Timestamp:
2006-01-13T13:02:45Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f9425006
Parents:
0369911
Message:

Memory management work.

  • vm.* → as.* (as like address space is, imho, more fitting)
  • Don't do TLB shootdown on vm_install(). Some architectures only need to call tlb_invalidate_asid().
  • Don't allocate all frames for as_area in as_area_create(), but let them be allocated on-demand by as_page_fault().
  • Add high-level page fault handler as_page_fault().
  • Add as_area_load_mapping().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/proc/task.c

    r0369911 r20d50a1  
    2929#include <proc/thread.h>
    3030#include <proc/task.h>
    31 #include <mm/vm.h>
     31#include <mm/as.h>
    3232#include <mm/heap.h>
    3333
     
    5555 * Create new task with no threads.
    5656 *
    57  * @param m Task's virtual memory structure.
     57 * @param as Task's address space.
    5858 *
    5959 * @return New task's structure on success, NULL on failure.
    6060 *
    6161 */
    62 task_t *task_create(vm_t *m)
     62task_t *task_create(as_t *as)
    6363{
    6464        ipl_t ipl;
     
    7070                list_initialize(&ta->th_head);
    7171                list_initialize(&ta->tasks_link);
    72                 ta->vm = m;
     72                ta->as = as;
    7373               
    7474                ipl = interrupts_disable();
Note: See TracChangeset for help on using the changeset viewer.