Changeset 42744880 in mainline for generic/include
- Timestamp:
- 2006-02-08T22:29:20Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 85dc2e7
- Parents:
- 89298e3
- Location:
- generic/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/config.h
r89298e3 r42744880 37 37 38 38 #define CONFIG_MEMORY_SIZE (8*1024*1024) 39 #define CONFIG_HEAP_SIZE (300*1024)40 39 #define CONFIG_STACK_SIZE STACK_SIZE 41 40 … … 50 49 size_t init_size; 51 50 52 __address heap_addr; 53 size_t heap_size; 54 size_t heap_delta; /**< Extra space between heap and stack (enforced by alignment requirements) */ 55 56 size_t kernel_size; /**< Size of memory in bytes taken by kernel, heap and stack */ 51 size_t kernel_size; /**< Size of memory in bytes taken by kernel and stack */ 57 52 }; 58 53 -
generic/include/mm/frame.h
r89298e3 r42744880 75 75 } 76 76 77 static inline pfn_t SIZE2PFN(__addresssize)77 static inline count_t SIZE2FRAMES(size_t size) 78 78 { 79 79 if (!size) 80 80 return 0; 81 return ( pfn_t)((size-1) >> FRAME_WIDTH)+1;81 return (count_t)((size-1) >> FRAME_WIDTH)+1; 82 82 } 83 83 … … 96 96 extern void frame_free(__address addr); 97 97 98 extern void zone_create(pfn_t start, pfn_t count, pfn_t confframe, int flags);98 extern void zone_create(pfn_t start, count_t count, pfn_t confframe, int flags); 99 99 100 100 void * frame_get_parent(pfn_t frame, int hint); 101 101 void frame_set_parent(pfn_t frame, void *data, int hint); 102 void frame_mark_unavailable(pfn_t start, pfn_t count);103 __address zone_conf_size(pfn_t start, pfn_t count);102 void frame_mark_unavailable(pfn_t start, count_t count); 103 __address zone_conf_size(pfn_t start, count_t count); 104 104 105 105 /* -
generic/include/typedefs.h
r89298e3 r42744880 35 35 typedef short bool; 36 36 37 typedef unsigned intsize_t;38 typedef unsigned intcount_t;39 typedef unsigned intindex_t;37 typedef unsigned long size_t; 38 typedef unsigned long count_t; 39 typedef unsigned long index_t; 40 40 41 41 typedef struct config config_t;
Note:
See TracChangeset
for help on using the changeset viewer.