summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/list.h
diff options
context:
space:
mode:
authorMichael Brown2006-04-24 17:28:56 +0200
committerMichael Brown2006-04-24 17:28:56 +0200
commit5423f876fbd2f200b0583143469723739f8a297f (patch)
treeb5210fe86d66aa165192228e7e7ec96dd22e57e3 /src/include/gpxe/list.h
parentPrototype now clashes with the macro in arch/i386. (diff)
downloadipxe-5423f876fbd2f200b0583143469723739f8a297f.tar.gz
ipxe-5423f876fbd2f200b0583143469723739f8a297f.tar.xz
ipxe-5423f876fbd2f200b0583143469723739f8a297f.zip
Don't bother poisoning lists; it costs code size.
Diffstat (limited to 'src/include/gpxe/list.h')
-rw-r--r--src/include/gpxe/list.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/include/gpxe/list.h b/src/include/gpxe/list.h
index 7a951a00..7c6042b2 100644
--- a/src/include/gpxe/list.h
+++ b/src/include/gpxe/list.h
@@ -1,5 +1,5 @@
-#ifndef _LIST_H
-#define _LIST_H
+#ifndef _GPXE_LIST_H
+#define _GPXE_LIST_H
/** @file
*
@@ -12,14 +12,6 @@
#include <stddef.h>
/*
- * These are non-NULL pointers that will result in page faults
- * under normal circumstances, used to verify that nobody uses
- * non-initialized list entries.
- */
-#define LIST_POISON1 ( ( void * ) 0x00100100 )
-#define LIST_POISON2 ( ( void * ) 0x00200200 )
-
-/*
* Simple doubly linked list implementation.
*
* Some of the internal functions ("__xxx") are useful when
@@ -108,8 +100,6 @@ static inline void __list_del ( struct list_head * prev,
*/
static inline void list_del ( struct list_head *entry ) {
__list_del ( entry->prev, entry->next );
- entry->next = LIST_POISON1;
- entry->prev = LIST_POISON2;
}
/**
@@ -152,4 +142,4 @@ static inline int list_empty ( const struct list_head *head ) {
&pos->member != (head); \
pos = list_entry ( pos->member.next, typeof ( *pos ), member ) )
-#endif /* _LIST_H */
+#endif /* _GPXE_LIST_H */