Last change
on this file since 282 was
258,
checked in by alain, 11 years ago
|
This is a major release, including a deep restructuration of code.
The main evolutions are
- use of the Tsar preloader to load the GIET boot-loader from disk
- introduction of a FAT32 file system library,
- use of this fat32 library by the boot-loader to load the
map.bin data structure, and the various .elf files
- reorganisation of drivers (one file per peripheral).
- introduction of drivers for new peripherals:
vci_chbuf_dma and vci_multi_ahci.
- introduction of a new physical memory allocator in the boot code.
This release has been tested on the tsar_generic_iob architecture,
for the two following mappings: 4c_1p_iob_four.xml and 4c_1p_iob_sort.xml
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Rev | Line | |
---|
[258] | 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.