summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2025-12-10 10:55:28 +0000
committerBrooks Davis <brooks@FreeBSD.org>2025-12-10 10:57:50 +0000
commit80203a27e964403d1d23907089f5c57c60a15c04 (patch)
treed86a94f56318757f6521e94a415f49317d544c47 /include
parentcfae62eac076d43bc94c667084018a21ee8a305f (diff)
Add sys/_align.h replacing machine/_align.h
Define _ALIGNBYTES using sizeof(void *) (no functional change on any existing architecture) which will allow it to work with CHERI were we must align things up to capability alignment. In _ALIGN, replace integer manipulation which does not preserve pointer provenance with a type and provenance preserving builtin. This requires modest changes in code which assumes _ALIGN returns an integer, but those are relatively rare. Reviewed by: kib, markj Effort: CHERI upstreaming Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D53947
Diffstat (limited to 'include')
-rw-r--r--include/arm/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/arm/Makefile b/include/arm/Makefile
index 27fa8dfb9de3..3e7d73fd911f 100644
--- a/include/arm/Makefile
+++ b/include/arm/Makefile
@@ -2,8 +2,7 @@
.PATH: ${SRCTOP}/sys/arm/include ${SRCTOP}/lib/msun/arm
-INCS= _align.h \
- _inttypes.h \
+INCS= _inttypes.h \
_limits.h \
_stdint.h \
_types.h \