]> xenbits.xensource.com Git - xen.git/commitdiff
arm: use plain bool in various headers
authorWei Liu <wei.liu2@citrix.com>
Fri, 15 Sep 2017 09:24:09 +0000 (10:24 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 15 Sep 2017 15:28:07 +0000 (16:28 +0100)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/include/asm-arm/altp2m.h
xen/include/asm-arm/arm64/insn.h
xen/include/asm-arm/domain.h
xen/include/asm-arm/guest_access.h
xen/include/asm-arm/p2m.h

index a87747a2912b30720c9db01128831d494c8ea677..df50cb2f0988f344a5e1bf065157a0a98ece4db6 100644 (file)
 #include <xen/sched.h>
 
 /* Alternate p2m on/off per domain */
-static inline bool_t altp2m_active(const struct domain *d)
+static inline bool altp2m_active(const struct domain *d)
 {
     /* Not implemented on ARM. */
-    return 0;
+    return false;
 }
 
 /* Alternate p2m VCPU */
index 2ec4ad7c7f109ec8ddd6fefa9f1e7c30cb871ef5..4e0d364d412869615bb02a42a841db2eb717989b 100644 (file)
@@ -55,7 +55,7 @@ enum aarch64_insn_branch_type {
 };
 
 #define        __AARCH64_INSN_FUNCS(abbr, mask, val)   \
-static always_inline bool_t aarch64_insn_is_##abbr(u32 code) \
+static always_inline bool aarch64_insn_is_##abbr(u32 code) \
 { return (code & (mask)) == (val); } \
 static always_inline u32 aarch64_insn_get_##abbr##_value(void) \
 { return (val); }
index 8dfc1d1ec28ae77e0d72e28db46941ca9aab9b25..b174c650800ec3736c14da5a33039d9d1a428d80 100644 (file)
@@ -280,7 +280,7 @@ struct arch_vcpu
 
     struct vtimer phys_timer;
     struct vtimer virt_timer;
-    bool_t vtimer_initialized;
+    bool   vtimer_initialized;
 }  __cacheline_aligned;
 
 void vcpu_show_execution_state(struct vcpu *);
index cc73ce820f4e839e210fec15b926b08adc89430c..6796801cfe033e2691848cf734faede98d86fbc1 100644 (file)
@@ -12,7 +12,7 @@ unsigned long raw_copy_from_guest(void *to, const void *from, unsigned len);
 unsigned long raw_clear_guest(void *to, unsigned len);
 
 int access_guest_memory_by_ipa(struct domain *d, paddr_t ipa, void *buf,
-                               uint32_t size, bool_t is_write);
+                               uint32_t size, bool is_write);
 
 #define __raw_copy_to_guest raw_copy_to_guest
 #define __raw_copy_from_guest raw_copy_from_guest
index aa0d60ae3af4a30d72f3a2b1c3b6a97b89a9ef61..bc5bbf0db781d91381bad768f4db155a8e006ff3 100644 (file)
@@ -82,10 +82,10 @@ struct p2m_domain {
      * If true, and an access fault comes in and there is no vm_event listener,
      * pause domain. Otherwise, remove access restrictions.
      */
-    bool_t access_required;
+    bool access_required;
 
     /* Defines if mem_access is in use for the domain. */
-    bool_t mem_access_enabled;
+    bool mem_access_enabled;
 
     /*
      * Default P2M access type for each page in the the domain: new pages,
@@ -338,9 +338,9 @@ static inline int get_page_and_type(struct page_info *page,
 /* get host p2m table */
 #define p2m_get_hostp2m(d) (&(d)->arch.p2m)
 
-static inline bool_t p2m_vm_event_sanity_check(struct domain *d)
+static inline bool p2m_vm_event_sanity_check(struct domain *d)
 {
-    return 1;
+    return true;
 }
 
 /*