summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2009-08-09 10:40:19 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2009-08-09 10:40:19 +0000
commit2220ced8170aff304378109d961c32d6fc55779b (patch)
tree0df382349bd530ae1edac92d1e19c76dc94e88e9 /sys/arch/hppa64
parent2890459c5b942e808a4a0b8a5f352cb21e345748 (diff)
Rototill system V message queues.
No longer allocate a static amount of memory for messages in MD boot path; message queues, message metadata, and message data now all use dynamic memory, which means that runtime sysctls should now be trivial to implement. Since I'm going to be around all week to fix any breakage, this should probably just go in now.
Diffstat (limited to 'sys/arch/hppa64')
-rw-r--r--sys/arch/hppa64/hppa64/machdep.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/sys/arch/hppa64/hppa64/machdep.c b/sys/arch/hppa64/hppa64/machdep.c
index 028dc504818..78e5a34a72c 100644
--- a/sys/arch/hppa64/hppa64/machdep.c
+++ b/sys/arch/hppa64/hppa64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.16 2009/08/02 16:28:39 beck Exp $ */
+/* $OpenBSD: machdep.c,v 1.17 2009/08/09 10:40:17 blambert Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -39,9 +39,6 @@
#include <sys/core.h>
#include <sys/kcore.h>
#include <sys/extent.h>
-#ifdef SYSVMSG
-#include <sys/msg.h>
-#endif
#include <sys/mount.h>
#include <sys/syscallargs.h>
@@ -266,22 +263,6 @@ TODO hpmc/toc/pfr
EX_NOWAIT))
panic("cannot reserve main memory");
-#ifdef SYSVMSG
-{
- vaddr_t v;
-
- v = round_page(start);
-#define valloc(name, type, num) (name) = (type *)v; v = (vaddr_t)((name)+(num))
- valloc(msgpool, char, msginfo.msgmax);
- valloc(msgmaps, struct msgmap, msginfo.msgseg);
- valloc(msghdrs, struct msg, msginfo.msgtql);
- valloc(msqids, struct msqid_ds, msginfo.msgmni);
-#undef valloc
- v = round_page(v);
- bzero ((void *)start, (v - start));
- start = v;
-}
-#endif
/* sets resvphysmem */
pmap_bootstrap(start);