diff options
author | Vincenzo Frascino <vincenzo.frascino@arm.com> | 2019-06-21 12:52:46 +0300 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-07-26 07:45:05 +0300 |
commit | 24640f233b466051ad3a5d2786d2951e43026c9d (patch) | |
tree | ca9acaf821110f4d249dd4a250d7a9b740675261 /arch/mips/vdso/config-n32-o32-env.c | |
parent | c2aeaaea175652af6610f97a0de6d7cd07311e18 (diff) | |
download | linux-24640f233b466051ad3a5d2786d2951e43026c9d.tar.xz |
mips: Add support for generic vDSO
The mips vDSO library requires some adaptations to take advantage of the
newly introduced generic vDSO library.
Introduce the following changes:
- Modification of vdso.c to be compliant with the common vdso datapage
- Use of lib/vdso for gettimeofday
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
[paul.burton@mips.com: Prepend $(src) to config-n32-o32-env.c path.]
Signed-off-by: Paul Burton <paul.burton@mips.com>
Diffstat (limited to 'arch/mips/vdso/config-n32-o32-env.c')
-rw-r--r-- | arch/mips/vdso/config-n32-o32-env.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/mips/vdso/config-n32-o32-env.c b/arch/mips/vdso/config-n32-o32-env.c new file mode 100644 index 000000000000..da4994b2b3e5 --- /dev/null +++ b/arch/mips/vdso/config-n32-o32-env.c @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Configuration file for O32 and N32 binaries. + * Note: To be included before lib/vdso/gettimeofday.c + */ +#if defined(CONFIG_MIPS32_O32) || defined(CONFIG_MIPS32_N32) +/* + * In case of a 32 bit VDSO for a 64 bit kernel fake a 32 bit kernel + * configuration. + */ +#undef CONFIG_64BIT + +#define CONFIG_32BIT 1 +#define CONFIG_GENERIC_ATOMIC64 1 + +#endif + |