Subversion Repositories HelenOS

Rev

Rev 2105 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2105 Rev 2141
Line 35... Line 35...
35
#ifndef KERN_sparc64_PAGE_H_
35
#ifndef KERN_sparc64_PAGE_H_
36
#define KERN_sparc64_PAGE_H_
36
#define KERN_sparc64_PAGE_H_
37
 
37
 
38
#include <arch/mm/frame.h>
38
#include <arch/mm/frame.h>
39
 
39
 
-
 
40
/*
-
 
41
 * On the TLB and TSB level, we still use 8K pages, which are supported by the
-
 
42
 * MMU.
-
 
43
 */
-
 
44
#define MMU_PAGE_WIDTH  MMU_FRAME_WIDTH
-
 
45
#define MMU_PAGE_SIZE   MMU_FRAME_SIZE
-
 
46
 
-
 
47
/*
-
 
48
 * On the page table level, we use 16K pages. 16K pages are not supported by
-
 
49
 * the MMU but we emulate them with pairs of 8K pages.
-
 
50
 */
40
#define PAGE_WIDTH  FRAME_WIDTH
51
#define PAGE_WIDTH  FRAME_WIDTH
41
#define PAGE_SIZE   FRAME_SIZE
52
#define PAGE_SIZE   FRAME_SIZE
42
 
53
 
-
 
54
#define MMU_PAGES_PER_PAGE  (1 << (PAGE_WIDTH - MMU_PAGE_WIDTH))
-
 
55
 
-
 
56
/*
-
 
57
 * With 16K pages, there is only one page color.
-
 
58
 */
43
#define PAGE_COLOR_BITS 1   /**< 14 - 13; 2^14 == 16K == alias boundary. */
59
#define PAGE_COLOR_BITS 0   /**< 14 - 14; 2^14 == 16K == alias boundary. */
44
 
60
 
45
#ifdef KERNEL
61
#ifdef KERNEL
46
 
62
 
47
#ifndef __ASM__
63
#ifndef __ASM__
48
 
64