diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-03-21 21:57:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-03-21 21:57:16 +0000 |
commit | e420c1a80d1d0064c41e5b40cd6a93eb10fa59b6 (patch) | |
tree | 1b641a66d318535e58713c7496327256e1a9cbc6 | |
parent | c604ac1ac07b6a07bfca409fe2819b7958ae377b (diff) |
Use MAXBSIZE for block io limit (same value, but MAXPHYS is strictly a
kernel concept)
ok miod
-rw-r--r-- | sys/arch/macppc/stand/ofdev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/macppc/stand/ofdev.c b/sys/arch/macppc/stand/ofdev.c index 321a8f25a01..0d9dbed3acc 100644 --- a/sys/arch/macppc/stand/ofdev.c +++ b/sys/arch/macppc/stand/ofdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofdev.c,v 1.19 2011/11/19 16:11:55 mpi Exp $ */ +/* $OpenBSD: ofdev.c,v 1.20 2013/03/21 21:57:15 deraadt Exp $ */ /* $NetBSD: ofdev.c,v 1.1 1997/04/16 20:29:20 thorpej Exp $ */ /* @@ -122,7 +122,7 @@ devclose(struct open_file *of) net_close(op); if (op->dmabuf) OF_call_method("dma-free", op->handle, 2, 0, - op->dmabuf, MAXPHYS); + op->dmabuf, MAXBSIZE); OF_close(op->handle); op->handle = -1; @@ -325,7 +325,7 @@ devopen(struct open_file *of, const char *name, char **file) bzero(&ofdev, sizeof ofdev); ofdev.handle = handle; ofdev.dmabuf = NULL; - OF_call_method("dma-alloc", handle, 1, 1, MAXPHYS, &ofdev.dmabuf); + OF_call_method("dma-alloc", handle, 1, 1, MAXBSIZE, &ofdev.dmabuf); if (!strcmp(buf, "block")) { ofdev.type = OFDEV_DISK; ofdev.bsize = DEV_BSIZE; |