From 8f62b39c03ab680e72ef991ebbe07bb7c0d57f82 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 2 May 2006 14:57:48 +0000 Subject: [PATCH] Move stack out to separate object, so that having a stack doesn't drag in setup.S. --- src/arch/i386/core/setup.S | 9 --------- src/arch/i386/core/stack.S | 13 +++++++++++++ 2 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 src/arch/i386/core/stack.S diff --git a/src/arch/i386/core/setup.S b/src/arch/i386/core/setup.S index 11b28880..e1c5a859 100644 --- a/src/arch/i386/core/setup.S +++ b/src/arch/i386/core/setup.S @@ -158,12 +158,3 @@ setup: popfl lret -/**************************************************************************** - * Internal stack - **************************************************************************** - */ - .section ".stack" - .align 8 -_stack: - .space 4096 -_estack: diff --git a/src/arch/i386/core/stack.S b/src/arch/i386/core/stack.S new file mode 100644 index 00000000..c2d138aa --- /dev/null +++ b/src/arch/i386/core/stack.S @@ -0,0 +1,13 @@ + .arch i386 + +/**************************************************************************** + * Internal stack + **************************************************************************** + */ + .section ".stack" + .align 8 + .globl _stack +_stack: + .space 4096 + .globl _estack +_estack: