]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: provide mb() macro
authorPhilip Oberfichtner <pro@denx.de>
Fri, 2 Aug 2024 09:25:35 +0000 (11:25 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 3 Sep 2024 15:12:00 +0000 (09:12 -0600)
commit3eb7f46a3c40b59aa6f73c3937049421514cca34
treef889a15b0225c99d706562f58bfe02f191811b74
parenta70d991212c9684e09ed80ece69ce1ff7bfd9f08
x86: provide mb() macro

Implement a x86 memory barrier mb(). Furthermore, remove the previously
used mfence() function, which does the same thing.

The mb() macro is now equivalent to Linux (v6.9):
linux/arch/x86/include/asm/barrier.h

Signed-off-by: Philip Oberfichtner <pro@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/mp_init.c
arch/x86/include/asm/cpu.h
arch/x86/include/asm/io.h