This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
OS_Project/Part4/10_scheduler/libc/mem.h
Jonathan Turner f9879ab449 added part 4
2023-11-29 14:16:15 -05:00

23 lines
400 B
C

#ifndef MEM_H
#define MEM_H
#include "../cpu/types.h"
#include "../libc/string.h"
#include "../drivers/screen.h"
#include "globals.h"
typedef struct _node {
u32 id;
u32 base;
u32 size;
struct _node *next;
struct _node *previous;
} node;
void memory_copy(u8 *source, u8 *dest, int nbytes);
void memory_set(u8 *dest, u8 val, u32 len);
u32 kmalloc(u32 size, int align, u32 *phys_addr);
#endif