Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111095
b: refs/heads/master
c: 265b89d
h: refs/heads/master
i:
  111093: 82a9ecd
  111091: b62cbbb
  111087: c943542
v: v3
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Oct 11, 2008
1 parent e87681e commit 580c119
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e0dfb20c2b77c6626a24578240266ace928cd2e7
refs/heads/master: 265b89db1058124ddbf0091ba3f8c020e3a5ae9d
15 changes: 15 additions & 0 deletions trunk/arch/mips/txx9/generic/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,21 @@ char * __init prom_getcmdline(void)
return &(arcs_cmdline[0]);
}

const char *__init prom_getenv(const char *name)
{
const s32 *str = (const s32 *)fw_arg2;

if (!str)
return NULL;
/* YAMON style ("name", "value" pairs) */
while (str[0] && str[1]) {
if (!strcmp((const char *)(unsigned long)str[0], name))
return (const char *)(unsigned long)str[1];
str += 2;
}
return NULL;
}

static void __noreturn txx9_machine_halt(void)
{
local_irq_disable();
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-mips/txx9/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ struct txx9_board_vec {
extern struct txx9_board_vec *txx9_board_vec;
extern int (*txx9_irq_dispatch)(int pending);
char *prom_getcmdline(void);
const char *prom_getenv(const char *name);
void txx9_wdt_init(unsigned long base);
void txx9_spi_init(int busid, unsigned long base, int irq);
void txx9_ethaddr_init(unsigned int id, unsigned char *ethaddr);
Expand Down

0 comments on commit 580c119

Please sign in to comment.