Skip to content

Commit

Permalink
Clean up. Boots OK yay!
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Aug 3, 2023
1 parent 3b99e32 commit 555b53b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
14 changes: 0 additions & 14 deletions arch/risc-v/src/jh7110/jh7110_pgalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,10 @@
#include <nuttx/arch.h>
#include <nuttx/config.h>
#include <nuttx/pgalloc.h>

#include <assert.h>
#include <debug.h>

#include <arch/board/board_memorymap.h>

/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

/****************************************************************************
* Private Data
****************************************************************************/

/****************************************************************************
* Public Data
****************************************************************************/

/****************************************************************************
* Public Functions
****************************************************************************/
Expand Down
8 changes: 0 additions & 8 deletions arch/risc-v/src/jh7110/jh7110_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
****************************************************************************/

extern void __trap_vec(void);
extern void __trap_vec_m(void);
extern void up_mtimer_initialize(void);

/****************************************************************************
* Public Data
Expand Down Expand Up @@ -97,10 +95,6 @@ void jh7110_start_s(int mhartid)
goto cpux;
}

#ifndef CONFIG_BUILD_KERNEL
jh7110_clear_bss();
#endif

showprogress('A');

#ifdef USE_EARLYSERIALINIT
Expand All @@ -113,11 +107,9 @@ void jh7110_start_s(int mhartid)

showprogress('C');

#ifdef CONFIG_BUILD_KERNEL
/* Setup page tables for kernel and enable MMU */

jh7110_mm_init();
#endif

/* Call nx_start() */

Expand Down
7 changes: 0 additions & 7 deletions arch/risc-v/src/jh7110/jh7110_timerisr.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@
#include "riscv_percpu.h"
#include "hardware/jh7110_memorymap.h"

/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

#define MTIMER_FREQ 10000000
#define TICK_COUNT (10000000 / TICK_PER_SEC)

/****************************************************************************
* Private Data
****************************************************************************/
Expand Down

0 comments on commit 555b53b

Please sign in to comment.