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:
Michael Brown
2005-05-09 10:11:11 +00:00
parent 462234f373
commit ef05a27f25
2 changed files with 147 additions and 0 deletions

16
src/include/buffer.h Normal file
View File

@@ -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 */