Start of an implementation using doubly-linked lists and virtual
addresses. This will have to be reworked to use physical addresses thanks to the PXE spec.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#ifndef BUFFER_H
|
||||
#define BUFFER_H
|
||||
|
||||
struct buffer_free_block {
|
||||
struct buffer_free_block *next;
|
||||
struct buffer_free_block *prev;
|
||||
void *end;
|
||||
};
|
||||
|
||||
struct buffer {
|
||||
struct buffer_free_block free_blocks;
|
||||
void *start;
|
||||
void *end;
|
||||
};
|
||||
|
||||
#endif /* BUFFER_H */
|
||||
Reference in New Issue
Block a user