Changeset b07769b6 in mainline for src/main


Ignore:
Timestamp:
2005-08-19T13:12:32Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f4a61ef
Parents:
6a4177a
Message:

Switch over to per vm_t page tables. (breaks ia32 userspace)

Define dummy memcopy() for amd64 and ppc to satisfy compiler.

Get rid of problematic #include <arch/mm/page.h> in mm/page.h.

Indentation fixes and small changes here and there.

Location:
src/main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/kinit.c

    r6a4177a rb07769b6  
    119119         * Create the first user task.
    120120         */
    121         m = vm_create();
     121        m = vm_create(NULL);
    122122        if (!m) panic("vm_create");
    123123        u = task_create(m);
     
    131131        a = vm_area_create(m, VMA_TEXT, 1, UTEXT_ADDRESS);
    132132        if (!a) panic("vm_area_create: vm_text");
     133        vm_area_map(a, m);
    133134        memcopy((__address) utext, PA2KA(a->mapping[0]), utext_size < PAGE_SIZE ? utext_size : PAGE_SIZE);
    134135
     
    138139        a = vm_area_create(m, VMA_STACK, 1, USTACK_ADDRESS);
    139140        if (!a) panic("vm_area_create: vm_stack");
     141        vm_area_map(a, m);     
    140142       
    141143        thread_ready(t);
  • src/main/main.c

    r6a4177a rb07769b6  
    150150         * Create kernel vm mapping.
    151151         */
    152         m = vm_create();
     152        m = vm_create(GET_PTL0_ADDRESS());
    153153        if (!m) panic("can't create kernel vm address space\n");
    154154
Note: See TracChangeset for help on using the changeset viewer.