forked from M-Labs/zynq-rs
eth: align DescEntries
This commit is contained in:
parent
f9cc561144
commit
644cc64524
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue