Skip to content

Commit

Permalink
Add documentation around issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jlamb-at-polysync committed May 2, 2018
1 parent a0da999 commit f30933e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions libsel4-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,26 @@ pub unsafe extern "C" fn strcpy(
}

#[cfg(target = "arm-sel4-helios")]
/// Number of bits in a `seL4_Word`.
///
/// # Remarks
///
/// Normally this is defined as the following macro:
/// ```
/// #define seL4_WordBits (sizeof(seL4_Word) * 8)
/// ```
///
/// For our `arm-sel4-helios` target see file:
/// `libsel4/sel4_arch_include/aarch32/sel4/sel4_arch/constants.h`
///
/// However due to bindgen not being able to expand functional
/// macros, the type gets ignored.
///
/// For the time being, we just provide the constant here.
///
/// See following issues for more information:
/// - `rust-bindgen/issues/753`
/// - `feL4-dependencies/issues/18`
pub const seL4_WordBits: u32 = 32;

include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

0 comments on commit f30933e

Please sign in to comment.