Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion boards/mips-malta/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export CPU = mips32r2_common
export INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include/
export USE_HARD_FLOAT = 1
#export USE_HARD_FLOAT = 1
export USE_DSP = 1
export USE_UHI_SYSCALLS = 1
10 changes: 0 additions & 10 deletions boards/mips-malta/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@ extern "C" {
*/
#define UART_NUMOF (0)

/**
* @brief Enable DSP context save + restore.
*/
#define MIPS_DSP (1)

/**
* @brief Enable FPU context save + restore.
*/
#define MIPS_HARD_FLOAT (1)

#ifdef __cplusplus
}
#endif
Expand Down
3 changes: 2 additions & 1 deletion boards/pic32-clicker/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export CPU = mips_pic32mx
export CPU_MODEL=p32mx470f512h
export INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include/
export APPDEPS += $(RIOTCPU)/$(CPU)/$(CPU_MODEL)/$(CPU_MODEL).S
export APPDEPS += $(RIOTCPU)/$(CPU)/$(CPU_MODEL)/$(CPU_MODEL).S
export USE_UHI_SYSCALLS = 1
1 change: 1 addition & 0 deletions boards/pic32-wifire/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export CPU = mips_pic32mz
export CPU_MODEL=p32mz2048efg100
export INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include/
export APPDEPS += $(RIOTCPU)/$(CPU)/$(CPU_MODEL)/$(CPU_MODEL).S
export USE_UHI_SYSCALLS = 1
2 changes: 1 addition & 1 deletion cpu/mips32r2_common/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MODULE = cpu
DIRS = periph
DIRS = periph newlib_syscalls_mips_uhi

include $(RIOTBASE)/Makefile.base
12 changes: 11 additions & 1 deletion cpu/mips32r2_common/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,15 @@ export APP_START=0x80000000

include $(RIOTMAKE)/arch/mips.inc.mk

export LINKFLAGS += -Tuhi32.ld
export USEMODULE += periph
export USEMODULE += newlib

ifeq ($(USE_UHI_SYSCALLS),1)
#Use UHI to handle syscalls
export LINKFLAGS += -luhi -Tuhi32.ld
export USEMODULE += newlib_syscalls_mips_uhi
else
#Use RIOT to handle syscalls (default)
export LINKFLAGS += -Tuhi32.ld
export USEMODULE += newlib_syscalls_default
endif
4 changes: 0 additions & 4 deletions cpu/mips32r2_common/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ void mips_start(void)
{
board_init();

#if MODULE_NEWLIB
#error "This Port is designed to work with the (newlib) C library provided with the mips sdk toolchain"
#endif

/* kernel_init */
kernel_init();
}
Expand Down
1 change: 1 addition & 0 deletions cpu/mips32r2_common/newlib_syscalls_mips_uhi/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include $(RIOTBASE)/Makefile.base
Loading