mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 04:20:17 +03:00
Use shared symbols for heap_ptr and heap_end
This commit is contained in:
@@ -13,7 +13,7 @@ struct heap_block {
|
|||||||
extern char _text[];
|
extern char _text[];
|
||||||
extern char _end[];
|
extern char _end[];
|
||||||
|
|
||||||
static physaddr_t heap_start, heap_end, heap_ptr;
|
static physaddr_t heap_start;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Find the largest contiguous area of memory that I can use for the
|
* Find the largest contiguous area of memory that I can use for the
|
||||||
|
|||||||
@@ -80,4 +80,13 @@ static inline void forget2 ( void *ptr ) {
|
|||||||
efree ( ptr );
|
efree ( ptr );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Heap markers. osloader.c and other code may wish to know the heap
|
||||||
|
* location, without necessarily wanting to drag in heap.o. We
|
||||||
|
* therefore declare these as shared (i.e. common) symbols.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
physaddr_t heap_ptr __asm__ ( "_shared_heap_ptr" );
|
||||||
|
physaddr_t heap_end __asm__ ( "_shared_heap_end" );
|
||||||
|
|
||||||
#endif /* HEAP_H */
|
#endif /* HEAP_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user