aboutsummaryrefslogtreecommitdiff
path: root/serverboot/default_pager.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove `serverboot'; fix "make dist" in `mach-defpager'.Ludovic Courtès2011-04-031-3921/+0
| | | | | | | | | | | | | | | | | | | | | | | | * serverboot/default_pager.c, serverboot/kalloc.c, serverboot/queue.h, serverboot/wiring.c, serverboot/wiring.h: Move to `mach-defpager/'. * serverboot/Makefile, serverboot/assert.h, serverboot/bootstrap.c, serverboot/bunzip2.c, serverboot/def_pager_setup.c, serverboot/defs.h, serverboot/dir.h, serverboot/disk_inode.h, serverboot/disk_inode_ffs.h, serverboot/elf-load.c, serverboot/exec.c, serverboot/ext2_file_io.c, serverboot/ffs_compat.c, serverboot/ffs_compat.h, serverboot/ffs_file_io.c, serverboot/file_io.c, serverboot/file_io.h, serverboot/fs.h, serverboot/gets.c, serverboot/gunzip.c, serverboot/load.c, serverboot/mach-exec.h, serverboot/minix_ffs_compat.c, serverboot/minix_ffs_compat.h, serverboot/minix_file_io.c, serverboot/minix_fs.h, serverboot/minix_super.h, serverboot/panic.c, serverboot/strfcns.c: Remove. * mach-defpager/Makefile (LCLHDRS): New variable. (vpath): Remove. (CPPFLAGS): Remove `-I$(srcdir)/../serverboot'. * mach-defpager/setup.c (page_aligned): Make public.
* Fix default_pager default_pager_object_set_size parametersSamuel Thibault2010-08-271-1/+1
| | | | | | | As suggested by Sergio Lopez. * serverboot/default_pager.c (S_default_pager_object_set_size): Exchange `seqno' and `reply_to' parameters.
* make unblocked reads from external objects return a zeroed page.Sergio Lopez2010-08-271-3/+18
| | | | | | | | | | | * serverboot/default_pager.c (struct dstruct): Add boolean_t external field. (default_pager_add): Set ds->external to TRUE or FALSE depending whether the object is external. (default_read): Add external parameter. If no_block(block) returns 1, if external is TRUE, zero fill the page and return PAGER_SUCCESS instead of PAGER_ABSENT. (seqnos_memory_object_data_request): Pass ds->external as additional parameter to default_read.
* Fix missing mutex unlock.Sergio Lopez2010-08-271-0/+1
| | | | | * serverboot/default_pager.c (pager_read_offset): Properly unlock the mutex before returning NO_BLOCK.
* 2007-06-06 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2007-06-061-23/+22
| | | | | | | | | * default_pager.c (default_pager_object_create, default_pager_info) (default_pager_objects, default_pager_object_pages) (default_pager_object_set_size, default_pager_paging_file): Rename to `S_default_pager_object_create', `S_default_pager_info', `S_default_pager_objects', `S_default_pager_object_pages', `S_default_pager_object_set_size' and `S_default_pager_paging_file'.
* 2002-06-14 Roland McGrath <roland@frob.com>Roland McGrath2002-06-141-0/+2
| | | | * default_pager.c: #include "default_pager_S.h"
* 2002-05-07 Roland McGrath <roland@frob.com>Roland McGrath2002-05-081-2/+1
| | | | * default_pager.c (part_id): Add const to argument type.
* 2002-03-23 Roland McGrath <roland@frob.com>Roland McGrath2002-03-241-143/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | | Excised default pager functionality from serverboot. * Makefile (SRCS): Move def_pager_setup.c default_pager.c kalloc.c to (EXTRA_DIST): ... here. (OBJS): Remove *Server.o from here. (MIGSFLAGS): Variable removed. * bootstrap.c (main): Replace paging-file boot-script functions with a stub that prints an error. No longer call partition_init, default_pager_initialize, or default_pager. (default_pager_bootstrap_port): Variable removed. (main): Don't use it. (default_pager_exception_port): Declaration removed. (main): Don't use it. * default_pager.c (default_pager_bootstrap_port): Variable removed. (default_pager_demux_default): Don't use it. (default_pager_initialize): Likewise. (default_pager): Likewise. (do_bootstrap_privileged_ports, bootstrap_compat): Functions removed. [mips] (set_ras_address): Likewise. * default_pager.c (pager_truncate): New function. (struct dpager): New member `limit'. (pager_alloc): Initialize it. (default_pager_object_set_size): New function. (seqnos_memory_object_lock_completed): Rewritten, no longer a stub. (default_pager_demux_object): Try default_pager_server too.
* 2001-03-31 Roland McGrath <roland@frob.com>Roland McGrath2001-04-011-15/+15
| | | | | | | * assert.h: Fix obsolescent #endif syntax. * default_pager.c: Likewise. * queue.h: Likewise. * load.c: Likewise.
* 2001-02-28 Roland McGrath <roland@frob.com>Roland McGrath2001-02-281-4/+5
| | | | | | * default_pager.c: Use <file_io.h> instead of "file_io.h", so mach-defpager gets its own version when it uses this source file. (new_partition): If CHECK_LINUX_SIGNATURE arg is -3, don't print out.
* 1999-11-18 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-11-181-0/+3
| | | | | * default_pager.c (default_pager): Instead of suspending this thread, just become the default_pager_default_thread thread ourselves.
* 1999-11-16 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-11-181-1/+1
| | | | | * default_pager.c (default_pager_initialize): Use MACH_PORT_VALID to check old DMM port, rather than just checking for MACH_PORT_NULL.
* 1999-07-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-201-3/+19
| | | | | * default_pager.c (new_partition): When reading Linux signature page, handle pager_read_file_direct returning sub-page blocks.
* 1999-06-03 Mark Kettenis <kettenis@gnu.org>Roland McGrath1999-06-031-1/+2
| | | | | * default_pager.c (new_partition): Declare `waste' as `int' instead of `unsigned int'.
* 1999-05-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-231-1/+1
| | | | | * default_pager.c (new_partition): Fix arg order in printf for linux-2.2 signature page.
* 1999-05-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-201-27/+70
| | | | * default_pager.c (new_partition): Fix SWAP-SPACE page handling.
* 1999-05-15 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-151-1/+19
| | | | | * default_pager.c (new_partition): Check if requested partition is already in our list, and refuse it.
* 1999-05-15 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-151-3/+9
| | | | | * default_pager.c (new_partition): Print out partition name and size when no signature.
* 1999-03-06 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-03-061-1/+1
| | | | | * default_pager.c (default_pager_paging_file): Pass 0 for new LINUX_SIGNATURE arg to add_paging_file.
* 1999-02-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-02-271-3/+142
| | | | | | | | | | | | | | | | * 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.
* 1998-07-25 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-07-251-11/+11
| | | | | * default_pager.c (pager_read_offset): Cast NO_BLOCK twice, to real return type of this function.
* Turn off debugging printfs.Thomas Bushnell1997-05-021-20/+44
|
* *** empty log message ***Thomas Bushnell1997-04-301-26/+87
|
* *** empty log message ***Thomas Bushnell1997-04-181-1/+1
|
* typoThomas Bushnell1997-04-181-3/+5
|
* add debugging.Thomas Bushnell1997-04-181-2/+15
|
* Fri Apr 18 16:44:49 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-04-181-1/+1
| | | | | | | | | | | | | | | | * wiring.c (__vm_allocate): New function. Wed Apr 16 14:18:28 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * default_pager.c (debug): Turn off. Mon Apr 14 12:50:20 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * default_pager.c: Remove debugging printfs. Thu Apr 10 15:10:25 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * Makefile (installationdir): Set variable.
* *** empty log message ***Thomas Bushnell1997-04-141-19/+0
|
* *** empty log message ***Thomas Bushnell1997-04-091-0/+1
|
* Wed Apr 9 13:57:44 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-04-091-9/+0
| | | | | | | | * default_pager.c (default_pager_default_thread): New function. Delete old variable with this name, it was never used. (default_pager): Fork default_pager_default_thread instead of doing it here to avoid the possibility that we are on a tiny stack. Current thread dies.
* Wed Apr 9 13:57:44 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-04-091-7/+16
| | | | | | | * default_pager.c (default_pager_default_thread): New function. (default_pager): Fork default_pager_default_thread instead of doing it here to avoid the possibility that we are on a tiny stack. Current thread dies.
* Initial RevisionThomas Bushnell1997-04-031-0/+3536