This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: [Fwd: Bug in newlib/libc/sys/arm/swi.h]
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- To: jjohnstn at redhat dot com, kipton at ghs dot com
- Cc: newlib at sources dot redhat dot com, gdb-patches at sources dot redhat dot com
- Date: 21 Jun 2002 07:53:55 +0100
- Subject: Re: [Fwd: Bug in newlib/libc/sys/arm/swi.h]
- References: <3D128149.5007530@redhat.com>
Hi Jeff, Hi Kipton,
> Nick,
>
> Can you confirm if this correct in your ARM documentation?
>
> -- Jeff J.
: From: Kipton Barros <kipton@ghs.com>
: Subject: Bug in newlib/libc/sys/arm/swi.h
:
: According to ADS Debug Target Guide v1.2 (ARM DUI 0058D), page 168, the
: code for a runtime error is 0x20023, not 0x20022 . I double checked this
: with the Angel Debug Protocol Messages (ARM DUI 0053D). I think the final
: line in swi.h should be changed from:
:
: #define ADP_Stopped_RunTimeError ((2 << 16) + 34)
:
: To:
:
: #define ADP_Stopped_RunTimeError ((2 << 16) + 35)
This is correct. As a consequence I am going to apply the patches
below to update newlib and the simulator.
Cheers
Nick
newlib
2002-06-21 Nick Clifton <nickc@cambridge.redhat.com>
* libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
sim/arm
2002-06-21 Nick Clifton <nickc@cambridge.redhat.com>
* armos.h (ADP_Stopped_RunTimeError): Set correct value.
Index: newlib/libc/sys/arm/swi.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/arm/swi.h,v
retrieving revision 1.1.1.1
diff -c -3 -p -w -r1.1.1.1 swi.h
*** newlib/libc/sys/arm/swi.h 17 Feb 2000 19:39:49 -0000 1.1.1.1
--- newlib/libc/sys/arm/swi.h 21 Jun 2002 06:52:07 -0000
***************
*** 62,65 ****
#define AngelSWI_Reason_EnterSVC (0x17)
#define AngelSWI_Reason_ReportException (0x18)
#define ADP_Stopped_ApplicationExit ((2 << 16) + 38)
! #define ADP_Stopped_RunTimeError ((2 << 16) + 34)
--- 62,65 ----
#define AngelSWI_Reason_EnterSVC (0x17)
#define AngelSWI_Reason_ReportException (0x18)
#define ADP_Stopped_ApplicationExit ((2 << 16) + 38)
! #define ADP_Stopped_RunTimeError ((2 << 16) + 35)
Index: sim/arm/armos.h
===================================================================
RCS file: /cvs/src/src/sim/arm/armos.h,v
retrieving revision 1.2
diff -c -3 -p -w -r1.2 armos.h
*** sim/arm/armos.h 1 Feb 2001 00:14:40 -0000 1.2
--- sim/arm/armos.h 21 Jun 2002 06:52:07 -0000
***************
*** 84,90 ****
#define AngelSWI_Reason_EnterSVC (0x17)
#define AngelSWI_Reason_ReportException (0x18)
#define ADP_Stopped_ApplicationExit ((2 << 16) + 38)
! #define ADP_Stopped_RunTimeError ((2 << 16) + 34)
#define FPESTART 0x2000L
#define FPEEND 0x8000L
--- 84,90 ----
#define AngelSWI_Reason_EnterSVC (0x17)
#define AngelSWI_Reason_ReportException (0x18)
#define ADP_Stopped_ApplicationExit ((2 << 16) + 38)
! #define ADP_Stopped_RunTimeError ((2 << 16) + 35)
#define FPESTART 0x2000L
#define FPEEND 0x8000L