diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2013-02-19 08:59:19 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-02-19 22:02:34 -0500 |
commit | 3216dceb31c08be08ea98814a9ca5775fa680389 (patch) | |
tree | 06f0ec957f047a01176b4514c03782fc923bd747 /drivers/tty/hvc/hvc_xen.c | |
parent | e7e44e444876478d50630f57b0c31d29f6725020 (diff) |
xen: introduce xen_remap, use it instead of ioremap
ioremap can't be used to map ring pages on ARM because it uses device
memory caching attributes (MT_DEVICE*).
Introduce a Xen specific abstraction to map ring pages, called
xen_remap, that is defined as ioremap on x86 (no behavioral changes).
On ARM it explicitly calls __arm_ioremap with the right caching
attributes: MT_MEMORY.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/tty/hvc/hvc_xen.c')
-rw-r--r-- | drivers/tty/hvc/hvc_xen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/hvc/hvc_xen.c b/drivers/tty/hvc/hvc_xen.c index 19843ec3f80a..682210d778bd 100644 --- a/drivers/tty/hvc/hvc_xen.c +++ b/drivers/tty/hvc/hvc_xen.c | |||
@@ -230,7 +230,7 @@ static int xen_hvm_console_init(void) | |||
230 | if (r < 0 || v == 0) | 230 | if (r < 0 || v == 0) |
231 | goto err; | 231 | goto err; |
232 | mfn = v; | 232 | mfn = v; |
233 | info->intf = ioremap(mfn << PAGE_SHIFT, PAGE_SIZE); | 233 | info->intf = xen_remap(mfn << PAGE_SHIFT, PAGE_SIZE); |
234 | if (info->intf == NULL) | 234 | if (info->intf == NULL) |
235 | goto err; | 235 | goto err; |
236 | info->vtermno = HVC_COOKIE; | 236 | info->vtermno = HVC_COOKIE; |