Last change
on this file since 250 was
244,
checked in by brejon, 11 years ago
|
- Update malloc (remote free)
- bugfix in spin_lock (bad register used in asm inline)
- memo/Makefile clean rule : added "-f" option to rm command
- main Makefile :
- added spin_lock.o in dhrystone object files
- added rules to compile spin_lock
|
File size:
1.1 KB
|
Line | |
---|
1 | //////////////////////////////////////////////////////////////////////////// |
---|
2 | // File : malloc_private.h |
---|
3 | // Date : 05/03/2013 |
---|
4 | // Author : Jean-Baptiste Bréjon |
---|
5 | // Copyright (c) UPMC-LIP6 |
---|
6 | //////////////////////////////////////////////////////////////////////////// |
---|
7 | |
---|
8 | #ifndef _MALLOC_PRIVATE_H_ |
---|
9 | #define _MALLOC_PRIVATE_H_ |
---|
10 | |
---|
11 | |
---|
12 | typedef struct heap_linked_list { |
---|
13 | struct heap_linked_list * next; |
---|
14 | unsigned int chunk_length; |
---|
15 | } heap_ll; |
---|
16 | |
---|
17 | void insert_in_remote_free_list(unsigned int remote_owner_id, unsigned int block_base, unsigned int block_length); |
---|
18 | heap_ll * pop_remote_free_list(heap_ll ** head); |
---|
19 | heap_ll * pop_ptr(void); |
---|
20 | void update_chunk_list(unsigned int block_base, unsigned int block_length); |
---|
21 | |
---|
22 | #if MALLOC_SELECTED == 1 || MALLOC_SELECTED == 2 |
---|
23 | static heap_ll * get_prev_fit_chunk(unsigned int size); |
---|
24 | #else |
---|
25 | int get_prev_fit_chunk(unsigned int size); |
---|
26 | #endif |
---|
27 | |
---|
28 | |
---|
29 | #endif |
---|
30 | |
---|
31 | // Local Variables: |
---|
32 | // tab-width: 4 |
---|
33 | // c-basic-offset: 4 |
---|
34 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
---|
35 | // indent-tabs-mode: nil |
---|
36 | // End: |
---|
37 | // vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.