meta: rename
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#include <socks/status.h>
|
||||
#include <mango/status.h>
|
||||
#include <limits.h>
|
||||
#include <socks/vm.h>
|
||||
#include <socks/memblock.h>
|
||||
#include <socks/printk.h>
|
||||
#include <socks/machine/cpu.h>
|
||||
#include <mango/vm.h>
|
||||
#include <mango/memblock.h>
|
||||
#include <mango/printk.h>
|
||||
#include <mango/machine/cpu.h>
|
||||
#include <stddef.h>
|
||||
#include <limits.h>
|
||||
#include <stdint.h>
|
||||
|
||||
10
vm/cache.c
10
vm/cache.c
@@ -1,8 +1,8 @@
|
||||
#include <socks/queue.h>
|
||||
#include <socks/compiler.h>
|
||||
#include <socks/panic.h>
|
||||
#include <socks/vm.h>
|
||||
#include <socks/util.h>
|
||||
#include <mango/queue.h>
|
||||
#include <mango/compiler.h>
|
||||
#include <mango/panic.h>
|
||||
#include <mango/vm.h>
|
||||
#include <mango/util.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define FREELIST_END ((unsigned int)-1)
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
memory outstripts free memory), the sparse memory model may
|
||||
be a better choice.
|
||||
*/
|
||||
#include <socks/vm.h>
|
||||
#include <socks/memblock.h>
|
||||
#include <socks/printk.h>
|
||||
#include <mango/vm.h>
|
||||
#include <mango/memblock.h>
|
||||
#include <mango/printk.h>
|
||||
|
||||
/* array of pages, one for each physical page frame present in RAM */
|
||||
static struct vm_page *page_array = NULL;
|
||||
|
||||
10
vm/kmalloc.c
10
vm/kmalloc.c
@@ -1,8 +1,8 @@
|
||||
#include <socks/types.h>
|
||||
#include <socks/memblock.h>
|
||||
#include <socks/vm.h>
|
||||
#include <socks/util.h>
|
||||
#include <socks/libc/string.h>
|
||||
#include <mango/types.h>
|
||||
#include <mango/memblock.h>
|
||||
#include <mango/vm.h>
|
||||
#include <mango/util.h>
|
||||
#include <mango/libc/string.h>
|
||||
|
||||
#define SIZE_N_CACHE(s) \
|
||||
{ .c_name = "size-" # s, .c_obj_size = s, .c_page_order = VM_PAGE_16K }
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
*/
|
||||
#include <stdbool.h>
|
||||
#include <limits.h>
|
||||
#include <socks/types.h>
|
||||
#include <socks/libc/string.h>
|
||||
#include <socks/memblock.h>
|
||||
#include <mango/types.h>
|
||||
#include <mango/libc/string.h>
|
||||
#include <mango/memblock.h>
|
||||
|
||||
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <socks/vm.h>
|
||||
#include <mango/vm.h>
|
||||
|
||||
static enum vm_model model;
|
||||
|
||||
|
||||
10
vm/page.c
10
vm/page.c
@@ -1,8 +1,8 @@
|
||||
#include <socks/types.h>
|
||||
#include <socks/memblock.h>
|
||||
#include <socks/printk.h>
|
||||
#include <socks/vm.h>
|
||||
#include <socks/libc/string.h>
|
||||
#include <mango/types.h>
|
||||
#include <mango/memblock.h>
|
||||
#include <mango/printk.h>
|
||||
#include <mango/vm.h>
|
||||
#include <mango/libc/string.h>
|
||||
|
||||
/* Pre-calculated page order -> size conversion table */
|
||||
static size_t page_order_bytes[] = {
|
||||
|
||||
14
vm/sparse.c
14
vm/sparse.c
@@ -22,13 +22,13 @@
|
||||
of the sparse memory model may be outweighed by the extra
|
||||
overhead, and the flat memory model may be a better choice.
|
||||
*/
|
||||
#include <socks/vm.h>
|
||||
#include <socks/arg.h>
|
||||
#include <socks/printk.h>
|
||||
#include <socks/panic.h>
|
||||
#include <socks/memblock.h>
|
||||
#include <socks/util.h>
|
||||
#include <socks/machine/cpu.h>
|
||||
#include <mango/vm.h>
|
||||
#include <mango/arg.h>
|
||||
#include <mango/printk.h>
|
||||
#include <mango/panic.h>
|
||||
#include <mango/memblock.h>
|
||||
#include <mango/util.h>
|
||||
#include <mango/machine/cpu.h>
|
||||
|
||||
static struct vm_sector *sector_array = NULL;
|
||||
static size_t sector_array_count = 0;
|
||||
|
||||
18
vm/zone.c
18
vm/zone.c
@@ -1,12 +1,12 @@
|
||||
#include <socks/locks.h>
|
||||
#include <socks/util.h>
|
||||
#include <socks/queue.h>
|
||||
#include <socks/memblock.h>
|
||||
#include <socks/types.h>
|
||||
#include <socks/vm.h>
|
||||
#include <socks/printk.h>
|
||||
#include <socks/libc/string.h>
|
||||
#include <socks/machine/cpu.h>
|
||||
#include <mango/locks.h>
|
||||
#include <mango/util.h>
|
||||
#include <mango/queue.h>
|
||||
#include <mango/memblock.h>
|
||||
#include <mango/types.h>
|
||||
#include <mango/vm.h>
|
||||
#include <mango/printk.h>
|
||||
#include <mango/libc/string.h>
|
||||
#include <mango/machine/cpu.h>
|
||||
|
||||
static struct vm_page *group_pages_into_block(struct vm_zone *z, phys_addr_t base, phys_addr_t limit, int order)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user