mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2026-11-24 23:18:39 -06:00
* Initial commit for ARM64 (header.S & startup.S) * Add Aarch64 interrupt handler * Adapt lib/ to Aarch64 * Small ASM addition for AArch64 * Rewrite Aarch64 system/ - cpuid.c/cpuinfo.c for CPU detection (Qualcomm, Apple, Nvidia, etc) - Add ARM Power State Coordination Interface (PSCI) functions - vmem.c for Virtual Memory MAnagement on ARM64 - Various functions placeholders * Add pseudo-TSC correction for Aarch64 * Add pseudo-tsc measurement for Aarch64 * Add Aarch64 if/elif on basic IO/MMIO/MEM RW functions * Add support for Surface 13 / Snapdragon X KB USB Fix an issue with the XHCI.c drivers with packets > 8 bytes * Add MMIO Serial support for ARM64 * Add ARM64 ASM for block_move & mov_inv_fixed. Fix VM start pointer * Add ARM Serial MMIO configuration * Revert previous commit & reintroduce ARM64 cache functions * Add ACPI MCFG Table description & SMP parsing. This requires careful review/testing to avoid BC issues! * Revert previous commmit and reintroduce relocation and heap change for ARM64 * ARM64 does not support CPU PNS. Use DMI type4 parsing instead. Add SMBIOS v3 support (ARM64 does not support v2) * Fix typo in pci.h * Move Aarch64 load-limit computation from main.c to pmem.c * Add .arm64 to version string. Use PMU for clock computation display. Fix D5 Temp NULL not handled * Add Makefile and linker scripts for aarch64. Set cross-compiler from x86 by default * Attempt to add aarch64 to workflow * Remove a remaining internal debug flag * Correct typos * Fix ARM64 SMP freeze assign heap when RAM is one contiguous region, keep it below 3GB for DMA (RPi5), add DSB before SEV to avoid missed barrier wakeups Sync I-cache with D-cache after program relocation to prevent stale instruction fetch * Validate MADT entry lengths to avoid reading past the table (or looping forever) on malformed ACPI tables * aarch64: add NEON kernels for the vector PRSG tests Tests 3 (bus stress) and 5 (moving inversions, random) now dispatch to 128-bit NEON fill/scan instead of scalar. * Fix ARM64 data abort from the per-second DMI check & fix unbounded strstr() * Fix ARM64 data abort when saving results to USB after a relocation * Update README.md with AArch64 (ARM64) support * aarch64: shrink static string tables, harden MCFG/paging Replace pointer-based name tables with inline char arrays (saves ~1.5KB + relocs) alidate MCFG length/bus ranges, and bound pm_map/vm_map fills against overflows * Add NVIDIA & latest Apple ARM SoC to cpuid.c * Fix stale pointers read by the report writer after a program relocation cpu_model gets a static init (creates its reloc record)SPD type becomes an inline char array
77 lines
2.8 KiB
YAML
77 lines
2.8 KiB
YAML
name: Build and tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "*"
|
|
paths-ignore:
|
|
- "**/README.md"
|
|
pull_request:
|
|
branches:
|
|
- "*"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: ${{ matrix.os }} ${{ matrix.compiler }} ${{ matrix.arch }}
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
compiler: [gcc]
|
|
os: [ubuntu-22.04, ubuntu-24.04]
|
|
arch: [i586, x86_64, la64, aarch64]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install Linux Dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install build-essential gcc-multilib clang libc6-dev-i386-cross dosfstools mtools xorriso -y
|
|
if [ ${{ matrix.arch }} == 'aarch64' ]; then
|
|
sudo apt-get install gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu -y
|
|
fi
|
|
if [ ${{ matrix.arch }} == 'la64' ]; then
|
|
sudo mkdir /opt/LoongArch_Toolchains -p; cd /opt/LoongArch_Toolchains
|
|
sudo wget https://github.com/YongbaoOS/Yongbao-Toolchains/releases/download/2024.8.6/x86_64-cross-tools-loongarch64-binutils_git60d4fed4e364-gcc_14.2.0.tar.xz
|
|
sudo tar -xf x86_64-cross-tools-loongarch64-binutils_git60d4fed4e364-gcc_14.2.0.tar.xz
|
|
sudo ln -s /opt/LoongArch_Toolchains/cross-tools/bin/loongarch64-unknown-linux-gnu-gcc /opt/LoongArch_Toolchains/cross-tools/bin/gcc
|
|
sudo ln -s /opt/LoongArch_Toolchains/cross-tools/bin/loongarch64-unknown-linux-gnu-ld /opt/LoongArch_Toolchains/cross-tools/bin/ld
|
|
sudo ln -s /opt/LoongArch_Toolchains/cross-tools/bin/loongarch64-unknown-linux-gnu-objcopy /opt/LoongArch_Toolchains/cross-tools/bin/objcopy
|
|
fi
|
|
|
|
- name: Clean up
|
|
working-directory: ./
|
|
run: |
|
|
if [ ${{ matrix.arch }} == 'i586' ]; then
|
|
cd build/i586
|
|
elif [ ${{ matrix.arch }} == 'x86_64' ]; then
|
|
cd build/x86_64
|
|
elif [ ${{ matrix.arch }} == 'la64' ]; then
|
|
cd build/loongarch64
|
|
elif [ ${{ matrix.arch }} == 'aarch64' ]; then
|
|
cd build/aarch64
|
|
fi
|
|
make clean
|
|
|
|
- name: Build
|
|
working-directory: ./
|
|
run: |
|
|
if [ ${{ matrix.arch }} == 'i586' ]; then
|
|
cd build/i586
|
|
elif [ ${{ matrix.arch }} == 'x86_64' ]; then
|
|
cd build/x86_64
|
|
elif [ ${{ matrix.arch }} == 'la64' ]; then
|
|
export PATH=/opt/LoongArch_Toolchains/cross-tools/bin/:$PATH
|
|
cd build/loongarch64
|
|
elif [ ${{ matrix.arch }} == 'aarch64' ]; then
|
|
cd build/aarch64
|
|
make -j 2 CC=aarch64-linux-gnu-gcc LD=aarch64-linux-gnu-ld OBJCOPY=aarch64-linux-gnu-objcopy iso
|
|
exit 0
|
|
fi
|
|
make -j 2 CC="${{matrix.compiler}}" iso
|