Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292738
b: refs/heads/master
c: 12871c5
h: refs/heads/master
v: v3
  • Loading branch information
Matt Fleming authored and H. Peter Anvin committed Feb 28, 2012
1 parent 24fdacb commit 2af7187
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 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: 55f9709cd07c9d33e30b575ee1b3bfd0aeaa3760
refs/heads/master: 12871c568305a0b20f116315479a18cd46882e9b
1 change: 1 addition & 0 deletions trunk/arch/x86/boot/compressed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ LDFLAGS := -m elf_$(UTS_MACHINE)
LDFLAGS_vmlinux := -T

hostprogs-y := mkpiggy
HOST_EXTRACFLAGS += -I$(srctree)/tools/include

VMLINUX_OBJS = $(obj)/vmlinux.lds $(obj)/head_$(BITS).o $(obj)/misc.o \
$(obj)/string.o $(obj)/cmdline.o $(obj)/early_serial_console.o \
Expand Down
11 changes: 2 additions & 9 deletions trunk/arch/x86/boot/compressed/mkpiggy.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@
#include <stdio.h>
#include <string.h>
#include <inttypes.h>

static uint32_t getle32(const void *p)
{
const uint8_t *cp = p;

return (uint32_t)cp[0] + ((uint32_t)cp[1] << 8) +
((uint32_t)cp[2] << 16) + ((uint32_t)cp[3] << 24);
}
#include <tools/le_byteshift.h>

int main(int argc, char *argv[])
{
Expand Down Expand Up @@ -69,7 +62,7 @@ int main(int argc, char *argv[])
}

ilen = ftell(f);
olen = getle32(&olen);
olen = get_unaligned_le32(&olen);
fclose(f);

/*
Expand Down

0 comments on commit 2af7187

Please sign in to comment.