patch-1.3.46 linux/init/main.c
Next file: linux/kernel/ksyms.c
Previous file: linux/include/net/netlink.h
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Mon Dec 11 09:55:42 1995
- Orig file:
v1.3.45/linux/init/main.c
- Orig date:
Mon Nov 27 12:48:36 1995
diff -u --recursive --new-file v1.3.45/linux/init/main.c linux/init/main.c
@@ -29,6 +29,9 @@
#include <linux/hdreg.h>
#include <linux/mm.h>
#include <linux/major.h>
+#ifdef CONFIG_APM
+#include <linux/apm_bios.h>
+#endif
#include <asm/bugs.h>
@@ -127,6 +130,8 @@
char nfs_root_addrs[128] = { "" };
#endif
+extern void dquot_init(void);
+
static char * argv_init[MAX_INIT_ARGS+2] = { "init", NULL, };
static char * envp_init[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, };
@@ -400,6 +405,7 @@
if (!strncmp(line, "nfsroot=", 8)) {
int n;
line += 8;
+ ROOT_DEV = MKDEV(UNNAMED_MAJOR, 255);
if (line[0] == '/' || (line[0] >= '0' && line[0] <= '9')) {
strncpy(nfs_root_name, line, sizeof(nfs_root_name));
nfs_root_name[sizeof(nfs_root_name)] = '\0';
@@ -580,6 +586,10 @@
#ifdef CONFIG_SYSVIPC
ipc_init();
#endif
+#ifdef CONFIG_APM
+ apm_bios_init();
+#endif
+ dquot_init();
sti();
check_bugs();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this