Skip to content

Thumbs inline ASM IAR: fix register clobber list#7221

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:thumb2_inline_asm_iar_fix
Feb 7, 2024
Merged

Thumbs inline ASM IAR: fix register clobber list#7221
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:thumb2_inline_asm_iar_fix

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

Description

Change register clobber list so that it reserves the same registers for constants regardless of WOLFSSL_NO_VAR_ASSIGN_REG.

Fixes zd#17225

Testing

./configure '--disable-shared' '--host=armv7m' 'CC=arm-linux-gnueabi-gcc' 'LDFLAGS=--static' '--enable-armasm=inline' 'CFLAGS=-DWOLFSSL_NO_VAR_ASSIGN_REG'
And with IAR Workbench.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

Change register clobber list so that it reserves the same registers for
constants regardless of WOLFSSL_NO_VAR_ASSIGN_REG.
@SparkiDev SparkiDev self-assigned this Feb 7, 2024
Copy link
Copy Markdown
Contributor

@josepho0918 josepho0918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The unnecessary alignment XALIGNED(16) can be removed from AES and SHA tables.

@SparkiDev SparkiDev assigned dgarske and wolfSSL-Bot and unassigned SparkiDev Feb 7, 2024
@SparkiDev
Copy link
Copy Markdown
Contributor Author

I'll leave the alignment to potentially make it quicker to read the tables as there will definitely be no alignment issues.

@dgarske dgarske merged commit 7e14258 into wolfSSL:master Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants