freebsd_network: Define _KERNEL for C++ files too.

This also allows the removal of a function that is also in the cpufunc.h header.
This commit is contained in:
Augustin Cavalier
2020-10-11 20:36:41 -04:00
parent c12c97a6f1
commit e6076c6d2e
2 changed files with 1 additions and 12 deletions
+1
View File
@@ -11,6 +11,7 @@ Includes [ FGristFiles kernel_c++_structs.h ]
: <src!system!kernel>kernel_c++_struct_sizes.h ;
SubDirCcFlags [ FDefines _KERNEL=1 ] ;
SubDirC++Flags [ FDefines _KERNEL=1 ] ;
KernelStaticLibrary libfreebsd_network.a :
bus.cpp
-12
View File
@@ -62,18 +62,6 @@ struct internal_intr {
static int32 intr_wrapper(void *data);
static int
fls(int mask)
{
int bit;
if (mask == 0)
return (0);
for (bit = 1; mask != 1; bit++)
mask = (unsigned int)mask >> 1;
return (bit);
}
static area_id
map_mem(void **virtualAddr, phys_addr_t _phy, size_t size, uint32 protection,
const char *name)