Changeset 1b478f6 in mainline for kernel/arch/sparc64


Ignore:
Timestamp:
2011-12-14T23:54:17Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c72dc15
Parents:
464a52f
Message:

Add km_is_non_identity().

Location:
kernel/arch/sparc64
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/mm/sun4u/km.h

    r464a52f r1b478f6  
    3636#define KERN_sparc64_sun4u_KM_H_
    3737
     38#include <typedefs.h>
     39
    3840/*
    3941 * Be conservative and assume the 44-bit virtual address width as found
     
    5355extern void km_identity_arch_init(void);
    5456extern void km_non_identity_arch_init(void);
     57extern bool km_is_non_identity_arch(uintptr_t);
    5558
    5659#endif
  • kernel/arch/sparc64/include/mm/sun4v/km.h

    r464a52f r1b478f6  
    3636#define KERN_sparc64_sun4v_KM_H_
    3737
     38#include <typedefs.h>
     39
    3840/*
    3941 * Do not use the 4 GiB area on either side of the VA hole to meet the
     
    4951extern void km_identity_arch_init(void);
    5052extern void km_non_identity_arch_init(void);
     53extern bool km_is_non_identity_arch(uintptr_t);
    5154
    5255#endif
  • kernel/arch/sparc64/src/mm/sun4u/km.c

    r464a52f r1b478f6  
    3434#include <mm/km.h>
    3535#include <config.h>
     36#include <typedefs.h>
     37#include <macros.h>
    3638
    3739void km_identity_arch_init(void)
     
    4749}
    4850
     51bool km_is_non_identity_arch(uintptr_t addr)
     52{
     53        return iswithin(KM_SPARC64_US_NON_IDENTITY_START,
     54            KM_SPARC64_US_NON_IDENTITY_SIZE, addr, 1);
     55}
     56
    4957/** @}
    5058 */
  • kernel/arch/sparc64/src/mm/sun4v/km.c

    r464a52f r1b478f6  
    3434#include <mm/km.h>
    3535#include <config.h>
     36#include <typedefs.h>
     37#include <macros.h>
    3638
    3739void km_identity_arch_init(void)
     
    4749}
    4850
     51bool km_is_non_identity_arch(uintptr_t addr)
     52{
     53        return iswithin(KM_SPARC64_T1_NON_IDENTITY_START,
     54            KM_SPARC64_T1_NON_IDENTITY_SIZE, addr, 1);
     55}
     56
    4957/** @}
    5058 */
Note: See TracChangeset for help on using the changeset viewer.