]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix mips build after introduction of MD definitions of atomic_load_64
authorkib <kib@FreeBSD.org>
Thu, 21 Dec 2017 23:39:00 +0000 (23:39 +0000)
committerkib <kib@FreeBSD.org>
Thu, 21 Dec 2017 23:39:00 +0000 (23:39 +0000)
commitda006c3e5f61d6adae57e901ce0907c44ed77a1d
tree39d115544400986a09ab787a7762eed65b0b180c
parentde4f3129c0cddd39f1c0e4a216b44a8e504ee10c
Fix mips build after introduction of MD definitions of atomic_load_64
and atomic_store_64.

The MD definitions are provided for LP64 only, while mips also uses
them for 32bit and n32.  Only define mips variants for 32bit and n32
and change the syntax to match common definitions.

Note that this commit does not fix 32bit asm implementation to follow
new KBI, this will be fixed later.  The functions are only used for 8
byte ddb accesses so the known bug does not prevent normal kernel
operations.

Sponsored by: The FreeBSD Foundation
sys/mips/include/atomic.h
sys/mips/mips/db_interface.c