This changes STACKALIGN to be type-preserving when operating on
pointers.
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 70173 Build 67056: arc lint + arc unit
Event Timeline
| sys/arm/include/param.h | ||
|---|---|---|
| 50 | Why STACKALIGN needs to be MD then? It is enough to have STACKALIGNBYTES defined in machine/param.h. | |
| sys/arm/include/param.h | ||
|---|---|---|
| 50 | It's only defined on arm/riscv. STACKALIGNBYTES should surely be STACKALIGN_MASK or the like, but that's a different change. | |
| sys/arm/include/param.h | ||
|---|---|---|
| 50 |
Yes, this is why I said that it is enough to have STACKALIGNBYTES in machine/param.h. #ifdef STACKALIGNBYTES #define STACKALIGN ... #endif and it would be immediately have uses at least on amd64 where we align stack after the signal frame. | |
| sys/arm/include/param.h | ||
|---|---|---|
| 50 | I would be happy to move it. I do think it would be nicer on other arches as well. I do wish the STACKALIGNBYTES wasn't the biased value. I'm not sure if we expose this to userland though. :( Let me see if it's feasible to change that to the unbiased value. | |