Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / src / linux-headers-3.13.0-24 / arch / frv / include / asm / | server ip : 104.21.89.46 your ip : 108.162.216.216 H O M E |
Filename | /usr/src/linux-headers-3.13.0-24/arch/frv/include/asm/mmu_context.h |
Size | 1.38 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:50 |
Last modified | 20-Jan-2014 10:40 |
Last accessed | 06-Jul-2025 22:02 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
/* mmu_context.h: MMU context management routines
*
* Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
* Written by David Howells ([email protected])
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
#ifndef _ASM_MMU_CONTEXT_H
#define _ASM_MMU_CONTEXT_H
#include <asm/setup.h>
#include <asm/page.h>
#include <asm/pgalloc.h>
#include <asm-generic/mm_hooks.h>
static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
{
}
#ifdef CONFIG_MMU
extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
extern void change_mm_context(mm_context_t *old, mm_context_t *ctx, pgd_t *_pgd);
extern void destroy_context(struct mm_struct *mm);
#else
#define init_new_context(tsk, mm) ({ 0; })
#define change_mm_context(old, ctx, _pml4) do {} while(0)
#define destroy_context(mm) do {} while(0)
#endif
#define switch_mm(prev, next, tsk) \
do { \
if (prev != next) \
change_mm_context(&prev->context, &next->context, next->pgd); \
} while(0)
#define activate_mm(prev, next) \
do { \
change_mm_context(&prev->context, &next->context, next->pgd); \
} while(0)
#define deactivate_mm(tsk, mm) \
do { \
} while(0)
#endif
*
* Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
* Written by David Howells ([email protected])
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
#ifndef _ASM_MMU_CONTEXT_H
#define _ASM_MMU_CONTEXT_H
#include <asm/setup.h>
#include <asm/page.h>
#include <asm/pgalloc.h>
#include <asm-generic/mm_hooks.h>
static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
{
}
#ifdef CONFIG_MMU
extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
extern void change_mm_context(mm_context_t *old, mm_context_t *ctx, pgd_t *_pgd);
extern void destroy_context(struct mm_struct *mm);
#else
#define init_new_context(tsk, mm) ({ 0; })
#define change_mm_context(old, ctx, _pml4) do {} while(0)
#define destroy_context(mm) do {} while(0)
#endif
#define switch_mm(prev, next, tsk) \
do { \
if (prev != next) \
change_mm_context(&prev->context, &next->context, next->pgd); \
} while(0)
#define activate_mm(prev, next) \
do { \
change_mm_context(&prev->context, &next->context, next->pgd); \
} while(0)
#define deactivate_mm(tsk, mm) \
do { \
} while(0)
#endif