/* SPDX-License-Identifier: LGPL-2.1 OR MIT */1/*2* Copyright (C) 2017-2022 Willy Tarreau <[email protected]>3*/45/* Below comes the architecture-specific code. For each architecture, we have6* the syscall declarations and the _start code definition. This is the only7* global part. On all architectures the kernel puts everything in the stack8* before jumping to _start just above us, without any return address (_start9* is not a function but an entry point). So at the stack pointer we find argc.10* Then argv[] begins, and ends at the first NULL. Then we have envp which11* starts and ends with a NULL as well. So envp=argv+argc+1.12*/1314#ifndef _NOLIBC_ARCH_H15#define _NOLIBC_ARCH_H1617#if defined(__x86_64__) || defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__)18#include "arch-x86.h"19#elif defined(__ARM_EABI__)20#include "arch-arm.h"21#elif defined(__aarch64__)22#include "arch-arm64.h"23#elif defined(__mips__)24#include "arch-mips.h"25#elif defined(__powerpc__)26#include "arch-powerpc.h"27#elif defined(__riscv)28#include "arch-riscv.h"29#elif defined(__s390x__) || defined(__s390__)30#include "arch-s390.h"31#elif defined(__loongarch__)32#include "arch-loongarch.h"33#elif defined(__sparc__)34#include "arch-sparc.h"35#elif defined(__m68k__)36#include "arch-m68k.h"37#elif defined(__sh__)38#include "arch-sh.h"39#else40#error Unsupported Architecture41#endif4243#endif /* _NOLIBC_ARCH_H */444546