Last change
on this file since 251 was
228,
checked in by meunier, 12 years ago
|
Added support for memspaces and const.
Added an interrupt masking to the "giet_context_switch" syscall
Corrected two bugs in boot/boot_init.c (one minor and one regarding barriers initialization)
Reformatted the code in all files.
|
File size:
685 bytes
|
Line | |
---|
1 | #ifndef SRL_MEMSPACE_H |
---|
2 | #define SRL_MEMSPACE_H |
---|
3 | |
---|
4 | #include "srl_public_types.h" |
---|
5 | |
---|
6 | #include <memspace.h> |
---|
7 | |
---|
8 | /** |
---|
9 | * @file |
---|
10 | * @module{SRL} |
---|
11 | * @short Memory resources |
---|
12 | */ |
---|
13 | |
---|
14 | |
---|
15 | /** |
---|
16 | The memspace abstract type. |
---|
17 | */ |
---|
18 | |
---|
19 | |
---|
20 | typedef giet_memspace_t * srl_memspace_t; |
---|
21 | |
---|
22 | /** |
---|
23 | @this retrieves the size of a memspace |
---|
24 | |
---|
25 | @param memsp The memspace |
---|
26 | @return the size of the memspace |
---|
27 | */ |
---|
28 | #define SRL_MEMSPACE_SIZE(memsp) ((memsp)->size) |
---|
29 | #define SRL_MEMSPACE_ADDR(memsp) ((memsp)->buffer) |
---|
30 | |
---|
31 | |
---|
32 | #endif |
---|
33 | |
---|
34 | // Local Variables: |
---|
35 | // tab-width: 4 |
---|
36 | // c-basic-offset: 4 |
---|
37 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
---|
38 | // indent-tabs-mode: nil |
---|
39 | // End: |
---|
40 | // vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.