forked from xuos/xiuos
Close interrupt during trapframe construction.
This commit is contained in:
@@ -89,7 +89,9 @@ int main()
|
||||
mmap(ARM_PERIPHERAL_VIRT_BASE, ARM_PERIPHERAL_BASE, 0x2000, true);
|
||||
|
||||
printf("%s: Sending soft interrupt\n", prog_name);
|
||||
gic_send_sgi(SW_INTERRUPT_3, 0xF, kGicSgiFilter_UseTargetList);
|
||||
while (1) {
|
||||
gic_send_sgi(SW_INTERRUPT_3, 0xF, kGicSgiFilter_UseTargetList);
|
||||
}
|
||||
printf("%s: Soft interrupt send done\n", prog_name);
|
||||
exit();
|
||||
}
|
||||
@@ -159,6 +159,7 @@ void delay_session(void)
|
||||
void ipc_server_loop(struct IpcNode* ipc_node)
|
||||
{
|
||||
struct Session session_list[NR_MAX_SESSION];
|
||||
memset(session_list, 0, sizeof(session_list));
|
||||
for (;;) {
|
||||
/* if connect sessions are greater than NR_MAX_SESSION,
|
||||
a full round will require multiple polls.
|
||||
|
||||
@@ -37,7 +37,7 @@ Modification:
|
||||
#include "ipcargs.h"
|
||||
#include "session.h"
|
||||
|
||||
#define NR_MAX_SESSION 16
|
||||
#define NR_MAX_SESSION 32
|
||||
#define IPC_MSG_MAGIC 0xABCDDCBA
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user