summaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2003-07-12 01:38:35 +0000
committerEric Biederman <ebiederm@xmission.com>2003-07-12 01:38:35 +0000
commit64f7162e1746b543a01ae3084d1d615cc8e966d6 (patch)
treef7ad29d05cd7af195ebbb42abe4fb681ce4d0cbd /src/boot
parent542fe8056bc0566a4cb5fa2e4c490aaeab673290 (diff)
- Initialize list pointers
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@949 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/elfboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/boot/elfboot.c b/src/boot/elfboot.c
index da0e909ced..272aee9d73 100644
--- a/src/boot/elfboot.c
+++ b/src/boot/elfboot.c
@@ -366,6 +366,7 @@ static int build_elf_segment_list(
struct segment *ptr;
int i;
memset(head, 0, sizeof(*head));
+ head->phdr_next = head->phdr_prev = head;
head->next = head->prev = head;
for(i = 0; i < headers; i++) {
struct segment *new;