support McKernel's sysfs tree

This commit is contained in:
NAKAMURA Gou
2015-11-20 16:46:08 +09:00
parent e805249651
commit 8cb72df663
14 changed files with 2625 additions and 10 deletions

View File

@@ -30,6 +30,7 @@
#include <mman.h>
#include <init.h>
#include <kmalloc.h>
#include <sysfs.h>
//#define DEBUG_PRINT_HOST
@@ -607,6 +608,22 @@ static int syscall_packet_handler(struct ihk_ikc_channel_desc *c,
dkprintf("SCD_MSG_DEBUG_LOG code=%lx\n", packet->arg);
debug_log(packet->arg);
return 0;
case SCD_MSG_SYSFS_REQ_SHOW:
case SCD_MSG_SYSFS_REQ_STORE:
case SCD_MSG_SYSFS_REQ_RELEASE:
sysfss_packet_handler(c, packet->msg, packet->err,
packet->sysfs_arg1, packet->sysfs_arg2,
packet->sysfs_arg3);
return 0;
default:
kprintf("syscall_pakcet_handler:unknown message "
"(%d.%d.%d.%d.%d.%#lx)\n",
packet->msg, packet->ref, packet->osnum,
packet->pid, packet->err, packet->arg);
return 0;
}
return 0;
}