Changeset c0699467 in mainline for kernel/arch/mips64


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/mips64
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips64/include/context_offset.h

    r3666d386 rc0699467  
    6363#ifdef __ASM__
    6464
     65#ifdef KERNEL
     66
    6567#include <arch/asm/regname.h>
    6668
    67 # ctx: address of the structure with saved context
     69#else /* KERNEL */
     70
     71#include <libarch/regname.h>
     72
     73#endif /* KERNEL */
     74
     75/* ctx: address of the structure with saved context */
    6876.macro CONTEXT_SAVE_ARCH_CORE ctx:req
    6977        sd $s0, OFFSET_S0(\ctx)
     
    121129.endm
    122130
    123 # ctx: address of the structure with saved context
     131/* ctx: address of the structure with saved context */
    124132.macro CONTEXT_RESTORE_ARCH_CORE ctx:req
    125133        ld $s0, OFFSET_S0(\ctx)
  • kernel/arch/mips64/include/cp0.h

    r3666d386 rc0699467  
    3535#ifndef KERN_mips64_CP0_H_
    3636#define KERN_mips64_CP0_H_
    37 
    38 #ifdef KERNEL
    39 
    40 #include <typedefs.h>
    41 
    42 #else
    43 
    44 #include <sys/types.h>
    45 
    46 #endif
    4737
    4838#define cp0_status_ie_enabled_bit     (1 << 0)
  • kernel/arch/mips64/include/istate.h

    r3666d386 rc0699467  
    3636#define KERN_mips64_ISTATE_H_
    3737
    38 #include <arch/cp0.h>
     38#include <trace.h>
    3939
    4040#ifdef KERNEL
    4141
    42 #include <typedefs.h>
    43 #include <trace.h>
     42#include <arch/cp0.h>
    4443
    45 #else
     44#else /* KERNEL */
    4645
    47 #include <sys/types.h>
    48 #define NO_TRACE
     46#include <libarch/cp0.h>
    4947
    50 #endif
     48#endif /* KERNEL */
    5149
    5250typedef struct istate {
  • kernel/arch/mips64/include/mm/frame.h

    r3666d386 rc0699467  
    3939#define FRAME_SIZE   (1 << FRAME_WIDTH)
    4040
    41 #ifdef KERNEL
    4241#ifndef __ASM__
    4342
     
    4645
    4746#endif /* __ASM__ */
    48 #endif /* KERNEL */
    4947
    5048#endif
  • kernel/arch/mips64/include/mm/page.h

    r3666d386 rc0699467  
    5050#endif
    5151
    52 #ifdef KERNEL
    5352#ifndef __ASM__
    5453
     
    5655
    5756#endif /* __ASM__ */
    58 #endif /* KERNEL */
    5957
    6058#endif
  • kernel/arch/mips64/src/mips64.c

    r3666d386 rc0699467  
    4141#include <memstr.h>
    4242#include <proc/thread.h>
    43 #include <proc/uarg.h>
     43#include <abi/proc/uarg.h>
    4444#include <print.h>
    4545#include <console/console.h>
     
    5252#include <arch/debugger.h>
    5353#include <genarch/fb/fb.h>
    54 #include <genarch/fb/visuals.h>
     54#include <abi/fb/visuals.h>
    5555#include <genarch/drivers/dsrln/dsrlnin.h>
    5656#include <genarch/drivers/dsrln/dsrlnout.h>
Note: See TracChangeset for help on using the changeset viewer.