1.1 --- a/libexec/include/exec/common.h Fri Jan 12 01:33:58 2024 +0100
1.2 +++ b/libexec/include/exec/common.h Sun Jan 14 00:45:39 2024 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Common structures and functions.
1.6 *
1.7 - * Copyright (C) 2022, 2023 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2022, 2023, 2024 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -32,6 +32,7 @@
1.13 /* Common definitions. */
1.14
1.15 #define ENV_INTERNAL_PAGER_NAME "intpager"
1.16 +#define MEM_INTERNAL_PAGER_LIMIT (10 * L4_PAGESIZE)
1.17
1.18
1.19
2.1 --- a/libexec/lib/src/process_creating.cc Fri Jan 12 01:33:58 2024 +0100
2.2 +++ b/libexec/lib/src/process_creating.cc Sun Jan 14 00:45:39 2024 +0100
2.3 @@ -85,7 +85,7 @@
2.4
2.5 long ProcessCreating::init_external_pager(l4_cap_idx_t *pager)
2.6 {
2.7 - _exec_pager = new ExternalPager(0, 10 * L4_PAGESIZE);
2.8 + _exec_pager = new ExternalPager(0, MEM_INTERNAL_PAGER_LIMIT);
2.9 _exec_pager->set_monitor(_monitor);
2.10
2.11 /* Initialise pager regions for the region mapper. */
3.1 --- a/libexec/rm/region_mapper.cc Fri Jan 12 01:33:58 2024 +0100
3.2 +++ b/libexec/rm/region_mapper.cc Sun Jan 14 00:45:39 2024 +0100
3.3 @@ -1,7 +1,7 @@
3.4 /*
3.5 * A region mapper for deployment in a new task.
3.6 *
3.7 - * Copyright (C) 2022, 2023 Paul Boddie <paul@boddie.org.uk>
3.8 + * Copyright (C) 2022, 2023, 2024 Paul Boddie <paul@boddie.org.uk>
3.9 *
3.10 * This program is free software; you can redistribute it and/or
3.11 * modify it under the terms of the GNU General Public License as
3.12 @@ -35,7 +35,7 @@
3.13 /* Initialise a pager for programs, reserving space below the allocated regions
3.14 for the region mapper itself. */
3.15
3.16 -static InternalPager exec_pager(L4_PAGESIZE * 10);
3.17 +static InternalPager exec_pager(MEM_INTERNAL_PAGER_LIMIT);
3.18
3.19
3.20