Changeset d1f8a87 in mainline


Ignore:
Timestamp:
2006-03-14T10:42:04Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
06e6805
Parents:
e74cb73
Message:

Allowed userspace to include page.h.

Files:
12 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    re74cb73 rd1f8a87  
    183183
    184184arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in
    185         $(CC) $(DEFS) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@
     185        $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -E -x c $< | grep -v "^\#" > $@
    186186
    187187generic/src/debug/real_map.bin: depend arch/$(ARCH)/_link.ld $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS)
  • arch/amd64/include/mm/page.h

    re74cb73 rd1f8a87  
    3232#include <arch/mm/frame.h>
    3333
     34#define PAGE_WIDTH      FRAME_WIDTH
     35#define PAGE_SIZE       FRAME_SIZE
     36
     37#ifdef KERNEL
     38
    3439#ifndef __ASM__
    3540#  include <mm/page.h>
    3641#  include <arch/types.h>
    3742#endif
    38 
    39 #define PAGE_WIDTH      FRAME_WIDTH
    40 #define PAGE_SIZE       FRAME_SIZE
    4143
    4244#ifndef __ASM__
     
    143145extern void page_arch_init(void);
    144146
    145 #endif
     147#endif /* __ASM__ */
     148
     149#endif /* KERNEL */
    146150
    147151#endif
  • arch/ia32/include/mm/frame.h

    re74cb73 rd1f8a87  
    3030#define __ia32_FRAME_H__
    3131
    32 #include <arch/types.h>
    33 
    3432#define FRAME_WIDTH     12      /* 4K */
    3533#define FRAME_SIZE      (1<<FRAME_WIDTH)
     34
     35
     36#ifdef KERNEL
     37#ifndef __ASM__
     38
     39#include <arch/types.h>
    3640
    3741extern __address last_frame;
     
    3943extern void frame_arch_init(void);
    4044
     45#endif /* __ASM__ */
     46#endif /* KERNEL */
     47
    4148#endif
  • arch/ia32/include/mm/page.h

    re74cb73 rd1f8a87  
    3030#define __ia32_PAGE_H__
    3131
     32#include <arch/mm/frame.h>
     33
    3234#define PAGE_WIDTH      FRAME_WIDTH
    3335#define PAGE_SIZE       FRAME_SIZE
     36
     37#ifdef KERNEL
    3438
    3539#ifndef __ASM__
     
    136140#endif /* __ASM__ */
    137141
     142#endif /* KERNEL */
     143
    138144#endif
  • arch/ia64/include/mm/frame.h

    re74cb73 rd1f8a87  
    3333#define FRAME_SIZE              (1<<FRAME_WIDTH)
    3434
     35#ifdef KERNEL
     36#ifndef __ASM__
     37
    3538extern void frame_arch_init(void);
    36 
    3739
    3840#define ARCH_STACK_FRAMES TWO_FRAMES
    3941
     42#endif /* __ASM__ */
     43#endif /* KERNEL */
     44
    4045#endif
  • arch/ia64/include/mm/page.h

    re74cb73 rd1f8a87  
    3131#define __ia64_PAGE_H__
    3232
     33#include <arch/mm/frame.h>
     34
    3335#define PAGE_SIZE       FRAME_SIZE
    3436#define PAGE_WIDTH      FRAME_WIDTH
     37
     38
     39#ifdef KERNEL
    3540
    3641/** Bit width of the TLB-locked portion of kernel address space. */
     
    266271extern void vhpt_set_record(vhpt_entry_t *v, __address page, asid_t asid, __address frame, int flags);
    267272
     273#endif /* __ASM__ */
     274
     275#endif /* KERNEL */
     276
    268277#endif
    269 
    270 #endif
  • arch/mips32/include/mm/frame.h

    re74cb73 rd1f8a87  
    3333#define FRAME_SIZE              (1<<FRAME_WIDTH)
    3434
     35#ifdef KERNEL
     36#ifndef __ASM__
     37
    3538extern void frame_arch_init(void);
    3639
     40#endif /* __ASM__ */
     41#endif /* KERNEL */
     42
    3743#endif
  • arch/mips32/include/mm/page.h

    re74cb73 rd1f8a87  
    3030#define __mips32_PAGE_H__
    3131
     32#include <arch/mm/frame.h>
     33
    3234#define PAGE_WIDTH      FRAME_WIDTH
    3335#define PAGE_SIZE       FRAME_SIZE
     
    4042#  define PA2KA(x)      ((x) + 0x80000000)
    4143#endif
     44
     45#ifdef KERNEL
    4246
    4347/*
     
    135139#endif /* __ASM__ */
    136140
     141#endif /* KERNEL */
     142
    137143#endif
  • arch/ppc32/include/mm/frame.h

    re74cb73 rd1f8a87  
    3333#define FRAME_SIZE              (1<<FRAME_WIDTH)
    3434
     35#ifdef KERNEL
     36#ifndef __ASM__
     37
    3538extern void frame_arch_init(void);
    3639
     40#endif /* __ASM__ */
     41#endif /* KERNEL */
     42
    3743#endif
  • arch/ppc32/include/mm/page.h

    re74cb73 rd1f8a87  
    3030#define __ppc32_PAGE_H__
    3131
     32#include <arch/mm/frame.h>
     33
    3234#define PAGE_WIDTH      FRAME_WIDTH
    3335#define PAGE_SIZE       FRAME_SIZE
     36
     37#ifdef KERNEL
    3438
    3539#ifndef __ASM__
     
    8589#endif /* __ASM__ */
    8690
     91#endif /* KERNEL */
     92
    8793#endif
  • arch/sparc64/include/mm/frame.h

    re74cb73 rd1f8a87  
    3030#define __sparc64_FRAME_H__
    3131
    32 #include <arch/types.h>
    33 
    3432#define FRAME_WIDTH             13      /* 8K */
    3533#define FRAME_SIZE              (1<<FRAME_WIDTH)
     34
     35#ifdef KERNEL
     36#ifndef __ASM__
     37
     38#include <arch/types.h>
    3639
    3740union frame_address {
     
    4952
    5053#endif
     54#endif
     55
     56#endif
  • arch/sparc64/include/mm/page.h

    re74cb73 rd1f8a87  
    3030#define __sparc64_PAGE_H__
    3131
    32 #include <mm/page.h>
    3332#include <arch/mm/frame.h>
    34 #include <arch/types.h>
    3533
    3634#define PAGE_WIDTH      FRAME_WIDTH
    3735#define PAGE_SIZE       FRAME_SIZE
     36
     37#ifdef KERNEL
     38
     39#include <mm/page.h>
     40#include <arch/types.h>
    3841
    3942#define KA2PA(x)        ((__address) (x))
     
    5457extern void page_arch_init(void);
    5558
     59#endif /* KERNEL */
     60
    5661#endif
Note: See TracChangeset for help on using the changeset viewer.