-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'x86_vdso_for_v6.3_rc1' of git://git.kernel.org/pub/scm/lin…
…ux/kernel/git/tip/tip Pull x86 vdso updates from Borislav Petkov: - Add getcpu support for the 32-bit version of the vDSO - Some smaller fixes * tag 'x86_vdso_for_v6.3_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/vdso: Fix -Wmissing-prototypes warnings x86/vdso: Fake 32bit VDSO build on 64bit compile for vgetcpu selftests: Emit a warning if getcpu() is missing on 32bit x86/vdso: Provide getcpu for x86-32. x86/cpu: Provide the full setup for getcpu() on x86-32 x86/vdso: Move VDSO image init to vdso2c generated code
- Loading branch information
Showing
16 changed files
with
57 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
#ifdef CONFIG_X86_64 | ||
|
||
/* | ||
* in case of a 32 bit VDSO for a 64 bit kernel fake a 32 bit kernel | ||
* configuration | ||
*/ | ||
#undef CONFIG_64BIT | ||
#undef CONFIG_X86_64 | ||
#undef CONFIG_COMPAT | ||
#undef CONFIG_PGTABLE_LEVELS | ||
#undef CONFIG_ILLEGAL_POINTER_VALUE | ||
#undef CONFIG_SPARSEMEM_VMEMMAP | ||
#undef CONFIG_NR_CPUS | ||
#undef CONFIG_PARAVIRT_XXL | ||
|
||
#define CONFIG_X86_32 1 | ||
#define CONFIG_PGTABLE_LEVELS 2 | ||
#define CONFIG_PAGE_OFFSET 0 | ||
#define CONFIG_ILLEGAL_POINTER_VALUE 0 | ||
#define CONFIG_NR_CPUS 1 | ||
|
||
#define BUILD_VDSO32_64 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,4 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
#define BUILD_VDSO32 | ||
|
||
#ifdef CONFIG_X86_64 | ||
|
||
/* | ||
* in case of a 32 bit VDSO for a 64 bit kernel fake a 32 bit kernel | ||
* configuration | ||
*/ | ||
#undef CONFIG_64BIT | ||
#undef CONFIG_X86_64 | ||
#undef CONFIG_COMPAT | ||
#undef CONFIG_PGTABLE_LEVELS | ||
#undef CONFIG_ILLEGAL_POINTER_VALUE | ||
#undef CONFIG_SPARSEMEM_VMEMMAP | ||
#undef CONFIG_NR_CPUS | ||
#undef CONFIG_PARAVIRT_XXL | ||
|
||
#define CONFIG_X86_32 1 | ||
#define CONFIG_PGTABLE_LEVELS 2 | ||
#define CONFIG_PAGE_OFFSET 0 | ||
#define CONFIG_ILLEGAL_POINTER_VALUE 0 | ||
#define CONFIG_NR_CPUS 1 | ||
|
||
#define BUILD_VDSO32_64 | ||
|
||
#endif | ||
|
||
#include "fake_32bit_build.h" | ||
#include "../vclock_gettime.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ VERSION | |
__vdso_time; | ||
__vdso_clock_getres; | ||
__vdso_clock_gettime64; | ||
__vdso_getcpu; | ||
}; | ||
|
||
LINUX_2.5 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
#include "fake_32bit_build.h" | ||
#include "../vgetcpu.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters