Skip to content

Commit

Permalink
Fix typos and add comments
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Richey <[email protected]>
  • Loading branch information
josephlr authored and rbradford committed Apr 15, 2020
1 parent bffe131 commit 871f6b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion layout.ld
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ SECTIONS
bss_size = . - bss_start;
}

/* Our stack grows down and is page-algined. TODO: Add stack guard pages. */
/* Our stack grows down and is page-aligned. TODO: Add stack guard pages. */
.stack (NOLOAD) : ALIGN(4K) { . += 64K; }
stack_start = .;
/* ram32.s only maps the first 2 MiB, and that must include the stack. */
Expand Down
2 changes: 2 additions & 0 deletions src/pvh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ const XEN_ELFNOTE_PHYS32_ENTRY: u32 = 18;
type Name = [u8; 4];
type Desc = unsafe extern "C" fn();

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

0 comments on commit 871f6b1

Please sign in to comment.