bpf: Use armv7 instead of arm

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
pull/311/head
Dave Tucker 3 years ago
parent bbb5d7124a
commit f7539ebc68

@ -4,7 +4,7 @@
#[cfg(bpf_target_arch = "x86_64")] #[cfg(bpf_target_arch = "x86_64")]
mod x86_64; mod x86_64;
#[cfg(bpf_target_arch = "arm")] #[cfg(bpf_target_arch = "armv7")]
mod armv7; mod armv7;
#[cfg(bpf_target_arch = "aarch64")] #[cfg(bpf_target_arch = "aarch64")]
@ -17,7 +17,7 @@ mod gen {
#[cfg(bpf_target_arch = "x86_64")] #[cfg(bpf_target_arch = "x86_64")]
pub use super::x86_64::*; pub use super::x86_64::*;
#[cfg(bpf_target_arch = "arm")] #[cfg(bpf_target_arch = "armv7")]
pub use super::armv7::*; pub use super::armv7::*;
#[cfg(bpf_target_arch = "aarch64")] #[cfg(bpf_target_arch = "aarch64")]

@ -20,7 +20,7 @@ mod ad {
pub type c_int = i32; pub type c_int = i32;
pub type c_uint = u32; pub type c_uint = u32;
#[cfg(bpf_target_arch = "arm")] #[cfg(bpf_target_arch = "armv7")]
pub type c_char = super::c_uchar; pub type c_char = super::c_uchar;
#[cfg(bpf_target_arch = "aarch64")] #[cfg(bpf_target_arch = "aarch64")]

@ -116,7 +116,7 @@ impl<T> FromPtRegs for *const T {
} }
} }
#[cfg(bpf_target_arch = "arm")] #[cfg(bpf_target_arch = "armv7")]
impl<T> FromPtRegs for *const T { impl<T> FromPtRegs for *const T {
fn from_argument(ctx: &pt_regs, n: usize) -> Option<Self> { fn from_argument(ctx: &pt_regs, n: usize) -> Option<Self> {
if n <= 6 { if n <= 6 {
@ -165,7 +165,7 @@ impl<T> FromPtRegs for *mut T {
} }
} }
#[cfg(bpf_target_arch = "arm")] #[cfg(bpf_target_arch = "armv7")]
impl<T> FromPtRegs for *mut T { impl<T> FromPtRegs for *mut T {
fn from_argument(ctx: &pt_regs, n: usize) -> Option<Self> { fn from_argument(ctx: &pt_regs, n: usize) -> Option<Self> {
if n <= 6 { if n <= 6 {
@ -217,7 +217,7 @@ macro_rules! impl_from_pt_regs {
} }
} }
#[cfg(bpf_target_arch = "arm")] #[cfg(bpf_target_arch = "armv7")]
impl FromPtRegs for $type { impl FromPtRegs for $type {
fn from_argument(ctx: &pt_regs, n: usize) -> Option<Self> { fn from_argument(ctx: &pt_regs, n: usize) -> Option<Self> {
if n <= 6 { if n <= 6 {

Loading…
Cancel
Save