diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-03-02 10:52:07 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-03-02 10:52:07 +0000 |
commit | be9ce82fc47d82f3653bb4e25cdd9dbec97356ff (patch) | |
tree | 595e258122314a6b6bc21af1afc0631871d9e358 /extras/mini-os/arch/x86/setup.c | |
parent | 6767a71fdd87ab218804a7f63ba71d4c2309b820 (diff) | |
download | xen-be9ce82fc47d82f3653bb4e25cdd9dbec97356ff.tar.gz xen-be9ce82fc47d82f3653bb4e25cdd9dbec97356ff.tar.bz2 xen-be9ce82fc47d82f3653bb4e25cdd9dbec97356ff.zip |
minios: general cleanup of mm.c
Major clean up of mm.c. Added comments, fixed coding style, more
sensible variable names, mark some local functions static etc.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@netronome.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'extras/mini-os/arch/x86/setup.c')
-rw-r--r-- | extras/mini-os/arch/x86/setup.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/extras/mini-os/arch/x86/setup.c b/extras/mini-os/arch/x86/setup.c index 3671fee332..8509079d3e 100644 --- a/extras/mini-os/arch/x86/setup.c +++ b/extras/mini-os/arch/x86/setup.c @@ -63,10 +63,12 @@ void failsafe_callback(void); static shared_info_t *map_shared_info(unsigned long pa) { - if ( HYPERVISOR_update_va_mapping( - (unsigned long)shared_info, __pte(pa | 7), UVMF_INVLPG) ) + int rc; + + if ( (rc = HYPERVISOR_update_va_mapping( + (unsigned long)shared_info, __pte(pa | 7), UVMF_INVLPG)) ) { - printk("Failed to map shared_info!!\n"); + printk("Failed to map shared_info!! rc=%d\n", rc); do_exit(); } return (shared_info_t *)shared_info; |