1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Actually access the right first page if the file.

Bruce finally caught this bogon for me, Thank you Bruce !
Due to some part of the VM/buffer/pmap magic doing clustering, this bogon
managed to work better than 99.9% of the time.  Amazing.
If You ever again see a weird message from the gzip code, please tell me.
This commit is contained in:
Poul-Henning Kamp 1995-02-13 07:40:33 +00:00
parent 46fe71cc98
commit 1e3a24e880
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6342

View File

@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $Id: imgact_gzip.c,v 1.9 1994/10/22 11:40:27 phk Exp $
* $Id: imgact_gzip.c,v 1.10 1994/10/22 11:55:16 phk Exp $
*
* This module handles execution of a.out files which have been run through
* "gzip". This saves diskspace, but wastes cpu-cycles and VM.
@ -291,7 +291,7 @@ NextByte(void *vp)
return GZ_EOF;
}
}
igz->offset += PAGE_SIZE;
igz->offset = igz->idx & ~PAGE_MASK;
error = vm_mmap(kernel_map, /* map */
(vm_offset_t *) & igz->inbuf, /* address */