mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-27 23:54:24 +00:00
i386: mark floating point operations correctly.
From commit #1603b05c
This commit is contained in:
parent
43f8cd2c73
commit
74cc8cdbc1
1
Makefile
1
Makefile
@ -1254,6 +1254,7 @@ EXTRA_CFLAGS += -DCONFIG_MP_VHT_HW_TX_MODE
|
|||||||
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
|
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
|
||||||
## For I386 X86 ToolChain use Hardware FLOATING
|
## For I386 X86 ToolChain use Hardware FLOATING
|
||||||
EXTRA_CFLAGS += -mhard-float
|
EXTRA_CFLAGS += -mhard-float
|
||||||
|
EXTRA_CFLAGS += -DMARK_KERNEL_PFU
|
||||||
else ifeq ($(CONFIG_PLATFORM_ARM_RPI), y)
|
else ifeq ($(CONFIG_PLATFORM_ARM_RPI), y)
|
||||||
## For Rpi3: use hardware floating, but not on the api
|
## For Rpi3: use hardware floating, but not on the api
|
||||||
EXTRA_CFLAGS += -mfloat-abi=softfp
|
EXTRA_CFLAGS += -mfloat-abi=softfp
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
#include <rtw_mp_ioctl.h>
|
#include <rtw_mp_ioctl.h>
|
||||||
#include "../../hal/phydm/phydm_precomp.h"
|
#include "../../hal/phydm/phydm_precomp.h"
|
||||||
|
|
||||||
|
ifdef MARK_KERNEL_PFU
|
||||||
|
#include <linux/kernel.h>
|
||||||
|
#include <asm/fpu/api.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_RTL8723B)
|
#if defined(CONFIG_RTL8723B)
|
||||||
#include <rtw_bt_mp.h>
|
#include <rtw_bt_mp.h>
|
||||||
@ -1718,6 +1722,10 @@ int rtw_mp_tx(struct net_device *dev,
|
|||||||
|
|
||||||
PMAC_Get_Pkt_Param(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
PMAC_Get_Pkt_Param(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
||||||
|
|
||||||
|
#ifdef MARK_KERNEL_PFU
|
||||||
|
kernel_fpu_begin();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (MPT_IS_CCK_RATE(pMptCtx->PMacTxInfo.TX_RATE))
|
if (MPT_IS_CCK_RATE(pMptCtx->PMacTxInfo.TX_RATE))
|
||||||
|
|
||||||
CCK_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
CCK_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
||||||
@ -1726,6 +1734,11 @@ int rtw_mp_tx(struct net_device *dev,
|
|||||||
/* 24 BIT*/
|
/* 24 BIT*/
|
||||||
L_SIG_generator(pMptCtx->PMacPktInfo.N_sym, &pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
L_SIG_generator(pMptCtx->PMacPktInfo.N_sym, &pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MARK_KERNEL_PFU
|
||||||
|
kernel_fpu_end();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* 48BIT*/
|
/* 48BIT*/
|
||||||
if (MPT_IS_HT_RATE(pMptCtx->PMacTxInfo.TX_RATE))
|
if (MPT_IS_HT_RATE(pMptCtx->PMacTxInfo.TX_RATE))
|
||||||
HT_SIG_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
HT_SIG_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
||||||
|
Loading…
Reference in New Issue
Block a user