1 // Copyright 2016 The Fuchsia Authors
2 // Copyright (c) 2014 Travis Geiselbrecht
3 //
4 // Use of this source code is governed by a MIT-style
5 // license that can be found in the LICENSE file or at
6 // https://opensource.org/licenses/MIT
7 
8 #pragma once
9 
10 #include <sys/types.h>
11 #include <zircon/compiler.h>
12 
13 // simple boot time allocator, used to carve off memory before
14 // the VM is completely up and running
15 extern "C" {
16 void boot_alloc_init();
17 void* boot_alloc_mem(size_t len) __MALLOC;
18 void boot_alloc_reserve(paddr_t phys, size_t len);
19 paddr_t boot_alloc_page_phys();
20 
21 extern paddr_t boot_alloc_start;
22 extern paddr_t boot_alloc_end;
23 
24 } // extern "C"
25