Skip to content

Commit e916551

Browse files
loader: Make arm64_image_header public
This header is equivalent to the boot_params header found at the top of x86 kernels. We want to make this struct public to use it in a fw_cfg implementation that reads the kernel header for both arm and x86 Signed-off-by: Alex Orozco <alexorozco@google.com>
1 parent fd6a83d commit e916551

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/loader/pe/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ impl std::error::Error for Error {}
7373
#[cfg(target_arch = "aarch64")]
7474
#[repr(C)]
7575
#[derive(Debug, Copy, Clone, Default)]
76+
#[allow(missing_docs)]
7677
// See kernel doc Documentation/arm64/booting.txt for more information.
7778
// All these fields should be little endian.
78-
struct arm64_image_header {
79+
pub struct arm64_image_header {
7980
code0: u32,
8081
code1: u32,
8182
text_offset: u64,

0 commit comments

Comments
 (0)