Skip to content

Commit

Permalink
Bootloader: Begin Disk Access Packet (DAP)
Browse files Browse the repository at this point in the history
Begin support for reading disk in bootsector mode.
  • Loading branch information
corigan01 committed Mar 17, 2024
1 parent 76bdf6b commit 5ea2a34
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bootloader/stage-bootsector/src/disk.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#[repr(packed, C)]
struct DiskAccessPacket {
packet_size: u8,
always_zero: u8,
sectors: u16,
base_ptr: u16,
base_segment: u16,
lba: u64,
}

impl DiskAccessPacket {}
2 changes: 2 additions & 0 deletions bootloader/stage-bootsector/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#![no_std]
#![no_main]

mod disk;
mod tiny_panic;

use core::{arch::global_asm, include_str};

global_asm!(include_str!("init.s"));
Expand Down

0 comments on commit 5ea2a34

Please sign in to comment.