mirror of
https://github.com/drasko/codezero.git
synced 2026-02-27 17:23:13 +01:00
Removed linux linked list dependency.
This commit is contained in:
@@ -185,7 +185,7 @@ struct mem_cache *mem_cache_init(void *start,
|
||||
area_start = addr_aligned;
|
||||
}
|
||||
|
||||
INIT_LIST_HEAD(&cache->list);
|
||||
link_init(&cache->list);
|
||||
cache->start = area_start;
|
||||
cache->end = area_start + cache_size;
|
||||
cache->total = total;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* fixed-size memory cache) Keeps track of free/occupied items within its
|
||||
* start/end boundaries. Does not grow/shrink but you can link-list it. */
|
||||
struct mem_cache {
|
||||
struct list_head list;
|
||||
struct link list;
|
||||
int total;
|
||||
int free;
|
||||
unsigned int start;
|
||||
|
||||
Reference in New Issue
Block a user