diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-10-28 11:54:49 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-28 11:54:49 -0400 |
commit | d1a76187a5be4f89c6cb19d800cb5fb7aac735c5 (patch) | |
tree | 2fac3ffbfffc7560eeef8364b541d0d7a0057920 /arch/um/include/shared/mem.h | |
parent | c7e78cff6b7518212247fb20b1dc6411540dc9af (diff) | |
parent | 0173a3265b228da319ceb9c1ec6a5682fd1b2d92 (diff) |
Merge commit 'v2.6.28-rc2' into core/locking
Conflicts:
arch/um/include/asm/system.h
Diffstat (limited to 'arch/um/include/shared/mem.h')
-rw-r--r-- | arch/um/include/shared/mem.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/um/include/shared/mem.h b/arch/um/include/shared/mem.h new file mode 100644 index 000000000000..5cd40e99e8d5 --- /dev/null +++ b/arch/um/include/shared/mem.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) | ||
3 | * Licensed under the GPL | ||
4 | */ | ||
5 | |||
6 | #ifndef __MEM_H__ | ||
7 | #define __MEM_H__ | ||
8 | |||
9 | extern int phys_mapping(unsigned long phys, unsigned long long *offset_out); | ||
10 | |||
11 | extern unsigned long uml_physmem; | ||
12 | static inline unsigned long to_phys(void *virt) | ||
13 | { | ||
14 | return(((unsigned long) virt) - uml_physmem); | ||
15 | } | ||
16 | |||
17 | static inline void *to_virt(unsigned long phys) | ||
18 | { | ||
19 | return((void *) uml_physmem + phys); | ||
20 | } | ||
21 | |||
22 | #endif | ||