mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-09-12 18:15:06 +00:00
Root ("\"), single, dual and multi-part names are supported. "^" is not supported (not widely used.) Signed-off-by: Rob Bradford <robert.bradford@intel.com>
13 lines
251 B
Rust
13 lines
251 B
Rust
// Copyright © 2019 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
pub mod aml;
|
|
pub mod rsdp;
|
|
pub mod sdt;
|
|
|
|
fn generate_checksum(data: &[u8]) -> u8 {
|
|
(255 - data.iter().fold(0u8, |acc, x| acc.wrapping_add(*x))).wrapping_add(1)
|
|
}
|