commit | 0ad21ad0a4d02faf48b5ff94db0ffb7cb43773c2 | [log] [tgz] |
---|---|---|
author | H. Peter Anvin <hpa@linux.intel.com> | Tue Mar 04 14:49:10 2014 -0800 |
committer | H. Peter Anvin <hpa@linux.intel.com> | Tue Mar 04 14:49:10 2014 -0800 |
tree | ad15850633f4cb53d3ee62832a76fdc3e81a0399 | |
parent | c851f481cd16b1bd0442c8baa9c4ed12ceb86de3 [diff] |
rngd_rdrand: Support compiling for x32 by adding unative_t On the x32 ABI for x86-64, sizeof(long) == 4, but we still use the 8-byte randomness instructions and flags. In order to support compilation for x32, introduce a new type "unative_t" which is typedef'd to the appropriate type for the architecture. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>