Changeset 9c0a9b3 in mainline for src/mm/vm.c


Ignore:
Timestamp:
2005-08-30T19:44:27Z (19 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.