mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
Allow cxgbe(4) to be built on i386. Driver attach will succeed only on a subset
of i386 systems.
This commit is contained in:
parent
cddd227c5f
commit
88d7f6bddf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277226
@ -668,6 +668,14 @@ t4_attach(device_t dev)
|
||||
goto done;
|
||||
}
|
||||
|
||||
#if defined(__i386__)
|
||||
if ((cpu_feature & CPUID_CX8) == 0) {
|
||||
device_printf(dev, "64 bit atomics not available.\n");
|
||||
rc = ENOTSUP;
|
||||
goto done;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Prepare the firmware for operation */
|
||||
rc = prep_firmware(sc);
|
||||
if (rc != 0)
|
||||
|
@ -38,6 +38,11 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include "t4_mp_ring.h"
|
||||
|
||||
#if defined(__i386__)
|
||||
#define atomic_cmpset_acq_64 atomic_cmpset_64
|
||||
#define atomic_cmpset_rel_64 atomic_cmpset_64
|
||||
#endif
|
||||
|
||||
union ring_state {
|
||||
struct {
|
||||
uint16_t pidx_head;
|
||||
|
Loading…
Reference in New Issue
Block a user