diff options
| author | Michael Brown | 2007-01-11 06:42:06 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-11 06:42:06 +0100 |
| commit | fbfed969650a88badc905678d69b7c8212999fde (patch) | |
| tree | 5c1360241b99261c483a3034e83e4a73ccd11bcc /src/include/gpxe/buffer.h | |
| parent | I hate NULL pointer dereferences. (diff) | |
| download | ipxe-fbfed969650a88badc905678d69b7c8212999fde.tar.gz ipxe-fbfed969650a88badc905678d69b7c8212999fde.tar.xz ipxe-fbfed969650a88badc905678d69b7c8212999fde.zip | |
buffer.c should be using copy_{to,from}_user, rather than
copy_{to,from}_phys.
Diffstat (limited to 'src/include/gpxe/buffer.h')
| -rw-r--r-- | src/include/gpxe/buffer.h | 10 |
1 files changed, 5 insertions, 5 deletions
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 <stdint.h> -#include <io.h> +#include <gpxe/uaccess.h> /** @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 */ |
