mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-23 11:09:28 -05:00
Riscv re-factoring (#1145)
* Refactor the trap handler macro
Since `portasmHANDLE_INTERRUPT` is removed at FreeRTOS-kernel, Riscv re-factoring (#444) (commit: 9efca75d1e)
We don't need this definition anymore
We also remove the unused function definition
* Styling the file header to pass the checker
Remove an extra space
Co-authored-by: ztex <ztex030640417@gmail.com>
This commit is contained in:
parent
ec25164e48
commit
660166b734
2 changed files with 2 additions and 8 deletions
|
|
@ -13,7 +13,7 @@ MAKE = make
|
||||||
GCC_VERSION = $(shell $(CC) --version | grep ^$(CC) | sed 's/^.* //g' | awk -F. '{ printf("%d%02d%02d"), $$1, $$2, $$3 }')
|
GCC_VERSION = $(shell $(CC) --version | grep ^$(CC) | sed 's/^.* //g' | awk -F. '{ printf("%d%02d%02d"), $$1, $$2, $$3 }')
|
||||||
GCC_VERSION_NEED_ZICSR = "110100"
|
GCC_VERSION_NEED_ZICSR = "110100"
|
||||||
|
|
||||||
CFLAGS += $(INCLUDE_DIRS) -DportasmHANDLE_INTERRUPT=handle_trap -fmessage-length=0 \
|
CFLAGS += $(INCLUDE_DIRS) -fmessage-length=0 \
|
||||||
-mabi=ilp32 -mcmodel=medlow -ffunction-sections -fdata-sections \
|
-mabi=ilp32 -mcmodel=medlow -ffunction-sections -fdata-sections \
|
||||||
-Wno-unused-parameter -nostartfiles -g3 -Os
|
-Wno-unused-parameter -nostartfiles -g3 -Os
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,9 +56,3 @@ size_t i;
|
||||||
|
|
||||||
portEXIT_CRITICAL();
|
portEXIT_CRITICAL();
|
||||||
}
|
}
|
||||||
|
|
||||||
void handle_trap(void)
|
|
||||||
{
|
|
||||||
while (1)
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue