Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29827
b: refs/heads/master
c: cc13ad6
h: refs/heads/master
i:
  29825: e6db9d8
  29823: 99aa9cc
v: v3
  • Loading branch information
Heiko Carstens authored and Linus Torvalds committed Jun 25, 2006
1 parent 4761d14 commit 78c4601
Show file tree
Hide file tree
Showing 2 changed files with 7 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: bb12b76e2d795431fa9fd306eb274c69e5054dc7
refs/heads/master: cc13ad6217018833e590a0e2ef5937aa16162d34
15 changes: 6 additions & 9 deletions trunk/arch/s390/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <asm/irq.h>
#include <asm/page.h>
#include <asm/ptrace.h>
#include <asm/sections.h>

/*
* Machine setup..
Expand All @@ -65,11 +66,6 @@ volatile int __cpu_logical_map[NR_CPUS]; /* logical cpu to cpu address */
unsigned long __initdata zholes_size[MAX_NR_ZONES];
static unsigned long __initdata memory_end;

/*
* Setup options
*/
extern int _text,_etext, _edata, _end;

/*
* This is set up by the setup-routine at boot-time
* for S390 need to find out, what we have to setup
Expand All @@ -80,15 +76,11 @@ extern int _text,_etext, _edata, _end;

static struct resource code_resource = {
.name = "Kernel code",
.start = (unsigned long) &_text,
.end = (unsigned long) &_etext - 1,
.flags = IORESOURCE_BUSY | IORESOURCE_MEM,
};

static struct resource data_resource = {
.name = "Kernel data",
.start = (unsigned long) &_etext,
.end = (unsigned long) &_edata - 1,
.flags = IORESOURCE_BUSY | IORESOURCE_MEM,
};

Expand Down Expand Up @@ -422,6 +414,11 @@ setup_resources(void)
struct resource *res;
int i;

code_resource.start = (unsigned long) &_text;
code_resource.end = (unsigned long) &_etext - 1;
data_resource.start = (unsigned long) &_etext;
data_resource.end = (unsigned long) &_edata - 1;

for (i = 0; i < MEMORY_CHUNKS && memory_chunk[i].size > 0; i++) {
res = alloc_bootmem_low(sizeof(struct resource));
res->flags = IORESOURCE_BUSY | IORESOURCE_MEM;
Expand Down

0 comments on commit 78c4601

Please sign in to comment.