summaryrefslogtreecommitdiff
path: root/serverboot/def_pager_setup.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-02-27 23:39:00 +0000
committerRoland McGrath <roland@gnu.org>1999-02-27 23:39:00 +0000
commit6c8d92e33876174fd60b53ddbd05c7a6e98ddf62 (patch)
tree656347e15e99c5c93846afd2ad516b3626c2765e /serverboot/def_pager_setup.c
parent8e21e68efa51b420613e5e63814f61237f93bd46 (diff)
1999-02-27 Roland McGrath <roland@baalperazim.frob.com>
* def_pager_setup.c (add_paging_file): New arg CHECK_LINUX_SIGNATURE, pass down to create_paging_partition. * default_pager.c (create_paging_partition): New arg CHECK_LINUX_SIGNATURE, pass down new_partition. (new_partition): New arg CHECK_LINUX_SIGNATURE: if not < 0, check first page of swap for Linux 2.0 or 2.2 signature page and obey its bad-block map; if > 0, refuse the partition if no signature found. * bootstrap.c (main): Add new boot script functions `add-raw-paging-file', `add-linux-paging-file'. Make those and `add-paging-file' all call add_paging_file with new LINUX_SIGNATURE arg of -1, 1, and 0, respectively. * default_pager.c (create_paging_partition): If new_partition returns null, return and do nothing more.
Diffstat (limited to 'serverboot/def_pager_setup.c')
-rw-r--r--serverboot/def_pager_setup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/serverboot/def_pager_setup.c b/serverboot/def_pager_setup.c
index fe6b33ab..cd72acea 100644
--- a/serverboot/def_pager_setup.c
+++ b/serverboot/def_pager_setup.c
@@ -35,9 +35,10 @@ extern void *kalloc();
extern void create_paging_partition();
kern_return_t
-add_paging_file(master_device_port, file_name)
+add_paging_file(master_device_port, file_name, linux_signature)
mach_port_t master_device_port;
char *file_name;
+ int linux_signature;
{
register struct file_direct *fdp;
register kern_return_t result;
@@ -68,7 +69,7 @@ add_paging_file(master_device_port, file_name)
/*
* Set up the default paging partition
*/
- create_paging_partition(file_name, fdp, isa_file);
+ create_paging_partition(file_name, fdp, isa_file, linux_signature);
return result;
}