L4Re/departure

Annotated libexec/include/exec/memory.h

652:e4d464fd40c1
6 months ago Paul Boddie Make more pages available to the block and filesystem servers. libc_newlib
paul@349 1
/*
paul@349 2
 * Program memory initialisation support.
paul@349 3
 *
paul@475 4
 * Copyright (C) 2022, 2023 Paul Boddie <paul@boddie.org.uk>
paul@349 5
 *
paul@349 6
 * This program is free software; you can redistribute it and/or
paul@349 7
 * modify it under the terms of the GNU General Public License as
paul@349 8
 * published by the Free Software Foundation; either version 2 of
paul@349 9
 * the License, or (at your option) any later version.
paul@349 10
 *
paul@349 11
 * This program is distributed in the hope that it will be useful,
paul@349 12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
paul@349 13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
paul@349 14
 * GNU General Public License for more details.
paul@349 15
 *
paul@349 16
 * You should have received a copy of the GNU General Public License
paul@349 17
 * along with this program; if not, write to the Free Software
paul@349 18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
paul@349 19
 * Boston, MA  02110-1301, USA
paul@349 20
 */
paul@349 21
paul@349 22
#pragma once
paul@349 23
paul@349 24
#include <exec/elf.h>
paul@349 25
#include <exec/segment.h>
paul@349 26
paul@349 27
paul@349 28
paul@365 29
/* Initialisation functions. */
paul@365 30
paul@365 31
long exec_get_payload(const char *filename, Payload **payload, bool attach);
paul@349 32
paul@475 33
long exec_get_payload_file(file_t *file, Payload **payload, bool attach);
paul@475 34
paul@349 35
/* vim: tabstop=2 expandtab shiftwidth=2
paul@349 36
*/