Changeset bcad855 in mainline for kernel/arch/mips32/src/mm/frame.c


Ignore:
Timestamp:
2012-12-06T23:03:08Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3f69f63d
Parents:
295732b
Message:

Use the SDRAM size as passed from YAMON.

  • Do not probe memory beyond the end of SDRAM.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/mm/frame.c

    r295732b rbcad855  
    4141#include <config.h>
    4242#include <arch/drivers/msim.h>
     43#include <arch/arch.h>
    4344#include <print.h>
    4445
     
    8283        /* MSIM device (dkeyboard) */
    8384        if (frame == (KA2PA(MSIM_KBD_ADDRESS) >> ZERO_PAGE_WIDTH))
     85                return false;
     86#endif
     87
     88#if defined(MACHINE_lmalta) || defined(MACHINE_bmalta)
     89        if (frame >= (sdram_size >> ZERO_PAGE_WIDTH))
    8490                return false;
    8591#endif
Note: See TracChangeset for help on using the changeset viewer.