diff options
author | Feng Tang <feng.tang@intel.com> | 2010-09-13 07:08:54 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-10-08 08:01:46 (GMT) |
commit | 5a47c7dae861c3ca3edf178546641909851bf715 (patch) | |
tree | 73073b5c0b69ca7f48d61f6d6f01e1c5effbd1f7 /crypto/khazad.c | |
parent | 55572b293b3a5929e8c54bc91d14ae6264186bf6 (diff) | |
download | linux-fsl-qoriq-5a47c7dae861c3ca3edf178546641909851bf715.tar.xz |
x86: Add two helper macros for fixed address mapping
Sometimes fixmap will be used to map an physical address which
is not PAGE align, so to use it we need first map it and then
add the address offset to the mapped fixed address. These 2 new
helpers are suggested by Ingo Molnar to make the process
simpler.
For a physicall address like "phys", a directly usable virtual
address can be get by
virt = (void *)set_fixmap_offset(fixed_idx, phys);
or
virt = (void *)set_fixmap_offset_nocache(fixed_idx, phys);
(depends on whether the physical address is cachable or not).
Signed-off-by: Feng Tang <feng.tang@intel.com>
Cc: alan@linux.intel.com
Cc: greg@kroah.com
Cc: x86@kernel.org
LKML-Reference: <1284361736-23011-3-git-send-email-feng.tang@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'crypto/khazad.c')
0 files changed, 0 insertions, 0 deletions