Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 966 → Rev 967

/kernel/trunk/Makefile
182,7 → 182,7
-makedepend $(DEFS) $(CFLAGS) -f - $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
 
arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in
$(CC) $(DEFS) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@
$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -E -x c $< | grep -v "^\#" > $@
 
generic/src/debug/real_map.bin: depend arch/$(ARCH)/_link.ld $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS)
$(OBJCOPY) -I binary -O $(BFD_NAME) -B $(BFD_ARCH) --prefix-sections=symtab Makefile generic/src/debug/empty_map.o
/kernel/trunk/arch/sparc64/include/mm/frame.h
29,11 → 29,14
#ifndef __sparc64_FRAME_H__
#define __sparc64_FRAME_H__
 
#include <arch/types.h>
 
#define FRAME_WIDTH 13 /* 8K */
#define FRAME_SIZE (1<<FRAME_WIDTH)
 
#ifdef KERNEL
#ifndef __ASM__
 
#include <arch/types.h>
 
union frame_address {
__address address;
struct {
48,3 → 51,6
extern void frame_arch_init(void);
 
#endif
#endif
 
#endif
/kernel/trunk/arch/sparc64/include/mm/page.h
29,13 → 29,16
#ifndef __sparc64_PAGE_H__
#define __sparc64_PAGE_H__
 
#include <mm/page.h>
#include <arch/mm/frame.h>
#include <arch/types.h>
 
#define PAGE_WIDTH FRAME_WIDTH
#define PAGE_SIZE FRAME_SIZE
 
#ifdef KERNEL
 
#include <mm/page.h>
#include <arch/types.h>
 
#define KA2PA(x) ((__address) (x))
#define PA2KA(x) ((__address) (x))
 
53,4 → 56,6
 
extern void page_arch_init(void);
 
#endif /* KERNEL */
 
#endif
/kernel/trunk/arch/ia64/include/mm/frame.h
32,9 → 32,14
#define FRAME_WIDTH 14 /* 16K */
#define FRAME_SIZE (1<<FRAME_WIDTH)
 
#ifdef KERNEL
#ifndef __ASM__
 
extern void frame_arch_init(void);
 
 
#define ARCH_STACK_FRAMES TWO_FRAMES
 
#endif /* __ASM__ */
#endif /* KERNEL */
 
#endif
/kernel/trunk/arch/ia64/include/mm/page.h
30,9 → 30,14
#ifndef __ia64_PAGE_H__
#define __ia64_PAGE_H__
 
#include <arch/mm/frame.h>
 
#define PAGE_SIZE FRAME_SIZE
#define PAGE_WIDTH FRAME_WIDTH
 
 
#ifdef KERNEL
 
/** Bit width of the TLB-locked portion of kernel address space. */
#define KERNEL_PAGE_WIDTH 28 /* 256M */
 
265,6 → 270,8
extern bool vhpt_compare(__address page, asid_t asid, vhpt_entry_t *v);
extern void vhpt_set_record(vhpt_entry_t *v, __address page, asid_t asid, __address frame, int flags);
 
#endif
#endif /* __ASM__ */
 
#endif /* KERNEL */
 
#endif
/kernel/trunk/arch/ppc32/include/mm/frame.h
32,6 → 32,12
#define FRAME_WIDTH 12 /* 4K */
#define FRAME_SIZE (1<<FRAME_WIDTH)
 
#ifdef KERNEL
#ifndef __ASM__
 
extern void frame_arch_init(void);
 
#endif /* __ASM__ */
#endif /* KERNEL */
 
#endif
/kernel/trunk/arch/ppc32/include/mm/page.h
29,9 → 29,13
#ifndef __ppc32_PAGE_H__
#define __ppc32_PAGE_H__
 
#include <arch/mm/frame.h>
 
#define PAGE_WIDTH FRAME_WIDTH
#define PAGE_SIZE FRAME_SIZE
 
#ifdef KERNEL
 
#ifndef __ASM__
# define KA2PA(x) (((__address) (x)) - 0x80000000)
# define PA2KA(x) (((__address) (x)) + 0x80000000)
84,4 → 88,6
 
#endif /* __ASM__ */
 
#endif /* KERNEL */
 
#endif
/kernel/trunk/arch/amd64/include/mm/page.h
31,14 → 31,16
 
#include <arch/mm/frame.h>
 
#define PAGE_WIDTH FRAME_WIDTH
#define PAGE_SIZE FRAME_SIZE
 
#ifdef KERNEL
 
#ifndef __ASM__
# include <mm/page.h>
# include <arch/types.h>
#endif
 
#define PAGE_WIDTH FRAME_WIDTH
#define PAGE_SIZE FRAME_SIZE
 
#ifndef __ASM__
# define KA2PA(x) (((__address) (x)) - 0xffffffff80000000)
# define PA2KA(x) (((__address) (x)) + 0xffffffff80000000)
142,6 → 144,8
 
extern void page_arch_init(void);
 
#endif
#endif /* __ASM__ */
 
#endif /* KERNEL */
 
#endif
/kernel/trunk/arch/mips32/include/mm/frame.h
32,6 → 32,12
#define FRAME_WIDTH 14 /* 16K */
#define FRAME_SIZE (1<<FRAME_WIDTH)
 
#ifdef KERNEL
#ifndef __ASM__
 
extern void frame_arch_init(void);
 
#endif /* __ASM__ */
#endif /* KERNEL */
 
#endif
/kernel/trunk/arch/mips32/include/mm/page.h
29,6 → 29,8
#ifndef __mips32_PAGE_H__
#define __mips32_PAGE_H__
 
#include <arch/mm/frame.h>
 
#define PAGE_WIDTH FRAME_WIDTH
#define PAGE_SIZE FRAME_SIZE
 
40,6 → 42,8
# define PA2KA(x) ((x) + 0x80000000)
#endif
 
#ifdef KERNEL
 
/*
* Implementation of generic 4-level page table interface.
* NOTE: this implementation is under construction
134,4 → 138,6
 
#endif /* __ASM__ */
 
#endif /* KERNEL */
 
#endif
/kernel/trunk/arch/ia32/include/mm/frame.h
29,13 → 29,20
#ifndef __ia32_FRAME_H__
#define __ia32_FRAME_H__
 
#include <arch/types.h>
 
#define FRAME_WIDTH 12 /* 4K */
#define FRAME_SIZE (1<<FRAME_WIDTH)
 
 
#ifdef KERNEL
#ifndef __ASM__
 
#include <arch/types.h>
 
extern __address last_frame;
 
extern void frame_arch_init(void);
 
#endif /* __ASM__ */
#endif /* KERNEL */
 
#endif
/kernel/trunk/arch/ia32/include/mm/page.h
29,9 → 29,13
#ifndef __ia32_PAGE_H__
#define __ia32_PAGE_H__
 
#include <arch/mm/frame.h>
 
#define PAGE_WIDTH FRAME_WIDTH
#define PAGE_SIZE FRAME_SIZE
 
#ifdef KERNEL
 
#ifndef __ASM__
# define KA2PA(x) (((__address) (x)) - 0x80000000)
# define PA2KA(x) (((__address) (x)) + 0x80000000)
135,4 → 139,6
 
#endif /* __ASM__ */
 
#endif /* KERNEL */
 
#endif