codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
//***************************************************************************** // memory.c // // // Created by John Walsh on 3/20/17. // Copyright (c) 2017, John Walsh // All rights reserved. // //***************************************************************************** #if !defined(__cplusplus) #include <stdbool.h> #endif #include <stddef.h> #include <stdint.h> #include "kernel_includes.h" #include "uart_includes.h" #include "memory.h" //***************************************************************************** // Location of the initial page table in RAM // 16K unsigned int *initpagetable = (unsigned int * const)0x4000; //extern unsigned int *initpagetable; // 1K unsigned int *kerneldatatable = (unsigned int * const)0x3c00; //extern unsigned int *kerneldatatable; //***************************************************************************** // Prototypes static Header* morecore(unsigned nu); static void* sbrk(unsigned nuSize); //***************************************************************************** // Virtualization Functions //***************************************************************************** void initializeMemoryAllocation(void){ unsigned int a, b, c; // Initialize // Initial Kernel and Kernel Stack kernelMemAllocations[0].selfNodeNumber = 0; kernelMemAllocations[0].previousNodePtr =
Private
[
?
]
Run code
Submit