Changeset c0699467 in mainline for kernel/arch/sparc64/include


Ignore:
Timestamp:
2011-08-09T18:08:23Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b538ca5c
Parents:
3666d386
Message:

do not provide general access to kernel headers from uspace, only allow specific headers to be accessed or shared
externalize headers which serve as kernel/uspace API/ABI into a special tree

Location:
kernel/arch/sparc64/include
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/barrier.h

    r3666d386 rc0699467  
    3737
    3838#include <trace.h>
    39 
    40 #ifdef KERNEL
    41 
    42 #include <typedefs.h>
    43 
    44 #else
    45 
    46 #include <stdint.h>
    47 
    48 #endif
    4939
    5040/*
  • kernel/arch/sparc64/include/elf.h

    r3666d386 rc0699467  
    2727 */
    2828
    29 /** @addtogroup sparc64 
     29/** @addtogroup sparc64
    3030 * @{
    3131 */
     
    3636#define KERN_sparc64_ELF_H_
    3737
    38 #define ELF_MACHINE             EM_SPARCV9
    39 #define ELF_DATA_ENCODING       ELFDATA2MSB
    40 #define ELF_CLASS               ELFCLASS64
     38#define ELF_MACHINE        EM_SPARCV9
     39#define ELF_DATA_ENCODING  ELFDATA2MSB
     40#define ELF_CLASS          ELFCLASS64
    4141
    4242#endif
  • kernel/arch/sparc64/include/istate.h

    r3666d386 rc0699467  
    3737#define KERN_sparc64_ISTATE_H_
    3838
     39#include <trace.h>
     40
     41#ifdef KERNEL
     42
    3943#include <arch/regdef.h>
    4044
    41 #ifdef KERNEL
    42 #include <typedefs.h>
    43 #include <trace.h>
    44 #else
    45 #include <sys/types.h>
    46 #define NO_TRACE
    47 #endif
     45#else /* KERNEL */
     46
     47#include <libarch/regdef.h>
     48
     49#endif /* KERNEL */
    4850
    4951typedef struct istate {
  • kernel/arch/sparc64/include/mm/page.h

    r3666d386 rc0699467  
    5454#define MMU_PAGES_PER_PAGE      (1 << (PAGE_WIDTH - MMU_PAGE_WIDTH))
    5555
    56 #ifdef KERNEL
    57 
    5856#ifndef __ASM__
    5957
     
    7775#endif /* !def __ASM__ */
    7876
    79 #endif /* KERNEL */
    80 
    8177#endif
    8278
  • kernel/arch/sparc64/include/mm/sun4u/frame.h

    r3666d386 rc0699467  
    5252#define FRAME_SIZE              (1 << FRAME_WIDTH)
    5353
    54 #ifdef KERNEL
    5554#ifndef __ASM__
    5655
     
    8079
    8180#endif
    82 #endif
    8381
    8482#endif
  • kernel/arch/sparc64/include/mm/sun4v/frame.h

    r3666d386 rc0699467  
    4242#define FRAME_SIZE              (1 << FRAME_WIDTH)
    4343
    44 #ifdef KERNEL
    4544#ifndef __ASM__
    4645
     
    5251
    5352#endif
    54 #endif
    5553
    5654#endif
  • kernel/arch/sparc64/include/mm/sun4v/page.h

    r3666d386 rc0699467  
    4646#define MMU_PAGES_PER_PAGE      (1 << (PAGE_WIDTH - MMU_PAGE_WIDTH))
    4747
    48 #ifdef KERNEL
    49 
    5048#ifndef __ASM__
    5149
     
    6967#endif /* !def __ASM__ */
    7068
    71 #endif /* KERNEL */
    72 
    7369#endif
    7470
  • kernel/arch/sparc64/include/sun4v/regdef.h

    r3666d386 rc0699467  
    2828 */
    2929
    30 /** @addtogroup sparc64 
     30/** @addtogroup sparc64
    3131 * @{
    3232 */
     
    3737#define KERN_sparc64_sun4v_REGDEF_H_
    3838
    39 #define PSTATE_IE_BIT   (1 << 1)
    40 #define PSTATE_PRIV_BIT (1 << 2)
    41 #define PSTATE_PEF_BIT  (1 << 4)
     39#define TSTATE_CWP_MASK  0x1f
    4240
    43 #define TSTATE_PSTATE_SHIFT     8
    44 #define TSTATE_PRIV_BIT         (PSTATE_PRIV_BIT << TSTATE_PSTATE_SHIFT)
    45 #define TSTATE_CWP_MASK         0x1f
    46 #define TSTATE_IE_BIT           (PSTATE_IE_BIT << TSTATE_PSTATE_SHIFT)
    47 
    48 #define WSTATE_NORMAL(n)        (n)
    49 #define WSTATE_OTHER(n)         ((n) << 3)
    50 
    51 #define TSTATE_PEF_BIT          (PSTATE_PEF_BIT << TSTATE_PSTATE_SHIFT)
     41#define WSTATE_NORMAL(n)  (n)
     42#define WSTATE_OTHER(n)   ((n) << 3)
    5243
    5344#endif
Note: See TracChangeset for help on using the changeset viewer.