-
Notifications
You must be signed in to change notification settings - Fork 1.3k
RISC-V: Add support for RV32E extension in GCC port #543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,11 @@ typedef portUBASE_TYPE TickType_t; | |
/* Architecture specifics. */ | ||
#define portSTACK_GROWTH ( -1 ) | ||
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ ) | ||
#define portBYTE_ALIGNMENT 16 | ||
#ifdef __riscv_32e | ||
#define portBYTE_ALIGNMENT 8 /* RV32E uses RISC-V EABI with reduced stack alignment requirements */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have no doubt the reduced alignment requirement is correct, but for my own records would like to know where it is documented. Grateful for a link. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's documented here, section 4: https://github.com/riscv-non-isa/riscv-eabi-spec/blob/master/EABI.adoc#4-eabi-stack-alignment |
||
#else | ||
#define portBYTE_ALIGNMENT 16 | ||
#endif | ||
/*-----------------------------------------------------------*/ | ||
|
||
/* Scheduler utilities. */ | ||
|
Uh oh!
There was an error while loading. Please reload this page.