]> git.puffer.fish Git - mirror/frr.git/commit
lib: Revert usage of asm-code in MTYPE definitions
authorJuergen Werner <juergen@opensourcerouting.org>
Tue, 1 Oct 2019 12:24:20 +0000 (14:24 +0200)
committerJuergen Werner <juergen@opensourcerouting.org>
Tue, 1 Oct 2019 13:23:00 +0000 (15:23 +0200)
commit4d8ebeddc56f49aa0b4d7cec506cab14320e1bb4
tree18fd5db247f7540087ad052727d98c3daaa7e688
parent698603ce6d7e04af945b28141b7c77adb70c4caf
lib: Revert usage of asm-code in MTYPE definitions

The asm-code was interpreted inconsistently for different platforms.
In particular for AArch64 this caused UB, if multiple static MTYPEs
where defined in one file. All static MTYPE_* could point to the same
memory location (namely the first defined MTYPE) OR to their respective
(correct) locations depending on the context of their usage.

Signed-off-by: Juergen Werner <juergen@opensourcerouting.org>
doc/developer/memtypes.rst
lib/memory.h