Update buffer-handling code to enable expandable buffers.

This commit is contained in:
Michael Brown
2007-01-11 03:50:47 +00:00
parent bb2024c6d6
commit e2dcd05b67
6 changed files with 187 additions and 291 deletions

View File

@@ -314,7 +314,7 @@ static unsigned char *reinit_slam_state(
return 0;
}
bitmap_len = (state.total_packets + 1 + 7)/8;
state.image = phys_to_virt ( state.buffer->start );
state.image = phys_to_virt ( state.buffer->addr );
/* We don't use the buffer routines properly yet; fake it */
state.buffer->fill = total_bytes;
state.bitmap = state.image + total_bytes;