Changeset 20d50a1 in mainline for generic/src/main/main.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/main/main.c

    r0369911 r20d50a1  
    4949#include <genarch/mm/page_pt.h>
    5050#include <mm/tlb.h>
    51 #include <mm/vm.h>
     51#include <mm/as.h>
    5252#include <synch/waitq.h>
    5353#include <arch/arch.h>
     
    136136void main_bsp_separated_stack(void)
    137137{
    138         vm_t *m;
     138        as_t *as;
    139139        task_t *k;
    140140        thread_t *t;
     
    184184
    185185        /*
    186          * Create kernel vm mapping.
    187          */
    188         m = vm_create(GET_PTL0_ADDRESS());
    189         if (!m)
    190                 panic("can't create kernel vm address space\n");
     186         * Create kernel address space.
     187         */
     188        as = as_create(GET_PTL0_ADDRESS());
     189        if (!as)
     190                panic("can't create kernel address space\n");
    191191
    192192        /*
    193193         * Create kernel task.
    194194         */
    195         k = task_create(m);
     195        k = task_create(as);
    196196        if (!k)
    197197                panic("can't create kernel task\n");
Note: See TracChangeset for help on using the changeset viewer.