eth: align DescEntries

master
Astro 3 years ago
parent f9cc561144
commit 644cc64524
  1. 2
      src/eth/rx.rs
  2. 1
      src/eth/tx.rs

@ -11,7 +11,7 @@ pub enum Error {
}
/// Descriptor entry
#[repr(C)]
#[repr(C, align(0x08))]
pub struct DescEntry {
word0: DescWord0,
word1: DescWord1,

@ -4,6 +4,7 @@ use crate::println;
use super::{MTU, regs};
/// Descriptor entry
#[repr(C, align(0x08))]
pub struct DescEntry {
word0: DescWord0,
word1: DescWord1,

Loading…
Cancel
Save