Ignore:
Timestamp:
2006-07-13T17:32:38Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a5f76758
Parents:
63cda71
Message:

Remove OpenFirmware calls from kernel/ entirely.

Switch the sparc64 port to use bootinfo.

Copy memcpy from boot/ to sparc64 kernel/ and
adjust it for memcpy_from/to_uspace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/mm/memory_init.c

    r63cda71 r94d614e  
    3434
    3535#include <arch/mm/memory_init.h>
    36 #include <genarch/ofw/memory_init.h>
     36#include <arch/boot/boot.h>
    3737#include <typedefs.h>
    3838
     39/** Return total size of available memory in bytes.
     40 *
     41 * @return Size of available memory in bytes.
     42 */
    3943size_t get_memory_size(void)
    4044{
    41         return ofw_get_memory_size();
     45        return bootinfo.memmap.total;
    4246}
    4347
    4448/** @}
    4549 */
    46 
Note: See TracChangeset for help on using the changeset viewer.