* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
* @(#)subr_xxx.c 7.1 (Berkeley) %G%
#include "../machine/pte.h"
* Routine placed in illegal entries in the bdevsw and cdevsw tables.
* Null routine; placed in insignificant entries
* in the bdevsw and cdevsw tables.
extern struct pte camap
[];
caddr_t cacur
= (caddr_t
)&cabase
;
caddr_t camax
= (caddr_t
)&cabase
;
* This is a kernel-mode storage allocator.
* It is very primitive, currently, in that
* there is no way to give space back.
* It serves, for the time being, the needs of
* auto-configuration code and the like which
* need to allocate some stuff at boot time.
if (cacur
+size
>= (caddr_t
)&calimit
)
while (cacur
+size
> camax
) {
(void) vmemall(&camap
[cax
], CLSIZE
, &proc
[0], CSYS
);
vmaccess(&camap
[cax
], camax
, CLSIZE
);
for (i
= 0; i
< CLSIZE
; i
++)
clearseg(camap
[cax
++].pg_pfnum
);
* Stub routine in case it is ever possible to free space.
printf("freeing %x, size %d\n", cp
, size
);
for(i
= 1; i
< NSIG
; i
++) {
for (len
= 0; *s1
++ != '\0'; len
++)