Skip to content

Commit

Permalink
Merge pull request #164 from psxdev/master
Browse files Browse the repository at this point in the history
Update sifcmd.c
  • Loading branch information
fjtrujy committed Jan 22, 2021
2 parents 4a2d422 + b132d41 commit e8e9edb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ee/kernel/src/sifcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#define CMD_PACKET_MAX 128
#define CMD_PACKET_DATA_MAX 112
#define SYS_CMD_HANDLER_MAX 32
#define USR_CMD_HANDLER_MAX 32


/* EE DMAC registers. */
#define DMAC_COMM_STAT 0x1000e010
Expand Down Expand Up @@ -179,6 +181,7 @@ static u8 pktbuf[CMD_PACKET_MAX] __attribute__((aligned(64)));
static u8 sif_unused[64] __attribute__((aligned(64)));

static SifCmdHandlerData_t sys_cmd_handlers[SYS_CMD_HANDLER_MAX];
static SifCmdHandlerData_t usr_cmd_handlers[USR_CMD_HANDLER_MAX];
static int sregs[32];

struct cmd_data _sif_cmd_data;
Expand Down Expand Up @@ -237,8 +240,8 @@ void SifInitCmd(void)
_sif_cmd_data.unused = UNCACHED_SEG(sif_unused);
_sif_cmd_data.sys_cmd_handlers = sys_cmd_handlers;
_sif_cmd_data.nr_sys_handlers = SYS_CMD_HANDLER_MAX;
_sif_cmd_data.usr_cmd_handlers = NULL;
_sif_cmd_data.nr_usr_handlers = 0;
_sif_cmd_data.usr_cmd_handlers = usr_cmd_handlers;
_sif_cmd_data.nr_usr_handlers = USR_CMD_HANDLER_MAX;
_sif_cmd_data.sregs = sregs;

for (i = 0; i < SYS_CMD_HANDLER_MAX; i++) {
Expand Down

0 comments on commit e8e9edb

Please sign in to comment.