Skip to content

Commit 202d9f8

Browse files
authored
Fix compiling error when ARM_MTE=1 iso_alloc_internal.h
When ARM_MTE=1, MEMORY_TAGGING has to be 0. Therefore, the TAGGED_PTR_MAX (used by both) has to be defined if MEMORY_TAGGING is defined or when ARM_MTE is.
1 parent f341ce7 commit 202d9f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/iso_alloc_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ assert(sizeof(size_t) >= 64)
254254
#define BIG_ZONE_USER_PAGE_COUNT 2
255255
#define BIG_ZONE_USER_PAGE_COUNT_SHIFT 1
256256

257-
#if MEMORY_TAGGING
257+
#if MEMORY_TAGGING || (ARM_MTE == 1)
258258
#define TAGGED_PTR_MASK 0x00ffffffffffffff
259259
#define IS_TAGGED_PTR_MASK 0xff00000000000000
260260
#define UNTAGGED_BITS 56

0 commit comments

Comments
 (0)