forked from M-Labs/zynq-rs
1
0
Fork 0

eth: align DescEntries

This commit is contained in:
Astro 2019-09-29 01:39:12 +02:00
parent f9cc561144
commit 644cc64524
2 changed files with 2 additions and 1 deletions

View File

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

View File

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