diff options
author | dg <dg@FreeBSD.org> | 1994-08-04 06:10:27 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-08-04 06:10:27 +0000 |
commit | 8155465ec77131e7be3fff777e5f63a17f6f2e27 (patch) | |
tree | 0edf3be1528ec909da5dccdc2230ca27cb632fc2 /sys | |
parent | 7c5373446c6d24f36f8ced5bca182c45a065847e (diff) | |
download | FreeBSD-src-8155465ec77131e7be3fff777e5f63a17f6f2e27.zip FreeBSD-src-8155465ec77131e7be3fff777e5f63a17f6f2e27.tar.gz |
Nuked #if 0'd _insque and _remque routines - they are now inlined in
cpufunc.h.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 29 | ||||
-rw-r--r-- | sys/i386/i386/machdep.c | 29 |
2 files changed, 2 insertions, 56 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 805df0a..8ff9462 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.44 1994/06/04 11:01:15 davidg Exp $ + * $Id: machdep.c,v 1.45 1994/08/03 02:45:26 davidg Exp $ */ #include "npx.h" @@ -1356,33 +1356,6 @@ test_page(address, pattern) } /* - * insert an element into a queue - */ -#undef insque -void /* XXX replace with inline FIXME! */ -_insque(element, head) - register struct prochd *element, *head; -{ - element->ph_link = head->ph_link; - head->ph_link = (struct proc *)element; - element->ph_rlink = (struct proc *)head; - ((struct prochd *)(element->ph_link))->ph_rlink=(struct proc *)element; -} - -/* - * remove an element from a queue - */ -#undef remque -void /* XXX replace with inline FIXME! */ -_remque(element) - register struct prochd *element; -{ - ((struct prochd *)(element->ph_link))->ph_rlink = element->ph_rlink; - ((struct prochd *)(element->ph_rlink))->ph_link = element->ph_link; - element->ph_rlink = (struct proc *)0; -} - -/* * The registers are in the frame; the frame is in the user area of * the process in question; when the process is active, the registers * are in "the kernel stack"; when it's not, they're still there, but diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 805df0a..8ff9462 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.44 1994/06/04 11:01:15 davidg Exp $ + * $Id: machdep.c,v 1.45 1994/08/03 02:45:26 davidg Exp $ */ #include "npx.h" @@ -1356,33 +1356,6 @@ test_page(address, pattern) } /* - * insert an element into a queue - */ -#undef insque -void /* XXX replace with inline FIXME! */ -_insque(element, head) - register struct prochd *element, *head; -{ - element->ph_link = head->ph_link; - head->ph_link = (struct proc *)element; - element->ph_rlink = (struct proc *)head; - ((struct prochd *)(element->ph_link))->ph_rlink=(struct proc *)element; -} - -/* - * remove an element from a queue - */ -#undef remque -void /* XXX replace with inline FIXME! */ -_remque(element) - register struct prochd *element; -{ - ((struct prochd *)(element->ph_link))->ph_rlink = element->ph_rlink; - ((struct prochd *)(element->ph_rlink))->ph_link = element->ph_link; - element->ph_rlink = (struct proc *)0; -} - -/* * The registers are in the frame; the frame is in the user area of * the process in question; when the process is active, the registers * are in "the kernel stack"; when it's not, they're still there, but |