We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbc85c4 commit d4bb873Copy full SHA for d4bb873
shared/source/gmm_helper/gmm_helper.cpp
@@ -63,7 +63,13 @@ GmmHelper::GmmHelper(const RootDeviceEnvironment &rootDeviceEnvironmentArg) : ro
63
}
64
65
uint64_t GmmHelper::canonize(uint64_t address) const {
66
+#if defined(__aarch64__)
67
+ // Memory layout on aarch64 doesn't require setting bits 63-48 to the same
68
+ // as bit 47. See https://docs.kernel.org/arch/arm64/memory.html
69
+ return static_cast<int64_t>(address);
70
+#else
71
return static_cast<int64_t>(address << (64 - addressWidth)) >> (64 - addressWidth);
72
+#endif
73
74
75
uint64_t GmmHelper::decanonize(uint64_t address) const {
0 commit comments