summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/include/bootcard.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-02 19:13:05 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-02 19:13:05 +0000
commit61814f978e390ab499a24bc614a8eb979b707cd7 (patch)
tree0a5d076f65130d44f6d210d473f6f19e654bfed8 /c/src/lib/libbsp/shared/include/bootcard.h
parent2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-61814f978e390ab499a24bc614a8eb979b707cd7.tar.bz2
2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* bootcard.c, bspgetworkarea.c, bsppretaskinghook.c, include/bootcard.h: Change size_t to ssize_t on bsp_get_work_area(). On 16-bit architectures, size_t can be 16-bits which would limit the work area to 64K.
Diffstat (limited to 'c/src/lib/libbsp/shared/include/bootcard.h')
-rw-r--r--c/src/lib/libbsp/shared/include/bootcard.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/shared/include/bootcard.h b/c/src/lib/libbsp/shared/include/bootcard.h
index 69669aa623..12bb45a3ff 100644
--- a/c/src/lib/libbsp/shared/include/bootcard.h
+++ b/c/src/lib/libbsp/shared/include/bootcard.h
@@ -29,6 +29,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <sys/types.h>
#include <bspopts.h>
@@ -53,10 +54,10 @@ void bsp_reset(void);
#define BSP_BOOTCARD_HEAP_SIZE_DEFAULT 0
void bsp_get_work_area(
- void **work_area_start,
- size_t *work_area_size,
- void **heap_start,
- size_t *heap_size
+ void **work_area_start,
+ ssize_t *work_area_size,
+ void **heap_start,
+ ssize_t *heap_size
);
int boot_card( int argc, char **argv, char **envp);