Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336220
b: refs/heads/master
c: 0032c85
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Dec 3, 2012
1 parent b2dd5c3 commit 4093864
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: de7531e8575ab383a0f5bb68b63e7891fce4765d
refs/heads/master: 0032c857454581510de1ca12615de5e38e543c92
12 changes: 6 additions & 6 deletions trunk/arch/sparc/boot/piggyback.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,27 +81,27 @@ static void usage(void)

static int start_line(const char *line)
{
if (strcmp(line + 8, " T _start\n") == 0)
if (strcmp(line + 10, " _start\n") == 0)
return 1;
else if (strcmp(line + 16, " T _start\n") == 0)
else if (strcmp(line + 18, " _start\n") == 0)
return 1;
return 0;
}

static int end_line(const char *line)
{
if (strcmp(line + 8, " A _end\n") == 0)
if (strcmp(line + 10, " _end\n") == 0)
return 1;
else if (strcmp (line + 16, " A _end\n") == 0)
else if (strcmp (line + 18, " _end\n") == 0)
return 1;
return 0;
}

/*
* Find address for start and end in System.map.
* The file looks like this:
* f0004000 T _start
* f0379f79 A _end
* f0004000 ... _start
* f0379f79 ... _end
* 1234567890123456
* ^coloumn 1
* There is support for 64 bit addresses too.
Expand Down

0 comments on commit 4093864

Please sign in to comment.