pkarashchenko commented on code in PR #8042: URL: https://github.com/apache/nuttx/pull/8042#discussion_r1064619308
########## libs/libc/machine/risc-v/gnu/asm.h: ########## @@ -0,0 +1,52 @@ +/**************************************************************************** + * libs/libc/machine/risc-v/gnu/asm.h + * + * Copyright (c) 2017 SiFive Inc. All rights reserved. + * + * This copyrighted material is made available to anyone wishing to use, + * modify, copy, or redistribute it subject to the terms and conditions + * of the FreeBSD License. This program is distributed in the hope that + * it will be useful, but WITHOUT ANY WARRANTY expressed or implied, + * including the implied warranties of MERCHANTABILITY or FITNESS FOR + * A PARTICULAR PURPOSE. A copy of this license is available at + * http://www.opensource.org/licenses. + ****************************************************************************/ + +#ifndef _ASM_H +#define _ASM_H + +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include <nuttx/config.h> + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#ifdef CONFIG_ARCH_RV64 +# define SZREG 8 +# define REG_S sd +# define REG_L ld +#elif defined(CONFIG_ARCH_RV32) +# define SZREG 4 +# define REG_S sw +# define REG_L lw +#endif + +#ifdef CONFIG_ARCH_QPFPU Review Comment: It was just an option for common style. Can be left as is -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
