Here is a minimal C implementation of a spinlock "lock" operation using GCC's built-in atomics:
#include <stdbool.h>
void spin_lock(bool *l) {
while (__atomic_test_and_set(l, __ATOMIC_ACQUIRE))
;
}
I am concerned…
Here is a minimal C implementation of a spinlock "lock" operation using GCC's built-in atomics:
#include <stdbool.h>
void spin_lock(bool *l) {
while (__atomic_test_and_set(l, __ATOMIC_ACQUIRE))
;
}
I am concerned…
Hello,
forgive me if my question is a litte bit weak in content and linguistic. I'm only a Hobbyist and english is not my nativ.
I'm trying to compile an App from Einstein@Home for AARCH64 using GCC. Einstein@Home is a DC-Projekt using Boinc. The App…
Hello experts,
I have come to having a question.
VFP Benchmark is a benchmark application which was made by a certain Japanese in order to measure ARM VFP performance especially for ARMv7-A and ARMv8-A.
The software can be downloaded from the following link…
Hi Experts,
I was going through the arm v8 mmu page table formation, when it's compared to arm v7 it is completely different.
I could…
Hi ARM expert,
In ARM V7 RM, I saw "This chapter describes the implementation of the ARM Generic Timer as an OPTIONAL extension to an ARMv7-A or ARMv7-R processor implementation.". So, I think it means that a SoC implementation…
I would like to precisely understand the implications of misprogramming the Contiguous bit in VMSAv8-64 translation tables.
I have a hypervisor running at EL2 in the AArch64 execution state, using two-stage memory translation for the guests. At some point…
I'm porting our armv7a-short descriptor OS to LPAE and aarch64. In the short descriptor MMU, the "NS" bit can only be found in the first level of the MMU (I'll call it the SECTION level), meaning that only a single page cannot be tagged as NS, a whole…
Hi !
I'm trying to update my custom kernel, working with short or long descriptor in armv7a to a target supporting armv8.
My current setup uses TTBR0 to point to the PL0 page table and TTBR1 to point to the PL1 page table.
At the moment, I sometimes…
Hi, everyone.
The CPU will receive a access flag fault if we set the access flag = 0. My question is if we always set the access flag to be zero in the fault handler, does the CPU get the value in the memory? For example, the instruction "ldr rd, address…
Assembly code:
.syntax unified
@ --------------------------------
.global main
main:
@ Stack the return address (lr) in addition to a dummy register (ip) to
@ keep the stack 8-byte aligned.
push {ip, lr}
@ Load the…