Skip to content

Commit

Permalink
arm: ldrd and strd are atomic for armv8 and above
Browse files Browse the repository at this point in the history
It's only on armv7 where this depends on the LPAE feature.

Change-Id: I0fb960003975ad0773184ed6d1b745a9d2371d1b
  • Loading branch information
jkloetzke authored and kk-infra committed Apr 10, 2024
1 parent ee5d9fd commit b90b7c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/libk/arm/32/atomic-arm-32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ atomic_add_fetch(T *mem, V value)
}

// --------------------------------------------------------------------
IMPLEMENTATION[arm && arm_v6plus && arm_lpae]:
IMPLEMENTATION[arm && arm_v6plus && (arm_lpae || arm_v8plus)]:

#include <cxx/type_traits>

Expand Down Expand Up @@ -216,7 +216,7 @@ atomic_add_fetch(T *mem, V value)
}

// --------------------------------------------------------------------
IMPLEMENTATION[arm && arm_v6plus && mp && !arm_lpae]:
IMPLEMENTATION[arm && arm_v6plus && mp && !(arm_lpae || arm_v8plus)]:

#include <cxx/type_traits>

Expand Down Expand Up @@ -292,7 +292,7 @@ atomic_add_fetch(T *mem, V value)
}

// --------------------------------------------------------------------
IMPLEMENTATION[arm && arm_v6plus && !mp && !arm_lpae]:
IMPLEMENTATION[arm && arm_v6plus && !mp && !(arm_lpae || arm_v8plus)]:

#include <cxx/type_traits>

Expand Down

0 comments on commit b90b7c7

Please sign in to comment.