From 6c8d92e33876174fd60b53ddbd05c7a6e98ddf62 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 27 Feb 1999 23:39:00 +0000 Subject: 1999-02-27 Roland McGrath * 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. --- serverboot/def_pager_setup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'serverboot/def_pager_setup.c') 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; } -- cgit v1.2.3