Files
OrangePi_CM5/include/asm-arm/mmu.h
T

33 lines
534 B
C
Raw Normal View History

2005-04-16 15:20:36 -07:00
#ifndef __ARM_MMU_H
#define __ARM_MMU_H
#ifdef CONFIG_MMU
2005-04-16 15:20:36 -07:00
typedef struct {
2007-05-17 10:19:23 +01:00
#ifdef CONFIG_CPU_HAS_ASID
2005-04-16 15:20:36 -07:00
unsigned int id;
#endif
2006-06-29 20:17:15 +01:00
unsigned int kvm_seq;
2005-04-16 15:20:36 -07:00
} mm_context_t;
2007-05-17 10:19:23 +01:00
#ifdef CONFIG_CPU_HAS_ASID
2005-04-16 15:20:36 -07:00
#define ASID(mm) ((mm)->context.id & 255)
#else
#define ASID(mm) (0)
#endif
#else
/*
* From nommu.h:
* Copyright (C) 2002, David McCullough <davidm@snapgear.com>
* modified for 2.6 by Hyok S. Choi <hyok.choi@samsung.com>
*/
typedef struct {
struct vm_list_struct *vmlist;
unsigned long end_brk;
} mm_context_t;
#endif
2005-04-16 15:20:36 -07:00
#endif