Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179152
b: refs/heads/master
c: 7e326d6
h: refs/heads/master
v: v3
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Jan 12, 2010
1 parent c8874ca commit b099a96
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 57 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: 0eb99a9354cfe73dfa76ef81c917f7655b1b306c
refs/heads/master: 7e326d687d182e45447c24daccaa9b60bae130d5
2 changes: 1 addition & 1 deletion trunk/arch/mips/powertv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
# under Linux.
#

obj-y += cmdline.o init.o memory.o reset.o time.o powertv_setup.o asic/ pci/
obj-y += init.o memory.o reset.o time.o powertv_setup.o asic/ pci/

EXTRA_CFLAGS += -Wall -Werror
47 changes: 0 additions & 47 deletions trunk/arch/mips/powertv/cmdline.c

This file was deleted.

15 changes: 9 additions & 6 deletions trunk/arch/mips/powertv/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
#include <asm/mips-boards/generic.h>
#include <asm/mach-powertv/asic.h>

#include "init.h"

int prom_argc;
int *_prom_argv, *_prom_envp;
static int *_prom_envp;
unsigned long _prom_memsize;

/*
Expand Down Expand Up @@ -109,16 +106,22 @@ static void __init mips_ejtag_setup(void)

void __init prom_init(void)
{
int prom_argc;
char *prom_argv;

prom_argc = fw_arg0;
_prom_argv = (int *) fw_arg1;
prom_argv = (char *) fw_arg1;
_prom_envp = (int *) fw_arg2;
_prom_memsize = (unsigned long) fw_arg3;

board_nmi_handler_setup = mips_nmi_setup;
board_ejtag_handler_setup = mips_ejtag_setup;

pr_info("\nLINUX started...\n");
prom_init_cmdline();

if (prom_argc == 1)
strlcat(arcs_cmdline, prom_argv, COMMAND_LINE_SIZE);

configure_platform();
prom_meminit();

Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/mips/powertv/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@

#ifndef _POWERTV_INIT_H
#define _POWERTV_INIT_H
extern int prom_argc;
extern int *_prom_argv;
extern unsigned long _prom_memsize;
#endif

0 comments on commit b099a96

Please sign in to comment.