[ create a new paste ] login | about

Link: http://codepad.org/Jp1DxoPJ    [ raw code | output | fork ]

C, pasted on May 19:
//*****************************************************************************
//  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 = 


Output:
1
2
3
4
5
6
7
8
9
Line 28: error: kernel_includes.h: No such file or directory
Line 26: error: uart_includes.h: No such file or directory
Line 31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
In function 'initializeMemoryAllocation':
Line 42: error: 'kernelMemAllocations' undeclared (first use in this function)
Line 42: error: (Each undeclared identifier is reported only once
Line 42: error: for each function it appears in.)
Line 43: error: expected expression at end of input
Line 43: error: expected declaration or statement at end of input


Create a new paste based on this one


Comments: