anchao commented on code in PR #1141: URL: https://github.com/apache/incubator-nuttx-apps/pull/1141#discussion_r851356731
########## testing/ostest/fpu.c: ########## @@ -211,8 +179,8 @@ static int fpu_task(int argc, char *argv[]) * that we can verify that reading of the registers actually occurs. */ - memset(fpu->save1, 0xff, FPU_WORDSIZE * sizeof(uint32_t)); - memset(fpu->save2, 0xff, FPU_WORDSIZE * sizeof(uint32_t)); + memset(fpu->save1, 0xff, XCPTCONTEXT_REGS * sizeof(uint32_t)); Review Comment: Done ########## testing/ostest/fpu.c: ########## @@ -211,8 +179,8 @@ static int fpu_task(int argc, char *argv[]) * that we can verify that reading of the registers actually occurs. */ - memset(fpu->save1, 0xff, FPU_WORDSIZE * sizeof(uint32_t)); - memset(fpu->save2, 0xff, FPU_WORDSIZE * sizeof(uint32_t)); + memset(fpu->save1, 0xff, XCPTCONTEXT_REGS * sizeof(uint32_t)); + memset(fpu->save2, 0xff, XCPTCONTEXT_REGS * sizeof(uint32_t)); Review Comment: Done ########## testing/ostest/fpu.c: ########## @@ -153,14 +121,14 @@ static void fpu_dump(FAR uint32_t *buffer, FAR const char *msg) int k; printf("%s (%p):\n", msg, buffer); - for (i = 0; i < FPU_WORDSIZE; i += 8) + for (i = 0; i < XCPTCONTEXT_REGS; i += 8) { printf(" %04x: ", i); for (j = 0; j < 8; j++) { k = i + j; - if (k < FPU_WORDSIZE) + if (k < XCPTCONTEXT_REGS) 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