diff options
| author | Justus Winter <justus@gnupg.org> | 2016-02-26 15:24:45 +0100 |
|---|---|---|
| committer | Justus Winter <justus@gnupg.org> | 2016-02-26 15:24:45 +0100 |
| commit | e5921e151ef397b25db7fe85a325728503a77e9b (patch) | |
| tree | d0ed9042588d7cc0888cb982d8be30ec2f7be91f /kern | |
| parent | ad33ca5d3fbc25618d26b7af4d9a67be041c779a (diff) | |
Fix reference counting; use dead-name notification
Diffstat (limited to 'kern')
| -rw-r--r-- | kern/ipc_kobject.c | 8 | ||||
| -rw-r--r-- | kern/ipc_kobject.h | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/kern/ipc_kobject.c b/kern/ipc_kobject.c index c65458b..97c632a 100644 --- a/kern/ipc_kobject.c +++ b/kern/ipc_kobject.c @@ -48,6 +48,7 @@ #include <vm/vm_object.h> #include <vm/memory_object_proxy.h> #include <device/ds_routines.h> +#include <device/interrupt.h> #include <kern/mach.server.h> #include <ipc/mach_port.server.h> @@ -326,6 +327,10 @@ ipc_kobject_destroy( vm_object_pager_wakeup(port); break; + case IKOT_INTR_ENTRY: + /* Do nothing. */ + break; + default: #if MACH_ASSERT printf("ipc_kobject_destroy: port 0x%p, kobj 0x%lx, type %d\n", @@ -368,6 +373,9 @@ ipc_kobject_notify(request_header, reply_header) case IKOT_PAGER_PROXY: return memory_object_proxy_notify(request_header); + case IKOT_INTR_ENTRY: + return intr_entry_notify(request_header); + default: return FALSE; } diff --git a/kern/ipc_kobject.h b/kern/ipc_kobject.h index 606a66a..6aefea7 100644 --- a/kern/ipc_kobject.h +++ b/kern/ipc_kobject.h @@ -77,9 +77,10 @@ typedef unsigned int ipc_kobject_type_t; #define IKOT_CLOCK 25 #define IKOT_CLOCK_CTRL 26 #define IKOT_PAGER_PROXY 27 +#define IKOT_INTR_ENTRY 28 /* << new entries here */ -#define IKOT_UNKNOWN 28 /* magic catchall */ -#define IKOT_MAX_TYPE 29 /* # of IKOT_ types */ +#define IKOT_UNKNOWN 29 /* magic catchall */ +#define IKOT_MAX_TYPE 30 /* # of IKOT_ types */ /* Please keep ipc/ipc_object.c:ikot_print_array up to date */ #define is_ipc_kobject(ikot) (ikot != IKOT_NONE) |
