PATCH: merge.c white space cleanup

2013-01-24 Thread Ville Valkonen
Hi, save a few precious bytes by removing unnecessary white spaces from libc/merge.c. http://weezel.fsck.fi/merge.patch> -- Sincerely, Ville Valkonen

Re: [PATCH] integer divide fault trap on i386 snapshot

2013-01-24 Thread Karl Knutsson
Index: sys/arch/i386/isa/clock.c === RCS file: /cvs/src/sys/arch/i386/isa/clock.c,v retrieving revision 1.47 diff -u -r1.47 clock.c --- sys/arch/i386/isa/clock.c 10 Nov 2012 09:45:05 - 1.47 +++ sys/arch/i386/isa/clock.c 24

[PATCH] integer divide fault trap on i386 snapshot

2013-01-24 Thread Karl Knutsson
Revision 1.47 of sys/arch/i386/isa/clock.c causes division by zero on Parallels VM (reported by Sergey Bronnikov on misc@). The attached patch solves the issue. br Karl Knutsson [demime 1.01d removed an attachment of type text/x-diff] [demime 1.01d removed an attachment of type text/x-diff]

Re: vfs_syscall: doreadlinkat()

2013-01-24 Thread Matthew Dempsky
On Thu, Jan 24, 2013 at 9:57 AM, Maxime Villard wrote: > Hum here, if vp->v_type != VLNK, auio is untouched, but before returning > we use auio.uio_resid, which is not initialized. Is it? > Nice catch. We should probably move the *retval assignment up just after the VOP_READLINK() call, since t

Re: Detect on-die temp sensor for Atom E6xx on amd64

2013-01-24 Thread Christian Weisgerber
Matt Dainty wrote: > --- sys/arch/amd64/amd64/identcpu.c.orig 2013-01-14 22:23:43.0 > + > +++ sys/arch/amd64/amd64/identcpu.c 2013-01-14 22:33:21.0 + > @@ -506,7 +506,8 @@ > if (ci->ci_feature_sefflags & SEFF0EBX_SMAP) > replaces

vfs_syscall: doreadlinkat()

2013-01-24 Thread Maxime Villard
Hi, I was looking at readlink syscall. There is the following function in kern/vfs_syscalls.c: int doreadlinkat(struct proc *p, int fd, const char *path, char *buf, size_t count, register_t *retval) { struct vnode *vp; struct iovec aiov; struct uio auio; int err