~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/loongarch/vdso/elf.S

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/loongarch/vdso/elf.S (Architecture i386) and /arch/mips/vdso/elf.S (Architecture mips)


  1 /* SPDX-License-Identifier: GPL-2.0 */         !!   1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*                                                  2 /*
  3  * Author: Huacai Chen <chenhuacai@loongson.cn> !!   3  * Copyright (C) 2015 Imagination Technologies
  4  *                                             !!   4  * Author: Alex Smith <alex.smith@imgtec.com>
  5  * Copyright (C) 2020-2022 Loongson Technology << 
  6  */                                                 5  */
  7                                                     6 
  8 #include <asm/vdso/vdso.h>                          7 #include <asm/vdso/vdso.h>
  9                                                     8 
                                                   >>   9 #include <asm/isa-rev.h>
                                                   >>  10 
 10 #include <linux/elfnote.h>                         11 #include <linux/elfnote.h>
 11 #include <linux/version.h>                         12 #include <linux/version.h>
 12                                                    13 
 13 ELFNOTE_START(Linux, 0, "a")                       14 ELFNOTE_START(Linux, 0, "a")
 14         .long LINUX_VERSION_CODE                   15         .long LINUX_VERSION_CODE
 15 ELFNOTE_END                                        16 ELFNOTE_END
                                                   >>  17 
                                                   >>  18 /*
                                                   >>  19  * The .MIPS.abiflags section must be defined with the FP ABI flags set
                                                   >>  20  * to 'any' to be able to link with both old and new libraries.
                                                   >>  21  * Newer toolchains are capable of automatically generating this, but we want
                                                   >>  22  * to work with older toolchains as well. Therefore, we define the contents of
                                                   >>  23  * this section here (under different names), and then genvdso will patch
                                                   >>  24  * it to have the correct name and type.
                                                   >>  25  *
                                                   >>  26  * We base the .MIPS.abiflags section on preprocessor definitions rather than
                                                   >>  27  * CONFIG_* because we need to match the particular ABI we are building the
                                                   >>  28  * VDSO for.
                                                   >>  29  *
                                                   >>  30  * See https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking
                                                   >>  31  * for the .MIPS.abiflags section description.
                                                   >>  32  */
                                                   >>  33 
                                                   >>  34         .section .mips_abiflags, "a"
                                                   >>  35         .align 3
                                                   >>  36 __mips_abiflags:
                                                   >>  37         .hword  0               /* version */
                                                   >>  38         .byte   __mips          /* isa_level */
                                                   >>  39 
                                                   >>  40         /* isa_rev */
                                                   >>  41         .byte   MIPS_ISA_REV
                                                   >>  42 
                                                   >>  43         /* gpr_size */
                                                   >>  44 #ifdef __mips64
                                                   >>  45         .byte   2               /* AFL_REG_64 */
                                                   >>  46 #else
                                                   >>  47         .byte   1               /* AFL_REG_32 */
                                                   >>  48 #endif
                                                   >>  49 
                                                   >>  50         /* cpr1_size */
                                                   >>  51 #if (MIPS_ISA_REV >= 6) || defined(__mips64)
                                                   >>  52         .byte   2               /* AFL_REG_64 */
                                                   >>  53 #else
                                                   >>  54         .byte   1               /* AFL_REG_32 */
                                                   >>  55 #endif
                                                   >>  56 
                                                   >>  57         .byte   0               /* cpr2_size (AFL_REG_NONE) */
                                                   >>  58         .byte   0               /* fp_abi (Val_GNU_MIPS_ABI_FP_ANY) */
                                                   >>  59         .word   0               /* isa_ext */
                                                   >>  60         .word   0               /* ases */
                                                   >>  61         .word   0               /* flags1 */
                                                   >>  62         .word   0               /* flags2 */
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php