44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
/*
|
|
* \brief Linux kernel API
|
|
* \author Norman Feske
|
|
* \author Sebastian Sumpf
|
|
* \author Josef Soentgen
|
|
* \date 2014-08-21
|
|
*
|
|
* Based on the prototypes found in the Linux kernel's 'include/'.
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2014 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
/********************
|
|
** linux/poison.h **
|
|
********************/
|
|
|
|
/*
|
|
* In list.h, LIST_POISON1 and LIST_POISON2 are assigned to 'struct list_head
|
|
* *' as well as 'struct hlist_node *' pointers. Consequently, C++ compiler
|
|
* produces an error "cannot convert... in assignment". To compile 'list.h'
|
|
* included by C++ source code, we have to define these macros to the only
|
|
* value universally accepted for pointer assigments.h
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
#define LIST_POISON1 nullptr
|
|
#define LIST_POISON2 nullptr
|
|
#else
|
|
#define LIST_POISON1 ((void *)0x00100100)
|
|
#define LIST_POISON2 ((void *)0x00200200)
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
/******************
|
|
** linux/list.h **
|
|
******************/
|
|
|
|
#include <linux/list.h>
|