summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
authorMichael Brown2005-05-17 15:36:12 +0200
committerMichael Brown2005-05-17 15:36:12 +0200
commita76b9c3f191dc6186daec72b029f4d2b3a7c09ac (patch)
treef60cb16547236f49a44f070fc26730a4cfd2a10c /src/arch
parentUse shared symbols for heap_ptr and heap_end (diff)
downloadipxe-a76b9c3f191dc6186daec72b029f4d2b3a7c09ac.tar.gz
ipxe-a76b9c3f191dc6186daec72b029f4d2b3a7c09ac.tar.xz
ipxe-a76b9c3f191dc6186daec72b029f4d2b3a7c09ac.zip
Added debug messages
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/i386/core/load_buffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/i386/core/load_buffer.c b/src/arch/i386/core/load_buffer.c
index 78cdb9af..a0a69814 100644
--- a/src/arch/i386/core/load_buffer.c
+++ b/src/arch/i386/core/load_buffer.c
@@ -18,6 +18,7 @@
int init_load_buffer ( struct buffer *buffer ) {
buffer->start = 0x7c00;
buffer->end = 0xa0000;
+ DBG ( "LOAD_BUFFER using [%x,%x)\n", buffer->start, buffer->end );
init_buffer ( buffer );
return 1;
}
@@ -46,6 +47,7 @@ int init_load_buffer ( struct buffer *buffer ) {
buffer->start = virt_to_phys ( data );
buffer->end = buffer->start + size;
+ DBG ( "LOAD_BUFFER using [%x,%x)\n", buffer->start, buffer->end );
init_buffer ( buffer );
return 1;
}
@@ -55,11 +57,14 @@ void trim_load_buffer ( struct buffer *buffer ) {
/* Shrink buffer */
new_start = erealloc ( phys_to_virt ( buffer->start ), buffer->fill );
+ DBG ( "LOAD_BUFFER shrunk from [%x,%x) to [%x,%x)\n", buffer->start,
+ buffer->end, virt_to_phys ( new_start ), buffer->end );
buffer->start = virt_to_phys ( new_start );
}
void done_load_buffer ( struct buffer *buffer ) {
efree ( phys_to_virt ( buffer->start ) );
+ DBG ( "LOAD_BUFFER freed [%x,%x)\n", buffer->start, buffer->end );
}
#endif