projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
first cached version
[unix-history]
/
usr
/
src
/
sys
/
kern
/
init_main.c
diff --git
a/usr/src/sys/kern/init_main.c
b/usr/src/sys/kern/init_main.c
index
78338a3
..
522cdda
100644
(file)
--- a/
usr/src/sys/kern/init_main.c
+++ b/
usr/src/sys/kern/init_main.c
@@
-1,4
+1,4
@@
-/* init_main.c 3.
6
%G% */
+/* init_main.c 3.
7
%G% */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
@@
-17,6
+17,7
@@
#include "../h/clock.h"
#include "../h/vm.h"
#include "../h/cmap.h"
#include "../h/clock.h"
#include "../h/vm.h"
#include "../h/cmap.h"
+#include "../h/text.h"
/*
* Initialization code.
/*
* Initialization code.
@@
-105,6
+106,7
@@
main(firstaddr)
proc[0].p_szpt = CLSIZE;
if (newproc(0)) {
expand(clrnd((int)btoc(szicode)), P0BR);
proc[0].p_szpt = CLSIZE;
if (newproc(0)) {
expand(clrnd((int)btoc(szicode)), P0BR);
+ swpexpand(u.u_dsize, 0, &u.u_dmap, &u.u_smap);
(void) copyout((caddr_t)icode, (caddr_t)0, (unsigned)szicode);
/*
* Return goes to loc. 0 of user init
(void) copyout((caddr_t)icode, (caddr_t)0, (unsigned)szicode);
/*
* Return goes to loc. 0 of user init