Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: firmware/include/sysincludes.h

Issue 2865014: Assorted integration fixes. (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Add struct size tests Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | firmware/lib/cgptlib/include/gpt.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* System includes for vboot reference library. This is the ONLY 6 /* System includes for vboot reference library. This is the ONLY
7 * place in firmware/ where system headers may be included via 7 * place in firmware/ where system headers may be included via
8 * #include <...>, so that there's only one place that needs to be 8 * #include <...>, so that there's only one place that needs to be
9 * fixed up for platforms which don't have all the system includes. 9 * fixed up for platforms which don't have all the system includes.
10 * 10 *
(...skipping 12 matching lines...) Expand all
23 23
24 #if defined(HAVE_ENDIAN_H) && defined(HAVE_LITTLE_ENDIAN) 24 #if defined(HAVE_ENDIAN_H) && defined(HAVE_LITTLE_ENDIAN)
25 #include <byteswap.h> 25 #include <byteswap.h>
26 #include <memory.h> 26 #include <memory.h>
27 #endif 27 #endif
28 28
29 /* 64-bit operations, for platforms where they need to be function calls */ 29 /* 64-bit operations, for platforms where they need to be function calls */
30 #define UINT64_RSHIFT(v, shiftby) (((uint64_t)(v)) >> (shiftby)) 30 #define UINT64_RSHIFT(v, shiftby) (((uint64_t)(v)) >> (shiftby))
31 #define UINT64_MULT32(v, multby) (((uint64_t)(v)) * ((uint32_t)(multby))) 31 #define UINT64_MULT32(v, multby) (((uint64_t)(v)) * ((uint32_t)(multby)))
32 32
33 /* Packing macros to support compilers such as MSVC that lack
34 * __attribute__((packed)) */
35 #define PACK_START
36 #define PACK_STOP
37
33 #else 38 #else
34 #include "biosincludes.h" 39 #include "biosincludes.h"
35 #endif 40 #endif
36 41
37 #endif /* VBOOT_REFERENCE_SYSINCLUDES_H_ */ 42 #endif /* VBOOT_REFERENCE_SYSINCLUDES_H_ */
OLDNEW
« no previous file with comments | « no previous file | firmware/lib/cgptlib/include/gpt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698