Changeset b07769b6 in mainline for arch/ia32/src


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:
arch/ia32/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/drivers/ega.c

    r6a4177a rb07769b6  
    3030#include <putchar.h>
    3131#include <mm/page.h>
     32#include <arch/mm/page.h>
    3233#include <synch/spinlock.h>
    3334#include <arch/types.h>
  • arch/ia32/src/mm/page.c

    r6a4177a rb07769b6  
    3737#include <synch/spinlock.h>
    3838#include <debug.h>
    39 
    40 /*
    41  * Note.
    42  * This is the preliminary code for controlling paging mechanism on ia32. It is
    43  * needed by other parts of the kernel for its ability to map virtual addresses
    44  * to physical. SMP code relies on this feature. Other than that, this code is
    45  * by no means meant to implement virtual memory in terms of swapping pages in
    46  * and out.
    47  */
    4839
    4940__address bootstrap_dba;
  • arch/ia32/src/pm.c

    r6a4177a rb07769b6  
    3535#include <arch/context.h>
    3636#include <panic.h>
     37#include <arch/mm/page.h>
    3738
    3839/*
     
    132133static void clean_IOPL_NT_flags(void)
    133134{
    134   asm
     135        asm
    135136        (
    136     "pushfl;"
     137                "pushfl;"
    137138                "pop %%eax;"
    138139                "and $0xffff8fff,%%eax;"
     
    148149static void clean_AM_flag(void)
    149150{
    150   asm
     151        asm
    151152        (
    152     "mov %%cr0,%%eax;"
     153                "mov %%cr0,%%eax;"
    153154                "and $0xFFFBFFFF,%%eax;"
    154155                "mov %%eax,%%cr0;"
     
    158159        );
    159160}
    160 
    161 
    162 
    163 
    164161
    165162void pm_init(void)
  • arch/ia32/src/proc/scheduler.c

    r6a4177a rb07769b6  
    3535{
    3636        CPU->arch.tss->esp0 = (__address) &THREAD->kstack[THREAD_STACK_SIZE-8];
    37         CPU->arch.tss->ss0 = selector(KDATA_DES);       
     37        CPU->arch.tss->ss0 = selector(KDATA_DES);
    3838}
Note: See TracChangeset for help on using the changeset viewer.