Use shared symbols for heap_ptr and heap_end

This commit is contained in:
Michael Brown
2005-05-17 13:35:43 +00:00
parent 479fb900a1
commit 3ce6504f14
2 changed files with 10 additions and 1 deletions

View File

@@ -80,4 +80,13 @@ static inline void forget2 ( void *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 */