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

TOMOYO Linux Cross Reference
Linux/tools/include/nolibc/arch.h

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 /tools/include/nolibc/arch.h (Architecture i386) and /tools/include/nolibc/arch.h (Architecture ppc)


  1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */      1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
  2 /*                                                  2 /*
  3  * Copyright (C) 2017-2022 Willy Tarreau <w@1w      3  * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu>
  4  */                                                 4  */
  5                                                     5 
  6 /* Below comes the architecture-specific code.      6 /* Below comes the architecture-specific code. For each architecture, we have
  7  * the syscall declarations and the _start cod      7  * the syscall declarations and the _start code definition. This is the only
  8  * global part. On all architectures the kerne      8  * global part. On all architectures the kernel puts everything in the stack
  9  * before jumping to _start just above us, wit      9  * before jumping to _start just above us, without any return address (_start
 10  * is not a function but an entry point). So a     10  * is not a function but an entry point). So at the stack pointer we find argc.
 11  * Then argv[] begins, and ends at the first N     11  * Then argv[] begins, and ends at the first NULL. Then we have envp which
 12  * starts and ends with a NULL as well. So env     12  * starts and ends with a NULL as well. So envp=argv+argc+1.
 13  */                                                13  */
 14                                                    14 
 15 #ifndef _NOLIBC_ARCH_H                             15 #ifndef _NOLIBC_ARCH_H
 16 #define _NOLIBC_ARCH_H                             16 #define _NOLIBC_ARCH_H
 17                                                    17 
 18 #if defined(__x86_64__)                            18 #if defined(__x86_64__)
 19 #include "arch-x86_64.h"                           19 #include "arch-x86_64.h"
 20 #elif defined(__i386__) || defined(__i486__) |     20 #elif defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__)
 21 #include "arch-i386.h"                             21 #include "arch-i386.h"
 22 #elif defined(__ARM_EABI__)                        22 #elif defined(__ARM_EABI__)
 23 #include "arch-arm.h"                              23 #include "arch-arm.h"
 24 #elif defined(__aarch64__)                         24 #elif defined(__aarch64__)
 25 #include "arch-aarch64.h"                          25 #include "arch-aarch64.h"
 26 #elif defined(__mips__)                            26 #elif defined(__mips__)
 27 #include "arch-mips.h"                             27 #include "arch-mips.h"
 28 #elif defined(__powerpc__)                         28 #elif defined(__powerpc__)
 29 #include "arch-powerpc.h"                          29 #include "arch-powerpc.h"
 30 #elif defined(__riscv)                             30 #elif defined(__riscv)
 31 #include "arch-riscv.h"                            31 #include "arch-riscv.h"
 32 #elif defined(__s390x__)                           32 #elif defined(__s390x__)
 33 #include "arch-s390.h"                             33 #include "arch-s390.h"
 34 #elif defined(__loongarch__)                       34 #elif defined(__loongarch__)
 35 #include "arch-loongarch.h"                        35 #include "arch-loongarch.h"
 36 #else                                              36 #else
 37 #error Unsupported Architecture                    37 #error Unsupported Architecture
 38 #endif                                             38 #endif
 39                                                    39 
 40 #endif /* _NOLIBC_ARCH_H */                        40 #endif /* _NOLIBC_ARCH_H */
 41                                                    41 

~ [ 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