From 190eedd8425c9065d91d3a517051ff9e46d0d468 Mon Sep 17 00:00:00 2001 From: Felix Kopp Date: Mon, 4 Jan 2021 14:58:52 +0100 Subject: [PATCH] toolchain: add stuff i forgot about --- include/stdint.h | 1 + include/toolchain.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/include/stdint.h b/include/stdint.h index 5f8f077..8430c46 100644 --- a/include/stdint.h +++ b/include/stdint.h @@ -25,6 +25,7 @@ typedef __UINT64_TYPE__ uint64_t; /** Unsigned size specifier. */ typedef __SIZE_TYPE__ size_t; +typedef __SIZE_TYPE__ uintptr_t; /** Signed size specifier (negative sizes mean error codes). */ typedef __PTRDIFF_TYPE__ ssize_t; typedef __PTRDIFF_TYPE__ ptrdiff_t; diff --git a/include/toolchain.h b/include/toolchain.h index 76b7730..b4f2dac 100644 --- a/include/toolchain.h +++ b/include/toolchain.h @@ -46,6 +46,9 @@ #define __section(name) __attribute__((section(#name))) #endif /* __section */ +/** Place a variable in program memory rather than into RAM. */ +#define __rodata __section(.rodata#) + /* * Copyright (c) 2020 Felix Kopp *