Skip to content

Commit 871f6b1

Browse files
josephlrrbradford
authored andcommitted
Fix typos and add comments
Signed-off-by: Joe Richey <[email protected]>
1 parent bffe131 commit 871f6b1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

layout.ld

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ SECTIONS
3232
bss_size = . - bss_start;
3333
}
3434

35-
/* Our stack grows down and is page-algined. TODO: Add stack guard pages. */
35+
/* Our stack grows down and is page-aligned. TODO: Add stack guard pages. */
3636
.stack (NOLOAD) : ALIGN(4K) { . += 64K; }
3737
stack_start = .;
3838
/* ram32.s only maps the first 2 MiB, and that must include the stack. */

src/pvh.rs

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ const XEN_ELFNOTE_PHYS32_ENTRY: u32 = 18;
6767
type Name = [u8; 4];
6868
type Desc = unsafe extern "C" fn();
6969

70+
// We make sure our ELF Note has an alignment of 4 for maximum compatibility.
71+
// Some software (QEMU) calculates padding incorectly if alignment != 4.
7072
#[repr(C, packed(4))]
7173
struct Note {
7274
name_size: u32,

0 commit comments

Comments
 (0)