xen/tmem: Convert the file common/tmem_xen.c to use typesafe MFN
authorJulien Grall <julien.grall@arm.com>
Wed, 21 Feb 2018 14:02:44 +0000 (14:02 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 21 Feb 2018 17:17:39 +0000 (17:17 +0000)
commit7de0a8bc2f708fecdd1193617d2f91bd4b048d22
treea5fbeb0704f90e6a4835b2430c6034fdafccb5b1
parent07f141bfa6c748bdec0fc17aeb9fc20f9c939323
xen/tmem: Convert the file common/tmem_xen.c to use typesafe MFN

The file common/tmem_xen.c is now converted to use typesafe. This is
requiring to override the macro page_to_mfn to make it work with mfn_t.

Note that all variables converted to mfn_t havem there initial value,
when set, switch from 0 to INVALID_MFN. This is fine because the initial
values was always overriden before used.

Also add a couple of missing newlines suggested by Andrew in the code.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/tmem_xen.c