mirror of
https://github.com/AmbiML/sparrow-kata-full.git
synced 2025-07-15 15:01:45 +00:00
Merge "sel4-sys: add BootInfo serde support"
GitOrigin-RevId: a6191ecf1b2bddbe8c92dbe7d2e5ba0a65824117
This commit is contained in:
parent
a4a1ca9556
commit
c24f1fc9d7
@ -60,3 +60,4 @@ path = "lib.rs"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
static_assertions = "1.1"
|
static_assertions = "1.1"
|
||||||
|
serde = { version = "1.0", default-features = false, features = ["derive"] }
|
||||||
|
@ -93,7 +93,7 @@ impl From<u32> for seL4_RISCV_VMAttributes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
pub enum seL4_ObjectType {
|
pub enum seL4_ObjectType {
|
||||||
seL4_UntypedObject = 0,
|
seL4_UntypedObject = 0,
|
||||||
seL4_TCBObject,
|
seL4_TCBObject,
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
#![allow(bad_style, unused_parens, unused_assignments)]
|
#![allow(bad_style, unused_parens, unused_assignments)]
|
||||||
|
|
||||||
use core::mem::size_of;
|
use core::mem::size_of;
|
||||||
|
use serde::{Deserialize,Serialize};
|
||||||
use static_assertions::*;
|
use static_assertions::*;
|
||||||
|
|
||||||
// NB: this mimics the logic in build.rs
|
// NB: this mimics the logic in build.rs
|
||||||
|
Loading…
Reference in New Issue
Block a user