Skip to content

Commit

Permalink
x86: make clear_fixmap() available on 64-bit as well
Browse files Browse the repository at this point in the history
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Apr 25, 2008
1 parent b69d398 commit 3ec9678
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
8 changes: 8 additions & 0 deletions include/asm-x86/fixmap.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#ifndef _ASM_FIXMAP_H
#define _ASM_FIXMAP_H

#ifdef CONFIG_X86_32
# include "fixmap_32.h"
#else
# include "fixmap_64.h"
#endif

#define clear_fixmap(idx) \
__set_fixmap(idx, 0, __pgprot(0))

#endif
7 changes: 2 additions & 5 deletions include/asm-x86/fixmap_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* Support of BIGMEM added by Gerhard Wichert, Siemens AG, July 1999
*/

#ifndef _ASM_FIXMAP_H
#define _ASM_FIXMAP_H
#ifndef _ASM_FIXMAP_32_H
#define _ASM_FIXMAP_32_H


/* used by vmalloc.c, vsyscall.lds.S.
Expand Down Expand Up @@ -121,9 +121,6 @@ extern void reserve_top_address(unsigned long reserve);
#define set_fixmap_nocache(idx, phys) \
__set_fixmap(idx, phys, PAGE_KERNEL_NOCACHE)

#define clear_fixmap(idx) \
__set_fixmap(idx, 0, __pgprot(0))

#define FIXADDR_TOP ((unsigned long)__FIXADDR_TOP)

#define __FIXADDR_SIZE (__end_of_permanent_fixed_addresses << PAGE_SHIFT)
Expand Down
4 changes: 2 additions & 2 deletions include/asm-x86/fixmap_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* Copyright (C) 1998 Ingo Molnar
*/

#ifndef _ASM_FIXMAP_H
#define _ASM_FIXMAP_H
#ifndef _ASM_FIXMAP_64_H
#define _ASM_FIXMAP_64_H

#include <linux/kernel.h>
#include <asm/apicdef.h>
Expand Down

0 comments on commit 3ec9678

Please sign in to comment.