2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-22 17:41:55 +00:00

Added debug messages

This commit is contained in:
Michael Brown 2005-05-17 13:36:12 +00:00
parent 3ce6504f14
commit a76b9c3f19

View File

@ -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