From fbfed969650a88badc905678d69b7c8212999fde Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 11 Jan 2007 05:42:06 +0000 Subject: buffer.c should be using copy_{to,from}_user, rather than copy_{to,from}_phys. --- src/include/gpxe/buffer.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/include') diff --git a/src/include/gpxe/buffer.h b/src/include/gpxe/buffer.h index e35e0b534..b366955c9 100644 --- a/src/include/gpxe/buffer.h +++ b/src/include/gpxe/buffer.h @@ -2,7 +2,7 @@ #define _GPXE_BUFFER_H #include -#include +#include /** @file * @@ -28,7 +28,7 @@ * size_t len; * * // We have an area of memory [buf_start,buf_start+len) into which to - * // load a file, where buf_start is a physical addresse. + * // load a file, where buf_start is a userptr_t. * memset ( &buffer, 0, sizeof ( buffer ) ); * buffer->start = buf_start; * buffer->len = len; @@ -43,7 +43,7 @@ * } * ... * // The whole file is now present at [buf_start,buf_start+filesize), - * // where buf_start is a physical address. The struct buffer can simply + * // where buf_start is a userptr_t. The struct buffer can simply * // be discarded. * * @endcode @@ -77,8 +77,8 @@ * */ struct buffer { - /** Physical start address of buffer */ - physaddr_t addr; + /** Start of buffer */ + userptr_t addr; /** Total length of buffer */ size_t len; /** Offset to first free block within buffer */ -- cgit v1.2.3-55-g7522