From ec9defc2912e86a7e682ec6e37aac102fa69d94d Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 20 Mar 2006 11:31:36 +0000 Subject: 2006-03-20 Thomas Schwinge * DEVELOPMENT: Document the NORMA removal. 2006-03-20 Leonardo Lopes Pereira Remove unused and unsupported code. Consult the file `DEVELOPMENT' for details. [patch #4982] * bogus/norma_device.h: Remove file. * bogus/norma_ether.h: Likewise. * bogus/norma_ipc.h: Likewise. * bogus/norma_task.h: Likewise. * bogus/norma_vm.h: Likewise. * include/mach/mach_norma.defs: Likewise. * include/mach/norma_task.defs: Likewise. * include/mach/norma_special_ports.h: Likewise. * Makefile.in (bogus-files): Remove `norma_device.h', `norma_ether.h', `norma_ipc.h', `norma_task.h' and `norma_vm.h'. (mach-headers): Remove `mach_norma.defs', `norma_task.defs' and `norma_special_ports.h'. * device/ds_routines.c: Don't include anymore and adopt all users of NORMA_DEVICE as if it were always defined to `0'. * device/net_io.c: Likewise for , NORMA_ETHER. * kern/machine.c: Likewise. * ddb/db_command.c: Likevise for , NORMA_IPC. * ipc/ipc_init.c: Likewise. * ipc/ipc_kmsg.c: Likewise. * ipc/ipc_kmsg.h: Likewise. * ipc/ipc_mqueue.c: Likewise. * ipc/ipc_notify.c: Likewise. * ipc/ipc_port.c: Likewise. * ipc/ipc_port.h: Likewise. * ipc/ipc_space.c: Likewise. * ipc/ipc_space.h: Likewise. * ipc/mach_msg.c: Likewise. * kern/ast.c: Likewise. * kern/debug.c: Likewise. * kern/exception.c: Likewise. * kern/startup.c: Likewise. * vm/memory_object.c: Likewise. * vm/vm_map.c: Likewise. * kern/ipc_kobject.c: Likewise for , NORMA_TASK. * kern/task.c: Likewise. * kern/task.h: Likewise. * ddb/db_command.c: Likewise for , NORMA_VM. * device/dev_pager.c: Likewise. * include/mach/mach_types.defs: Likewise. * include/mach/mach_types.h: Likewise. * include/mach/memory_object_default.defs: Likewise. * include/mach/memory_object.defs: Likewise. * ipc/ipc_kmsg.c: Likewise. * kern/ipc_kobject.c: Likewise. * kern/ipc_mig.c: Likewise. * kern/startup.c: Likewise. * vm/memory_object.c: Likewise. * vm/vm_object.c: Likewise. * vm/vm_object.h: Likewise. * vm/vm_pageout.c: Likewise. --- ipc/ipc_port.c | 61 ---------------------------------------------------------- 1 file changed, 61 deletions(-) (limited to 'ipc/ipc_port.c') diff --git a/ipc/ipc_port.c b/ipc/ipc_port.c index 73009b1d..262ab5ef 100644 --- a/ipc/ipc_port.c +++ b/ipc/ipc_port.c @@ -49,9 +49,6 @@ #include #include #include -#if NORMA_IPC -#include -#endif /* NORMA_IPC */ @@ -492,24 +489,6 @@ ipc_port_init( port->ip_msgcount = 0; port->ip_qlimit = MACH_PORT_QLIMIT_DEFAULT; -#if NORMA_IPC - port->ip_norma_uid = 0; - port->ip_norma_dest_node = 0; - port->ip_norma_stransit = 0; - port->ip_norma_sotransit = 0; - port->ip_norma_xmm_object_refs = 0; - port->ip_norma_is_proxy = FALSE; - port->ip_norma_is_special = FALSE; - port->ip_norma_atrium = IP_NULL; - port->ip_norma_queue_next = port; - port->ip_norma_xmm_object = IP_NULL; - port->ip_norma_next = port; - port->ip_norma_spare1 = 0L; - port->ip_norma_spare2 = 0L; - port->ip_norma_spare3 = 0L; - port->ip_norma_spare4 = 0L; -#endif /* NORMA_IPC */ - ipc_mqueue_init(&port->ip_messages); ipc_thread_queue_init(&port->ip_blocked); } @@ -725,13 +704,6 @@ ipc_port_destroy( /* fall through and destroy the port */ } -#if NORMA_IPC - /* - * destroy any NORMA_IPC state associated with port - */ - norma_ipc_port_destroy(port); -#endif /* NORMA_IPC */ - /* * rouse all blocked senders * @@ -1240,14 +1212,6 @@ ipc_port_t ipc_port_alloc_special(space) ipc_space_t space; { -#if NORMA_IPC -#if i386 - int ret = (&ret)[2]; /* where we were called from */ -#else - int ret = (int) ipc_port_alloc_special; -#endif - extern int input_msgh_id; -#endif /* NORMA_IPC */ ipc_port_t port; port = (ipc_port_t) io_alloc(IOT_PORT); @@ -1271,10 +1235,6 @@ ipc_port_alloc_special(space) ipc_port_init(port, space, (mach_port_t)port); -#if NORMA_IPC - port->ip_norma_spare1 = ret; - port->ip_norma_spare2 = input_msgh_id; -#endif /* NORMA_IPC */ return port; } @@ -1518,27 +1478,6 @@ ipc_port_print(port) printf(", sndrs=0x%x", port->ip_blocked.ithq_base); printf(", kobj=0x%x\n", port->ip_kobject); -#if NORMA_IPC - iprintf("norma_uid=%x", port->ip_norma_uid); - printf(", dest_node=%d", port->ip_norma_dest_node); - printf(", stransit=%d", port->ip_norma_stransit); - printf(", xorefs=%d", port->ip_norma_xmm_object_refs); - printf(", sotransit=%d\n", port->ip_norma_sotransit); - - iprintf("norma_is_proxy=%d", port->ip_norma_is_proxy); - printf(", is_special=%d\n", port->ip_norma_is_special); - - iprintf("norma_atrium=0x%x", port->ip_norma_atrium); - printf(", queue_next=0x%x", port->ip_norma_queue_next); - printf(", xmm_object=0x%x", port->ip_norma_xmm_object); - printf(", next=0x%x\n", port->ip_norma_next); - - iprintf("norma_spare1=0x%x", port->ip_norma_spare1); - printf(", norma_spare2=0x%x", port->ip_norma_spare2); - printf(", norma_spare3=0x%x", port->ip_norma_spare3); - printf(", norma_spare4=0x%x\n", port->ip_norma_spare4); -#endif /* NORMA_IPC */ - indent -=2; } -- cgit v1.2.3