From b3c5e41bc05bc622c637d1da75a3c63091e4e789 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Tue, 31 Mar 2015 12:57:05 +0200 Subject: kern: import `macros.h' from x15 Import the macro definitions from the x15 kernel project, and replace all similar definitions littered all over the place with it. Importing this file will make importing code from the x15 kernel easier. We are already using the red-black tree implementation and the slab allocator from it, and we will import even more code in the near future. * kern/list.h: Do not define `structof', include `macros.h' instead. * kern/rbtree.h: Likewise. * kern/slab.c: Do not define `ARRAY_SIZE', include `macros.h' instead. * i386/grub/misc.h: Likewise. * i386/i386/xen.h: Do not define `barrier', include `macros.h' instead. * kern/macro_help.h: Delete file. Replaced by `macros.h'. * kern/macros.h: New file. * Makefrag.am (libkernel_a_SOURCES): Add new file, remove old file. * device/dev_master.h: Adopt accordingly. * device/io_req.h: Likewise. * device/net_io.h: Likewise. * i386/intel/read_fault.c: Likewise. * ipc/ipc_kmsg.h: Likewise. * ipc/ipc_mqueue.h: Likewise. * ipc/ipc_object.h: Likewise. * ipc/ipc_port.h: Likewise. * ipc/ipc_space.h: Likewise. * ipc/ipc_splay.c: Likewise. * ipc/ipc_splay.h: Likewise. * kern/assert.h: Likewise. * kern/ast.h: Likewise. * kern/pc_sample.h: Likewise. * kern/refcount.h: Likewise. * kern/sched.h: Likewise. * kern/sched_prim.c: Likewise. * kern/timer.c: Likewise. * kern/timer.h: Likewise. * vm/vm_fault.c: Likewise. * vm/vm_map.h: Likewise. * vm/vm_object.h: Likewise. * vm/vm_page.h: Likewise. --- device/dev_master.h | 2 +- device/io_req.h | 2 +- device/net_io.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'device') diff --git a/device/dev_master.h b/device/dev_master.h index 6ad11526..70d4c63f 100644 --- a/device/dev_master.h +++ b/device/dev_master.h @@ -37,7 +37,7 @@ #if NCPUS > 1 -#include +#include #include #include #include diff --git a/device/io_req.h b/device/io_req.h index 65e23e60..1ad46801 100644 --- a/device/io_req.h +++ b/device/io_req.h @@ -42,7 +42,7 @@ #include #include -#include +#include /* * IO request element, queued on device for delayed replies. diff --git a/device/net_io.h b/device/net_io.h index f6de8541..d4e24d41 100644 --- a/device/net_io.h +++ b/device/net_io.h @@ -38,7 +38,7 @@ #include #include -#include +#include #include #include -- cgit v1.2.3