-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DESTROY EVERYTHING AND TRY AGAIN. HASHTAG YOLO HASHTAG YOLOGRAMMING H…
…ASHTAG FUCKIT
- Loading branch information
1 parent
b31eae6
commit fc19764
Showing
13 changed files
with
29 additions
and
435 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Copyright (c) 2008-2017, Ellen Dash <[email protected]> and the contributors | ||
contributors (listed in the CONTRIBUTORS.txt file). | ||
Copyright (c) 2017 awooOS/dmm contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# dux-mm | ||
# dmm | ||
|
||
a memory management library pulled from | ||
[dux](https://github.com/duckinator/dux). | ||
A memory management library made for | ||
[awooOS](https://github.com/awooos/awooos). | ||
|
||
# License | ||
|
||
The code is available as open source under the [MIT | ||
License](https://github.com/duckinator/dux-mm/raw/master/LICENSE.txt). | ||
License](https://github.com/awoos/dmm/raw/master/LICENSE.txt). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
#ifndef DUX_DMM_H | ||
#define DUX_DMM_H | ||
#ifndef DMM_H | ||
#define DMM_H | ||
|
||
#include <stddef.h> | ||
|
||
void dmm_init(size_t _kernel_end, size_t _end_memory); | ||
void *kmalloc(size_t nbytes); | ||
void kfree(void *ap); | ||
void dmm_add_memory_region(void *start, size_t length); | ||
void *dmm_malloc(size_t size); | ||
void dmm_free(void *ptr); | ||
|
||
// If the DMM_INTRUSIVE macro is defined, alias malloc() and free() | ||
// to the dmm ones. | ||
#ifdef DMM_INTRUSIVE | ||
#define malloc dmm_malloc | ||
#define free dmm_free | ||
#endif | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
#include <dmm.h> | ||
#include <stddef.h> | ||
#include "placement_allocator.h" | ||
#include "frames.h" | ||
#include "paging.h" | ||
|
||
void dmm_init(size_t last_used_address, size_t end_memory) | ||
void dmm_add_memory_region(void *start, size_t length) | ||
{ | ||
dmm_frames_init(end_memory); | ||
dmm_paging_init(); | ||
dmm_placement_allocator_init(last_used_address); | ||
// | ||
} | ||
|
||
void *dmm_malloc(size_t size) | ||
{ | ||
// | ||
} | ||
|
||
void dmm_free(void *ptr) | ||
{ | ||
// | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.