summaryrefslogtreecommitdiff
path: root/kern/macros.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-02-10 11:27:24 +0100
committerRichard Braun <rbraun@sceen.net>2018-02-12 21:09:42 +0100
commit68e95635b39a755a0a6282f42ce91b2e676348c6 (patch)
treeef738d758195cdf50a19129cc9b9a8f37d2adef0 /kern/macros.h
parent0215812c408cdfe879363759290d522573c565e7 (diff)
Add TODO entries
Diffstat (limited to 'kern/macros.h')
-rw-r--r--kern/macros.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/kern/macros.h b/kern/macros.h
index 2c06be51..0411da23 100644
--- a/kern/macros.h
+++ b/kern/macros.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2010, 2013 Richard Braun.
+ * Copyright (c) 2009-2018 Richard Braun.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,6 +19,8 @@
*
* This file is a top header in the inclusion hierarchy, and shouldn't include
* other headers that may cause circular dependencies.
+ *
+ * TODO Improve documentation.
*/
#ifndef _KERN_MACROS_H
@@ -28,10 +30,14 @@
#error "GCC 4+ required"
#endif
+#ifndef __ASSEMBLER__
+#include <stddef.h>
+#endif
+
/*
* Attributes for variables that are mostly read and seldom changed.
*/
-#define __read_mostly __section(".data.read_mostly")
+#define __read_mostly __section(".data.read_mostly")
#define MACRO_BEGIN ({
#define MACRO_END })