Skip to content

Commit

Permalink
Fix loading on 10.11
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Apr 7, 2021
1 parent f0e95ef commit 847761d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
IntelMausi Changelog
====================
#### v1.0.6
- Fixed loading on 10.11 and earlier (regressed in 1.0.5)

#### v1.0.5
- Merged changes from 2.5.3d1
- Updated e1000e sources from Linux upstream branch
Expand Down
10 changes: 3 additions & 7 deletions IntelMausiEthernet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
D3CB5B7D1A4394A800A37FAA /* IntelMausiEthernet-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "IntelMausiEthernet-Info.plist"; sourceTree = "<group>"; };
D3CB5B811A4394A800A37FAA /* IntelMausiEthernet.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = IntelMausiEthernet.h; sourceTree = "<group>"; };
D3CB5B821A4394A800A37FAA /* IntelMausiEthernet.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = IntelMausiEthernet.cpp; sourceTree = "<group>"; };
D3CB5B8A1A4395E400A37FAA /* gpl.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = gpl.txt; sourceTree = "<group>"; };
D3CB5B8D1A43969400A37FAA /* linux.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = linux.h; sourceTree = "<group>"; };
D3CB5B8E1A43969400A37FAA /* ethtool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ethtool.h; sourceTree = "<group>"; };
D3CB5B8F1A43969400A37FAA /* if_ether.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = if_ether.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -194,7 +193,6 @@
D31D52061A566F4800DD1F17 /* IntelMausiHardware.cpp */,
D36B90D51C41BF0B00C1EB37 /* Intel E1000e */,
D3CB5B8C1A43968000A37FAA /* Linux Compatibility */,
D3CB5B8A1A4395E400A37FAA /* gpl.txt */,
D3F318C81AB3B58A00DA9D9A /* APPLE_LICENSE */,
D3CB5B7C1A4394A800A37FAA /* Supporting Files */,
);
Expand Down Expand Up @@ -314,7 +312,7 @@
D3CB5B6C1A4394A800A37FAA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1220;
LastUpgradeCheck = 1240;
ORGANIZATIONNAME = "Laura Müller";
};
buildConfigurationList = D3CB5B6F1A4394A800A37FAA /* Build configuration list for PBXProject "IntelMausiEthernet" */;
Expand Down Expand Up @@ -473,7 +471,6 @@
);
MACOSX_DEPLOYMENT_TARGET = 10.6;
MODULE_NAME = as.acidanthera.mieze.IntelMausi;
MODULE_VERSION = 1.0.6;
PRODUCT_BUNDLE_IDENTIFIER = "as.acidanthera.mieze.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
Expand Down Expand Up @@ -501,7 +498,6 @@
);
MACOSX_DEPLOYMENT_TARGET = 10.6;
MODULE_NAME = as.acidanthera.mieze.IntelMausi;
MODULE_VERSION = 1.0.6;
PRODUCT_BUNDLE_IDENTIFIER = "as.acidanthera.mieze.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
Expand Down Expand Up @@ -562,6 +558,7 @@
KERNEL_EXTENSION_HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/MacKernelSDK/Headers";
KERNEL_FRAMEWORK_HEADERS = "$(PROJECT_DIR)/MacKernelSDK/Headers";
MACOSX_DEPLOYMENT_TARGET = 10.6;
MODULE_VERSION = 1.0.6;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-Wno-stdlibcxx-not-found";
SDKROOT = macosx;
Expand Down Expand Up @@ -615,6 +612,7 @@
KERNEL_EXTENSION_HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/MacKernelSDK/Headers";
KERNEL_FRAMEWORK_HEADERS = "$(PROJECT_DIR)/MacKernelSDK/Headers";
MACOSX_DEPLOYMENT_TARGET = 10.6;
MODULE_VERSION = 1.0.6;
OTHER_CFLAGS = "-Wno-stdlibcxx-not-found";
SDKROOT = macosx;
};
Expand All @@ -640,7 +638,6 @@
);
MACOSX_DEPLOYMENT_TARGET = 10.9;
MODULE_NAME = as.acidanthera.mieze.IntelMausi;
MODULE_VERSION = 1.0.5;
PRODUCT_BUNDLE_IDENTIFIER = "as.acidanthera.mieze.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = IntelMausi;
SDKROOT = macosx;
Expand Down Expand Up @@ -668,7 +665,6 @@
);
MACOSX_DEPLOYMENT_TARGET = 10.9;
MODULE_NAME = as.acidanthera.mieze.IntelMausi;
MODULE_VERSION = 1.0.5;
PRODUCT_BUNDLE_IDENTIFIER = "as.acidanthera.mieze.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = IntelMausi;
SDKROOT = macosx;
Expand Down
4 changes: 2 additions & 2 deletions IntelMausiEthernet/IntelMausiHardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* This driver is based on Intel's E1000e driver for Linux.
*/

#include <libkern/crypto/rand.h>
#include <sys/random.h>
#include "IntelMausiEthernet.h"

#pragma mark --- hardware initialization methods ---
Expand Down Expand Up @@ -1332,7 +1332,7 @@ void IntelMausi::intelRssKeyFill(void *buffer, size_t len)
if (isRssSet) {
memcpy(buffer, rssHashKey, len);
} else {
random_buf(rssHashKey, sizeof(rssHashKey));
read_random(rssHashKey, sizeof(rssHashKey));
memcpy(buffer, rssHashKey, len);
isRssSet = true;
}
Expand Down

0 comments on commit 847761d

Please sign in to comment.