Re: [PATCH] x86: add a crc32 checksum to the kernel image.
From: Ian Campbell
Date: Fri Feb 01 2008 - 05:58:45 EST
On Thu, 2008-01-31 at 17:16 -0800, H. Peter Anvin wrote:
> David Newall wrote:
> > Isn't a crc32 calculation already defined? Yes; in lib/crc32.c. One is
> > surely enough.
>
> As long as it can be included in user-space code we should use that one.
I don't think it can. There is a main function surrounded by #ifdef
UNITTEST which might once have worked but now there is far too much
kernel gunk in there (as you might expect).
If I can work up the enthusiasm I might break out the core algorithm
into a separate file that can be used in both the kernel and userspace.
Ian.
--
Ian Campbell
Current Noise: Reverend Bizarre - Cirith Ungol
"Would I turn on the gas if my pal Mugsy were in there?"
"You might, rabbit, you might!"
-- Looney Tunes, Bugs and Thugs (1954, Friz Freleng)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/