Changeset 810 for trunk/src/emx/include
- Timestamp:
- Oct 6, 2003, 2:55:10 AM (22 years ago)
- Location:
- trunk/src/emx/include
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/emx/umalloc.h
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r809 r810 7 7 extern "C" { 8 8 #endif 9 10 /* include all we need here to make life easier. */ 11 #include <stddef.h> 12 #include <umalloc.h> 13 #include <sys/builtin.h> 14 #include <sys/fmutex.h> 15 #include <sys/rmutex.h> 16 #include <sys/uflags.h> 9 17 10 18 /* =========================== Introduction =========================== */ … … 221 229 222 230 #define _UM_TILE_OK(p,s) (_UM_TILE_ALIGNED ((p), (s)) \ 223 && _UM_TILE_TILED ((p), (s))) 231 && _UM_TILE_TILED ((p), (s))) 224 232 225 233 /* Compute the smallest number X such that P will be aligned on a A … … 603 611 604 612 /* Note that _um_regular_heap is declared in <umalloc.h>. 605 _um_tiled_heap isn't, so we declare ithere. */613 the others aren't, so we declare them here. */ 606 614 607 615 extern Heap_t _um_tiled_heap; 616 extern Heap_t _um_high_heap; 617 extern Heap_t _um_low_heap; 608 618 609 619 … … 710 720 int _um_find_bucket (size_t); 711 721 void _um_free_maybe_lock (void *, int); 712 void_um_init_default_regular_heap (void);713 void_um_init_default_tiled_heap (void);722 Heap_t _um_init_default_regular_heap (void); 723 Heap_t _um_init_default_tiled_heap (void); 714 724 void *_um_lump_alloc (Heap_t, size_t, size_t, unsigned); 715 725 void _um_lump_coalesce_free (Heap_t, struct _um_lump *, struct _um_seg *, … … 725 735 int _um_walk_no_lock (Heap_t, _um_callback2 *, void *); 726 736 737 738 /** @group Low Memory Heap Routines. 739 * Intended for internal LIBC use. First call to any of these routines 740 * will initialize the heap. 741 * @{ */ 742 void * _lmalloc(size_t); 743 void * _lcalloc(size_t, size_t); 744 void * _lrealloc(void *, size_t); 745 Heap_t _linitheap(void); 746 /** @} */ 747 748 /** @group High Memory Heap Routines. 749 * Intended for internal LIBC use. First call to any of these routines 750 * will initialize the heap. 751 * @{ */ 752 void * _hmalloc(size_t); 753 void * _hcalloc(size_t, size_t); 754 void * _hrealloc(void *, size_t); 755 Heap_t _hinitheap(void); 756 void * __libc_HimemDefaultAlloc(Heap_t Heap, size_t *pcb, int *pfClean); 757 void __libc_HimemDefaultRelease(Heap_t Heap, void *pv, size_t cb); 758 int __libc_HasHighMem(void); 759 /** @} */ 760 761 762 /** @group Default Heap Voting. 763 * @{ */ 764 void __libc_HeapVote(int fDefaultHeapInHighMem); 765 void __libc_HeapEndVoting(void); 766 int __libc_HeapGetResult(void); 767 /** @} */ 768 769 770 727 771 /* Inline functions. */ 728 772 … … 763 807 { 764 808 /* Use the 'syscall' write for safest possible path. */ 765 extern int __write (int handle, const void *buf, size_t nbytes); 809 extern int __write (int handle, const void *buf, size_t nbytes); 766 810 __write (2, "\r\n!_um_abort!", 13); 767 811 if (pszmsg) 768 812 { 769 813 const char *psz = pszmsg; 770 while (*psz) 814 while (*psz) 771 815 psz++; 772 816 __write (2, " ", 1); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/stdlib.h
-
Property cvs2svn:cvs-rev
changed from
1.15
to1.16
r809 r810 180 180 */ 181 181 #if __POSIX_VISIBLE /* >= ??? */ 182 /* int posix_memalign(void **, size_t, size_t); (ADV)*/182 int posix_memalign(void **, size_t, size_t); /* bird: we implement this. */ 183 183 /** @todo int rand_r(unsigned *); */ /* (TSF) */ 184 184 int setenv(const char *, const char *, int); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/umalloc.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r809 r810 47 47 #define _HEAP_TILED 0x02 48 48 #define _HEAP_SHARED 0x04 49 #define _HEAP_HIGHMEM 0x08 /* advisory flag */ 49 50 50 51 #define _BLOCK_CLEAN 1 … … 95 96 void *_utmalloc (Heap_t, size_t); 96 97 97 98 98 #if defined (__cplusplus) 99 99 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.