summaryrefslogtreecommitdiff
path: root/bsp/ls1cdev/drivers
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-09-14 17:06:11 +0800
committerGitHub <[email protected]>2017-09-14 17:06:11 +0800
commit0d193254f8600a36b5df604974beccf7491572e2 (patch)
tree944e37e154f14fc888b3594d22911d5ec8e55388 /bsp/ls1cdev/drivers
parent6d07c084c7232e09d13c918b6ca918f39cbe15f9 (diff)
parent96f3600bdecf127033a6f95b9f6fd6510cfb88ba (diff)
Merge pull request #845 from caogos/master
[BSP] Add FPU option for loongson1c.
Diffstat (limited to 'bsp/ls1cdev/drivers')
-rw-r--r--bsp/ls1cdev/drivers/board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bsp/ls1cdev/drivers/board.c b/bsp/ls1cdev/drivers/board.c
index 29d7fa7142..cb5fbdae09 100644
--- a/bsp/ls1cdev/drivers/board.c
+++ b/bsp/ls1cdev/drivers/board.c
@@ -94,8 +94,10 @@ void rt_hw_board_init(void)
/* init operating system timer */
rt_hw_timer_init();
+#ifdef RT_USING_FPU
/* init hardware fpu */
rt_hw_fpu_init();
+#endif
rt_kprintf("current sr: 0x%08x\n", read_c0_status());
}