Debian Codegraph @

terps/tads/tads3/vminitsw.cpp

raw symbols SCIP
1 #ifdef RCSID
2 static char RCSid[] =
3 "$Header$";
4 #endif
5
6 /*
7 * Copyright (c) 1999, 2002 Michael J. Roberts. All Rights Reserved.
8 *
9 * Please see the accompanying license file, LICENSE.TXT, for information
10 * on using and copying this software.
11 */
12 /*
13 Name
14 vminitsw.cpp - VM initialization - swapping pool implementation
15 Function
16
17 Notes
18
19 Modified
20 07/21/99 MJRoberts - Creation
21 */
22
23 #include "vminit.h"
24 #include "vmpool.h"
25
26
27 /* ------------------------------------------------------------------------ */
28 /*
29 * Initialize the VM with swapping page pools
30 */
31 void vm_init_swap(vm_globals **vmg, size_t max_pages_in_mem,
32 const vm_init_options *opts)
33 {
34 vm_globals *vmg__;
35
36 /* initialize the base VM structures */
37 vm_init_base(vmg, opts);
38
39 /*
40 * assign the global pointer to the special vmg__ local for
41 * globals-on-stack configuration
42 */
43 vmg__ = *vmg;
44
45 /* create the in-memory pools */
46 G_code_pool = new CVmPoolSwap(max_pages_in_mem);
47 G_const_pool = new CVmPoolSwap(max_pages_in_mem);
48 }
49