define bcmp

other solution might be defining a non-linux target
This commit is contained in:
Astro 2019-08-05 14:44:23 +02:00
parent dbe04de735
commit 2db35d063f

View File

@ -21,6 +21,11 @@ mod eth;
use crate::regs::{RegisterR, RegisterW};
use crate::cortex_a9::{asm, regs::*, mmu};
#[no_mangle]
pub unsafe extern "C" fn bcmp(s1: *const u8, s2: *const u8, n: usize) -> i32 {
compiler_builtins::mem::memcmp(s1, s2, n)
}
extern "C" {
static mut __bss_start: u32;
static mut __bss_end: u32;