Browse Source

use malloc attribute

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
c4285e148d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/include/gpxe/malloc.h

+ 2
- 2
src/include/gpxe/malloc.h View File

19
 
19
 
20
 extern size_t freemem;
20
 extern size_t freemem;
21
 
21
 
22
-extern void * alloc_memblock ( size_t size, size_t align );
22
+extern void * __malloc alloc_memblock ( size_t size, size_t align );
23
 extern void free_memblock ( void *ptr, size_t size );
23
 extern void free_memblock ( void *ptr, size_t size );
24
 extern void mpopulate ( void *start, size_t len );
24
 extern void mpopulate ( void *start, size_t len );
25
 extern void mdumpfree ( void );
25
 extern void mdumpfree ( void );
35
  *
35
  *
36
  * @c align must be a power of two.  @c size may not be zero.
36
  * @c align must be a power of two.  @c size may not be zero.
37
  */
37
  */
38
-static inline void * malloc_dma ( size_t size, size_t phys_align ) {
38
+static inline void * __malloc malloc_dma ( size_t size, size_t phys_align ) {
39
 	return alloc_memblock ( size, phys_align );
39
 	return alloc_memblock ( size, phys_align );
40
 }
40
 }
41
 
41
 

Loading…
Cancel
Save