Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14919
b: refs/heads/master
c: fe3d728
h: refs/heads/master
i:
  14917: dd515f3
  14915: f24141b
  14911: 90f1568
v: v3
  • Loading branch information
Ralf Baechle committed Dec 1, 2005
1 parent 02feb45 commit 4a569ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 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: e76beeebff09b6a5eb338f306349ddc451a7804d
refs/heads/master: fe3d72858c34a464976c6f8076971e2862d5c3b8
13 changes: 12 additions & 1 deletion trunk/arch/mips/qemu/q-firmware.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
#include <linux/init.h>
#include <linux/string.h>
#include <asm/addrspace.h>
#include <asm/bootinfo.h>

void __init prom_init(void)
{
add_memory_region(0x0<<20, 0x10<<20, BOOT_MEM_RAM);
int *cmdline;

cmdline = (int *) (CKSEG0 + (0x10 << 20) - 260);
if (*cmdline == 0x12345678) {
if (*(char *)(cmdline + 1))
strcpy (arcs_cmdline, (char *)(cmdline + 1));
add_memory_region(0x0<<20, cmdline[-1], BOOT_MEM_RAM);
} else {
add_memory_region(0x0<<20, 0x10<<20, BOOT_MEM_RAM);
}
}

0 comments on commit 4a569ab

Please sign in to comment.