Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279704
b: refs/heads/master
c: e87c09a
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer committed Dec 24, 2011
1 parent d20c832 commit 1063059
Show file tree
Hide file tree
Showing 5 changed files with 40 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: 361a541dc2373e57cfa7a63e95fbe448ff5675d4
refs/heads/master: e87c09a899d38d1b6858e010c22a1200fb77965d
1 change: 1 addition & 0 deletions trunk/arch/m68k/include/asm/traps.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

typedef void (*e_vector)(void);
extern e_vector vectors[];
extern e_vector *_ramvec;

asmlinkage void auto_inthandler(void);
asmlinkage void user_inthandler(void);
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/m68k/kernel/vmlinux-std.lds
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ SECTIONS

RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE)

_sbss = .;
BSS_SECTION(0, 0, 0)
_ebss = .;

_edata = .; /* End of data section */

Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/m68k/kernel/vmlinux-sun3.lds
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ __init_begin = .;
. = ALIGN(PAGE_SIZE);
__init_end = .;

_sbss = .;
BSS_SECTION(0, 0, 0)
_ebss = .;

_end = . ;

Expand Down
34 changes: 34 additions & 0 deletions trunk/arch/m68k/mm/init_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <asm/page.h>
#include <asm/pgalloc.h>
#include <asm/system.h>
#include <asm/traps.h>
#include <asm/machdep.h>
#include <asm/io.h>
#ifdef CONFIG_ATARI
Expand Down Expand Up @@ -75,6 +76,38 @@ extern void init_pointer_table(unsigned long ptable);

extern pmd_t *zero_pgtable;

#if defined(CONFIG_MMU) && !defined(CONFIG_COLDFIRE)
#define VECTORS &vectors[0]
#else
#define VECTORS _ramvec
#endif

void __init print_memmap(void)
{
#define UL(x) ((unsigned long) (x))
#define MLK(b, t) UL(b), UL(t), (UL(t) - UL(b)) >> 10
#define MLM(b, t) UL(b), UL(t), (UL(t) - UL(b)) >> 20
#define MLK_ROUNDUP(b, t) b, t, DIV_ROUND_UP(((t) - (b)), 1024)

pr_notice("Virtual kernel memory layout:\n"
" vector : 0x%08lx - 0x%08lx (%4ld KiB)\n"
" kmap : 0x%08lx - 0x%08lx (%4ld MiB)\n"
" vmalloc : 0x%08lx - 0x%08lx (%4ld MiB)\n"
" lowmem : 0x%08lx - 0x%08lx (%4ld MiB)\n"
" .init : 0x%p" " - 0x%p" " (%4d KiB)\n"
" .text : 0x%p" " - 0x%p" " (%4d KiB)\n"
" .data : 0x%p" " - 0x%p" " (%4d KiB)\n"
" .bss : 0x%p" " - 0x%p" " (%4d KiB)\n",
MLK(VECTORS, VECTORS + 256),
MLM(KMAP_START, KMAP_END),
MLM(VMALLOC_START, VMALLOC_END),
MLM(PAGE_OFFSET, (unsigned long)high_memory),
MLK_ROUNDUP(__init_begin, __init_end),
MLK_ROUNDUP(_stext, _etext),
MLK_ROUNDUP(_sdata, _edata),
MLK_ROUNDUP(_sbss, _ebss));
}

void __init mem_init(void)
{
pg_data_t *pgdat;
Expand Down Expand Up @@ -125,6 +158,7 @@ void __init mem_init(void)
codepages << (PAGE_SHIFT-10),
datapages << (PAGE_SHIFT-10),
initpages << (PAGE_SHIFT-10));
print_memmap();
}

#ifdef CONFIG_BLK_DEV_INITRD
Expand Down

0 comments on commit 1063059

Please sign in to comment.