[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y+FwvI+xRg7zMhSx@sirena.org.uk>
Date: Mon, 6 Feb 2023 21:27:24 +0000
From: Mark Brown <broonie@...nel.org>
To: Evan Green <evan@...osinc.com>
Cc: Palmer Dabbelt <palmer@...osinc.com>,
Conor Dooley <conor@...nel.org>, vineetg@...osinc.com,
heiko@...ech.de, slewis@...osinc.com,
Albert Ou <aou@...s.berkeley.edu>,
Catalin Marinas <catalin.marinas@....com>,
Palmer Dabbelt <palmer@...belt.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Shuah Khan <shuah@...nel.org>, linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org, linux-riscv@...ts.infradead.org
Subject: Re: [PATCH v2 6/6] selftests: Test the new RISC-V hwprobe interface
On Mon, Feb 06, 2023 at 12:14:55PM -0800, Evan Green wrote:
> +int main(int argc, char **argv)
> +{
> --- /dev/null
> +++ b/tools/testing/selftests/riscv/libc.S
> +.global _start
> +_start:
> +.option push
> +.option norelax
> + la gp, __global_pointer$
> +.option pop
> +
> + la sp, stack
> +
> + la t0, heap
> + la t1, brk
> + REG_S t0, 0(t1)
> +
> + li a0, 0
> + li a1, 0
> +
> + call main
This looks like it's just a standard program entry but I don't speak
RISC-V asm so I might be missing something. If that's the case might it
make sense to use nolibc here?
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists