From 8dc766fe0e652c9ec4473804ee41982044679179 Mon Sep 17 00:00:00 2001 From: Chris Zankel Date: Thu, 31 May 2007 17:48:07 -0700 Subject: [PATCH] --- yaml --- r: 57451 b: refs/heads/master c: adba09f01577ea441a761a85aacb1e43b58d35c4 h: refs/heads/master i: 57449: 65cc6983a8d0e6f6d463673bc2c648575f6c67c0 57447: c8d54a0c211ebcefbae9cf8468623666e1223169 v: v3 --- [refs] | 2 +- trunk/arch/xtensa/kernel/head.S | 19 +++++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/[refs] b/[refs] index 192b7986cb89..74af834b79a2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: de4f6e5b41bef50fc981410ae8380f27f4e93bf8 +refs/heads/master: adba09f01577ea441a761a85aacb1e43b58d35c4 diff --git a/trunk/arch/xtensa/kernel/head.S b/trunk/arch/xtensa/kernel/head.S index ea89910efa44..67e69139520b 100644 --- a/trunk/arch/xtensa/kernel/head.S +++ b/trunk/arch/xtensa/kernel/head.S @@ -19,6 +19,8 @@ #include #include +#include + /* * This module contains the entry code for kernel images. It performs the * minimal setup needed to call the generic C routines. @@ -227,13 +229,14 @@ _startup: should_never_return: j should_never_return - /* Define some common data structures here. We define them - * here in this assembly file due to their unusual alignment - * requirements. - */ - .comm swapper_pg_dir,PAGE_SIZE,PAGE_SIZE - .comm empty_bad_page_table,PAGE_SIZE,PAGE_SIZE - .comm empty_bad_page,PAGE_SIZE,PAGE_SIZE - .comm empty_zero_page,PAGE_SIZE,PAGE_SIZE +/* + * BSS section + */ + +.section ".bss.page_aligned", "w" +ENTRY(swapper_pg_dir) + .fill PAGE_SIZE, 1, 0 +ENTRY(empty_zero_page) + .fill PAGE_SIZE, 1, 0