changeset 1485:0e10930859c3

Disable use of common stack for interrupts
author gthomas
date Wed, 04 Feb 2004 15:44:15 +0000
parents af696e5657f1
children 8fd0d2092033
files packages/redboot/current/ChangeLog packages/redboot/current/cdl/redboot.cdl
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -1,3 +1,9 @@
+2004-02-04  Gary Thomas  <gary@mlbassoc.com>
+
+	* cdl/redboot.cdl: Do not build with "common" interrupt stack
+	support.  This can cause problems when running programs (via
+	the "go" command) as interrupts will corrupt RedBoot's stack.
+
 2004-01-18  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/main.c: Fix build problem if GDB stubs are not included.
--- a/packages/redboot/current/cdl/redboot.cdl
+++ b/packages/redboot/current/cdl/redboot.cdl
@@ -9,7 +9,7 @@
 ## -------------------------------------------
 ## This file is part of eCos, the Embedded Configurable Operating System.
 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-## Copyright (C) 2002, 2003 Gary Thomas
+## Copyright (C) 2002, 2003, 2004 Gary Thomas
 ##
 ## eCos is free software; you can redistribute it and/or modify it under
 ## the terms of the GNU General Public License as published by the Free
@@ -57,6 +57,10 @@ cdl_package CYGPKG_REDBOOT {
            This package supports the Redboot \[stand-alone debug monitor\]
            using eCos as the underlying board support mechanism."
 
+    # Use of separate interrupt stack causes problems when running
+    # programs as they can end up trashing RedBoot's stack
+    requires { CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK == 0 }
+
     # Since the CYGDAT_REDBOOT_CONSOLE_DEV setting ends up in the platform
     # HAL header, we need to include that here (via hal.h).
     define_proc {