From 3ce6504f14855f40bc5f8aff09e53875d53993e4 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 17 May 2005 13:35:43 +0000 Subject: Use shared symbols for heap_ptr and heap_end --- src/include/heap.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/include') diff --git a/src/include/heap.h b/src/include/heap.h index 448ce5e0b..fbd3f643c 100644 --- a/src/include/heap.h +++ b/src/include/heap.h @@ -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 */ -- cgit v1.2.3-55-g7522