]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The kdump data stream is an unaligned data stream for stat and
authorWarner Losh <imp@FreeBSD.org>
Thu, 18 Feb 2010 16:05:09 +0000 (16:05 +0000)
committerWarner Losh <imp@FreeBSD.org>
Thu, 18 Feb 2010 16:05:09 +0000 (16:05 +0000)
commit30c1278f14e353c632e11a4285c9a67216e8be77
tree4f99f2843944fba2058eaabb4b13a09cdea89b84
parentc0f29c6e1d44b27d1e118443b2df8e0a372c97ac
The kdump data stream is an unaligned data stream for stat and
sockaddr structures.  As such, we have top copy the data structure
into a local buffer before we can reference it, otherwise we have
unaligned references (these are fixed up automatically on some CPUs,
but not on others).  We do this unconditionally to make the code
easier to read and understand.

Submitted by: Grzegorz Bernacki
usr.bin/kdump/kdump.c