[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] machdev: Fix passthrough of control port and fsys_startup
From: |
Damien Zammit |
Subject: |
[PATCH] machdev: Fix passthrough of control port and fsys_startup |
Date: |
Sat, 13 Mar 2021 22:25:23 +1100 |
This fixes the WARNING on the previous patch.
The lookup of _SERVERS_STARTUP now works.
---
libmachdev/trivfs_server.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/libmachdev/trivfs_server.c b/libmachdev/trivfs_server.c
index 8ee6be65..be5abc9d 100644
--- a/libmachdev/trivfs_server.c
+++ b/libmachdev/trivfs_server.c
@@ -239,9 +239,14 @@ trivfs_S_fsys_startup (mach_port_t bootport,
mach_port_t *realnode,
mach_msg_type_name_t *realnodetype)
{
+ mach_port_t mybootport;
+
control_port = cntl;
*realnode = MACH_PORT_NULL;
- *realnodetype = MACH_MSG_TYPE_MOVE_SEND;
+ *realnodetype = MACH_MSG_TYPE_COPY_SEND;
+
+ task_get_bootstrap_port (mach_task_self (), &mybootport);
+ fsys_startup (mybootport, flags, control_port, MACH_MSG_TYPE_COPY_SEND,
realnode);
return 0;
}
--
2.30.1
- [PATCH] machdev: Fix passthrough of control port and fsys_startup,
Damien Zammit <=