Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/include/mm/frame.h

    rd99c1d2 r7a0359b  
    4343
    4444#include <typedefs.h>
     45#include <trace.h>
    4546
    4647extern uintptr_t last_frame;
     48
     49NO_TRACE static inline uint32_t physmem_top(void)
     50{
     51        uint32_t physmem;
     52       
     53        asm volatile (
     54                "mfsprg3 %[physmem]\n"
     55                : [physmem] "=r" (physmem)
     56        );
     57       
     58        return physmem;
     59}
    4760
    4861extern void frame_arch_init(void);
Note: See TracChangeset for help on using the changeset viewer.