Commit b632632
arm64: hyperv: Fix build breakage for non-ARM64 architectures
Commit [arm64: hyperv: Enable Hyper-V synthetic clocks/timers]
introduced changes to enable Hyper-V synthetic clocks and timers
on ARM64. However, these changes led to build breakage on
non-ARM64 architectures due to the use of the '__bss_decrypted'
section, which is notavailable on those platforms.
To address this issue, this commit adds conditional compilation to
use'__bss_decrypted' only on ARM64 architectures. The introduced
'#ifdefCONFIG_ARM64' ensures that the code involving
'__bss_decrypted' is included only when building for ARM64, preventing
build failures on other platforms.
This modification allows the Hyper-V support code to be selectively
applied, ensuring compatibility with both ARM64 and non-ARM64
architectures.
Signed-off-by: Allen Pais <apais@microsoft.com>1 parent f7434a1 commit b632632
2 files changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
379 | 382 | | |
| 383 | + | |
380 | 384 | | |
381 | 385 | | |
382 | 386 | | |
| |||
390 | 394 | | |
391 | 395 | | |
392 | 396 | | |
393 | | - | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
394 | 403 | | |
395 | 404 | | |
396 | 405 | | |
| |||
0 commit comments