summaryrefslogtreecommitdiff
path: root/src/arch/riscv/include
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2015-01-25 20:46:55 -0600
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2015-02-02 20:29:23 +0100
commita583924252ec0e49ed718d6c0709995881991c91 (patch)
tree506a41e2b6145957a5ee51d34373f6ba255fb406 /src/arch/riscv/include
parente299ae673c0833999f4df646748511f97e2ce39b (diff)
downloadcoreboot-a583924252ec0e49ed718d6c0709995881991c91.tar.xz
src/arch/*/include/stdint.h: Provide definitions for bool type
Although bool normally belongs in stdbool.h, for our use cases, providing these definitions in stdint.h is acceptable. Change-Id: I1d0ca1018efacc27d7a4a72aa452912e004401f9 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/8279 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@gmail.com>
Diffstat (limited to 'src/arch/riscv/include')
-rw-r--r--src/arch/riscv/include/stdint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/riscv/include/stdint.h b/src/arch/riscv/include/stdint.h
index a14d053757..24562cde9b 100644
--- a/src/arch/riscv/include/stdint.h
+++ b/src/arch/riscv/include/stdint.h
@@ -52,6 +52,9 @@ typedef int16_t s16;
typedef int32_t s32;
typedef int64_t s64;
+typedef uint8_t bool;
+#define true 1
+#define false 0
/* Types for `void *' pointers. */
typedef s64 intptr_t;