diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2005-03-29 19:44:13 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2005-03-29 19:44:13 +0000 |
commit | d2ec15e58669c7257233a7578a317e2909e66a56 (patch) | |
tree | 72f89815ae2d44d431a5f8a3a29d70d99209d4d0 /sys | |
parent | d2ea26f336a90e9a4cb45e68f3a829a1982d5d75 (diff) |
Shrink kernel image buffer from 8M to 5M (no kernel should be that big),
and fix a spello. Leaves more unused memory for the "boot loader".
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/zaurus/stand/zbsdmod/zbsdmod.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c b/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c index 2094ab19c00..7a183a3bd5a 100644 --- a/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c +++ b/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zbsdmod.c,v 1.5 2005/01/24 22:20:33 uwe Exp $ */ +/* $OpenBSD: zbsdmod.c,v 1.6 2005/03/29 19:44:12 uwe Exp $ */ /* * Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de> @@ -21,7 +21,7 @@ #include "compat_linux.h" #define BOOTARGS_BUFSIZ 256 -#define BOOTARGS_MAJIC 0x4f425344 +#define BOOTARGS_MAGIC 0x4f425344 #define ZBOOTDEV_MAJOR 99 #define ZBOOTDEV_MODE 0222 @@ -65,8 +65,8 @@ static int i; static vaddr_t minv; static int *addr; -/* The maximum size of a kernel image is restricted to 8MB. */ -static int bsdimage[2097152]; /* XXX use kmalloc() */ +/* The maximum size of a kernel image is restricted to 5MB. */ +static int bsdimage[1310720]; /* XXX use kmalloc() */ static char bootargs[BOOTARGS_BUFSIZ]; /* @@ -219,7 +219,7 @@ zbsdmod_close(struct inode *ino, struct file *f) position); if (position < BOOTARGS_BUFSIZ) { - *(int *)bootargs = BOOTARGS_MAJIC; + *(int *)bootargs = BOOTARGS_MAGIC; bootargs[position + sizeof(int)] = '\0'; memcpy(bootargs + sizeof(int), bsdimage, position); |