Changeset 9c0a9b3 in mainline for src/mm


Ignore:
Timestamp:
2005-08-30T19:44:27Z (20 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d0c30f7
Parents:
8fc0d455
Message:

1) memcopy and _memcopy functions rewriten to ANSI C norm.
2) Repaired ia32,ia64 and mips version of SPARTAN to work with this memcopy functions
3) Warning for non declared funcions added and repaired ia32,ia64 and mips versions to pass build process with this warning and Werror option

Location:
src/mm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/mm/frame.c

    r8fc0d455 r9c0a9b3  
    4444
    4545#include <arch/asm.h>
     46#include <arch.h>
    4647
    4748count_t frames = 0;
  • src/mm/heap.c

    r8fc0d455 r9c0a9b3  
    3434#include <arch/types.h>
    3535#include <arch/asm.h>
     36#include <arch.h>
    3637
    3738/*
  • src/mm/page.c

    r8fc0d455 r9c0a9b3  
    3333#include <typedefs.h>
    3434#include <arch/asm.h>
     35#include <memstr.h>
     36
    3537
    3638void page_init(void)
  • src/mm/vm.c

    r8fc0d455 r9c0a9b3  
    4141#include <arch/asm.h>
    4242#include <debug.h>
     43#include <memstr.h>
     44#include <arch.h>
    4345
    4446#define KAS_START_INDEX         PTL0_INDEX(KERNEL_ADDRESS_SPACE_START)
     
    6769//                      memsetb((__address) dst_ptl0, PAGE_SIZE, 0);
    6870//                      memcopy((__address) &src_ptl0[KAS_START_INDEX], (__address) &dst_ptl0[KAS_START_INDEX], KAS_INDICES*sizeof(pte_t));
    69                         memcopy(PA2KA((__address) GET_PTL0_ADDRESS()), (__address) dst_ptl0, PAGE_SIZE);
     71                        memcopy((void *)PA2KA((__address) dst_ptl0), (void *)GET_PTL0_ADDRESS() , PAGE_SIZE);
    7072                        m->ptl0 = (pte_t *) KA2PA((__address) dst_ptl0);
    7173                }
Note: See TracChangeset for help on using the changeset viewer.