diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-04-19 15:18:56 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-27 14:46:54 +0100 |
commit | 52d4224dd26a601b13e41467703c784e1b14ad9d (patch) | |
tree | ddf1f7ed44d4233453b9a0e8a36bc2d5a7fa5152 /support/tst-support-open-dev-null-range.c | |
parent | ac41cba6b4853b22ce09697dfcfcd901b69f717a (diff) | |
download | glibc-52d4224dd26a601b13e41467703c784e1b14ad9d.tar glibc-52d4224dd26a601b13e41467703c784e1b14ad9d.tar.gz glibc-52d4224dd26a601b13e41467703c784e1b14ad9d.tar.bz2 glibc-52d4224dd26a601b13e41467703c784e1b14ad9d.zip |
cheri: fix posix timers
We need to distinguish timerids that are small integers returned by
the kernel and timerids that are pointers to struct timer. The existing
pointer tagging does not work for CHERI because of the pointer shift.
Simply use the top bit without shift to tag pointers. This still relies
on the top byte ignore of aarch64 (the top byte does not affect the
capability representation) and that pointers are not tagged for other
reasons (like HWASAN).
Note: this is morello specific and does not work for generic cheri.
Diffstat (limited to 'support/tst-support-open-dev-null-range.c')
0 files changed, 0 insertions, 0 deletions