mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
xous-rs: Remove arm assembly code
It was not used and it probably won't get used in the future Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
This commit is contained in:
parent
ced2502559
commit
054d4831db
4 changed files with 2 additions and 24 deletions
|
|
@ -9,7 +9,7 @@ set -euxo pipefail
|
||||||
crate=xous-kernel
|
crate=xous-kernel
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: $0 [-a <riscv|arm>]"
|
echo "Usage: $0 [-a riscv]"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -47,13 +47,6 @@ case $arch in
|
||||||
ar crs bin/riscv64gc-unknown-none-elf.a bin/$crate.o
|
ar crs bin/riscv64gc-unknown-none-elf.a bin/$crate.o
|
||||||
;;
|
;;
|
||||||
|
|
||||||
arm)
|
|
||||||
rm -f bin/arm*.a
|
|
||||||
|
|
||||||
arm-none-eabi-gcc -ggdb3 -c -march=armv7-a src/arch/arm/asm.S -o bin/$crate.o
|
|
||||||
ar crs bin/armv7a-unknown-xous-elf.a bin/$crate.o
|
|
||||||
;;
|
|
||||||
|
|
||||||
default)
|
default)
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -8,7 +8,7 @@ fn main() {
|
||||||
let target = env::var("TARGET").unwrap();
|
let target = env::var("TARGET").unwrap();
|
||||||
let name = env::var("CARGO_PKG_NAME").unwrap();
|
let name = env::var("CARGO_PKG_NAME").unwrap();
|
||||||
|
|
||||||
if target.starts_with("riscv") || target.starts_with("arm") {
|
if target.starts_with("riscv") {
|
||||||
fs::copy(
|
fs::copy(
|
||||||
format!("bin/{}.a", target),
|
format!("bin/{}.a", target),
|
||||||
out_dir.join(format!("lib{}.a", name)),
|
out_dir.join(format!("lib{}.a", name)),
|
||||||
|
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
.global arm_cache_flush
|
|
||||||
arm_cache_flush:
|
|
||||||
dsb
|
|
||||||
isb
|
|
||||||
|
|
||||||
# Return
|
|
||||||
bx lr
|
|
||||||
|
|
||||||
.global __aeabi_unwind_cpp_pr0
|
|
||||||
__aeabi_unwind_cpp_pr0:
|
|
||||||
b __aeabi_unwind_cpp_pr0
|
|
||||||
|
|
||||||
.global __aeabi_unwind_cpp_pr1
|
|
||||||
__aeabi_unwind_cpp_pr1:
|
|
||||||
b __aeabi_unwind_cpp_pr1
|
|
||||||
Loading…
Reference in a new issue