xiaoxiang781216 commented on a change in pull request #5720: URL: https://github.com/apache/incubator-nuttx/pull/5720#discussion_r825556113
########## File path: arch/z80/src/common/z80_internal.h ########## @@ -73,6 +73,21 @@ #define STACK_ALIGN_DOWN(a) ((a) & ~STACK_ALIGN_MASK) #define STACK_ALIGN_UP(a) (((a) + STACK_ALIGN_MASK) & ~STACK_ALIGN_MASK) +/* Register access macros *************************************************** + * + * The register access mechanism provided in ez8.h differs from the useful in + * other NuttX architectures. The following NuttX common macros will at least + * make the access compatible at the source level (however, strict type check + * is lost). + */ + +#define getreg8(a) (a) +#define putreg8(v,a) (a) = (v) +#define getreg16(a) (a) +#define putreg16(v,a) (a) = (v) +#define getreg32(a) (a) +#define putreg32(v,a) (a) = (v) Review comment: Done. ########## File path: arch/z80/src/common/z80_internal.h ########## @@ -73,6 +73,21 @@ #define STACK_ALIGN_DOWN(a) ((a) & ~STACK_ALIGN_MASK) #define STACK_ALIGN_UP(a) (((a) + STACK_ALIGN_MASK) & ~STACK_ALIGN_MASK) +/* Register access macros *************************************************** + * + * The register access mechanism provided in ez8.h differs from the useful in + * other NuttX architectures. The following NuttX common macros will at least + * make the access compatible at the source level (however, strict type check + * is lost). + */ + +#define getreg8(a) (a) +#define putreg8(v,a) (a) = (v) +#define getreg16(a) (a) +#define putreg16(v,a) (a) = (v) Review comment: Done. ########## File path: arch/z80/src/common/z80_internal.h ########## @@ -73,6 +73,21 @@ #define STACK_ALIGN_DOWN(a) ((a) & ~STACK_ALIGN_MASK) #define STACK_ALIGN_UP(a) (((a) + STACK_ALIGN_MASK) & ~STACK_ALIGN_MASK) +/* Register access macros *************************************************** + * + * The register access mechanism provided in ez8.h differs from the useful in + * other NuttX architectures. The following NuttX common macros will at least + * make the access compatible at the source level (however, strict type check + * is lost). + */ + +#define getreg8(a) (a) +#define putreg8(v,a) (a) = (v) Review comment: Done. -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org