aboutsummaryrefslogtreecommitdiff
path: root/include/asm-sh/mmu.h
blob: 72f07be6117fa23bbaaeb91d9c8e8a882fbaa57e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __MMU_H
#define __MMU_H

#if !defined(CONFIG_MMU)

struct mm_rblock_struct {
	int	size;
	int	refcount;
	void	*kblock;
};

struct mm_tblock_struct {
	struct mm_rblock_struct *rblock;
	struct mm_tblock_struct *next;
};

typedef struct {
	struct mm_tblock_struct tblock;
	unsigned long		end_brk;
} mm_context_t;

#else

/* Default "unsigned long" context */
typedef unsigned long mm_context_t;

#endif /* CONFIG_MMU */
#endif /* __MMH_H */