Skip to content

Commit

Permalink
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/paulus/ppc64-2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Torvalds committed Jun 30, 2005
2 parents c60e81e + 719d1cd commit 12829dc
Show file tree
Hide file tree
Showing 18 changed files with 291 additions and 530 deletions.
5 changes: 1 addition & 4 deletions arch/ppc64/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ obj-sec = $(foreach section, $(1), $(patsubst %,$(obj)/kernel-%.o, $(section)))
src-sec = $(foreach section, $(1), $(patsubst %,$(obj)/kernel-%.c, $(section)))
gz-sec = $(foreach section, $(1), $(patsubst %,$(obj)/kernel-%.gz, $(section)))

hostprogs-y := piggy addnote addRamDisk
hostprogs-y := addnote addRamDisk
targets += zImage zImage.initrd imagesize.c \
$(patsubst $(obj)/%,%, $(call obj-sec, $(required) $(initrd))) \
$(patsubst $(obj)/%,%, $(call src-sec, $(required) $(initrd))) \
Expand All @@ -78,9 +78,6 @@ addsection = $(CROSS32OBJCOPY) $(1) \
quiet_cmd_addnote = ADDNOTE $@
cmd_addnote = $(CROSS32LD) $(BOOTLFLAGS) -o $@ $(obj-boot) && $(obj)/addnote $@

quiet_cmd_piggy = PIGGY $@
cmd_piggy = $(obj)/piggyback $(@:.o=) < $< | $(CROSS32AS) -o $@

$(call gz-sec, $(required)): $(obj)/kernel-%.gz: % FORCE
$(call if_changed,gzip)

Expand Down
8 changes: 2 additions & 6 deletions arch/ppc64/boot/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

extern void *finddevice(const char *);
extern int getprop(void *, const char *, void *, int);
extern void printk(char *fmt, ...);
extern void printf(const char *fmt, ...);
extern int sprintf(char *buf, const char *fmt, ...);
void gunzip(void *, int, unsigned char *, int *);
Expand Down Expand Up @@ -147,10 +146,10 @@ void start(unsigned long a1, unsigned long a2, void *promptr)
}
a1 = initrd.addr;
a2 = initrd.size;
printf("initial ramdisk moving 0x%lx <- 0x%lx (%lx bytes)\n\r",
printf("initial ramdisk moving 0x%lx <- 0x%lx (0x%lx bytes)\n\r",
initrd.addr, (unsigned long)_initrd_start, initrd.size);
memmove((void *)initrd.addr, (void *)_initrd_start, initrd.size);
printf("initrd head: 0x%lx\n\r", *((u32 *)initrd.addr));
printf("initrd head: 0x%lx\n\r", *((unsigned long *)initrd.addr));
}

/* Eventually gunzip the kernel */
Expand Down Expand Up @@ -201,9 +200,6 @@ void start(unsigned long a1, unsigned long a2, void *promptr)

flush_cache((void *)vmlinux.addr, vmlinux.size);

if (a1)
printf("initrd head: 0x%lx\n\r", *((u32 *)initrd.addr));

kernel_entry = (kernel_entry_t)vmlinux.addr;
#ifdef DEBUG
printf( "kernel:\n\r"
Expand Down
43 changes: 0 additions & 43 deletions arch/ppc64/boot/mknote.c

This file was deleted.

83 changes: 0 additions & 83 deletions arch/ppc64/boot/piggyback.c

This file was deleted.

16 changes: 2 additions & 14 deletions arch/ppc64/boot/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void *finddevice(const char *name);
int getprop(void *phandle, const char *name, void *buf, int buflen);
void chrpboot(int a1, int a2, void *prom); /* in main.c */

void printk(char *fmt, ...);
int printf(char *fmt, ...);

/* there is no convenient header to get this from... -- paulus */
extern unsigned long strlen(const char *);
Expand Down Expand Up @@ -220,7 +220,7 @@ readchar(void)
case 1:
return ch;
case -1:
printk("read(stdin) returned -1\r\n");
printf("read(stdin) returned -1\r\n");
return -1;
}
}
Expand Down Expand Up @@ -627,18 +627,6 @@ int sprintf(char * buf, const char *fmt, ...)

static char sprint_buf[1024];

void
printk(char *fmt, ...)
{
va_list args;
int n;

va_start(args, fmt);
n = vsprintf(sprint_buf, fmt, args);
va_end(args);
write(stdout, sprint_buf, n);
}

int
printf(char *fmt, ...)
{
Expand Down
Loading

0 comments on commit 12829dc

Please sign in to comment.