* sign-extending addresses in libgloss
@ 2005-04-18 20:35 Eric Christopher
2005-04-18 20:42 ` Richard Sandiford
2005-04-18 22:14 ` jjohnstn
0 siblings, 2 replies; 3+ messages in thread
From: Eric Christopher @ 2005-04-18 20:35 UTC (permalink / raw)
To: newlib; +Cc: binutils
So, were there any objections to this?
-eric
2005-04-18 Eric Christopher <echristo@redhat.com>
* mips/regs.S: Sign extend constants for mips64 and unify
address handling.
Index: regs.S
===================================================================
RCS file: /cvs/src/src/libgloss/mips/regs.S,v
retrieving revision 1.3
diff -u -p -w -r1.3 regs.S
--- regs.S 3 Apr 2004 01:02:51 -0000 1.3
+++ regs.S 18 Apr 2005 20:33:43 -0000
@@ -53,15 +53,16 @@
#define fp1 $f1
/* Useful memory constants: */
-#define K0BASE 0x80000000
#ifndef __mips64
+#define K0BASE 0x80000000
#define K1BASE 0xA0000000
#define K0BASE_ADDR ((char *)K0BASE)
#define K1BASE_ADDR ((char *)K1BASE)
#else
-#define K1BASE 0xFFFFFFFFA0000000LL
+#define K0BASE 0xFFFFFFFF80000000
+#define K1BASE 0xFFFFFFFFA0000000
#define K0BASE_ADDR ((char *)0xFFFFFFFF80000000LL)
-#define K1BASE_ADDR ((char *)K1BASE)
+#define K1BASE_ADDR ((char *)0xFFFFFFFFA0000000LL)
#endif
#define PHYS_TO_K1(a) ((unsigned)(a) | K1BASE)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sign-extending addresses in libgloss
2005-04-18 20:35 sign-extending addresses in libgloss Eric Christopher
@ 2005-04-18 20:42 ` Richard Sandiford
2005-04-18 22:14 ` jjohnstn
1 sibling, 0 replies; 3+ messages in thread
From: Richard Sandiford @ 2005-04-18 20:42 UTC (permalink / raw)
To: Eric Christopher; +Cc: newlib, binutils
Eric Christopher <echristo@redhat.com> writes:
> So, were there any objections to this?
>
> -eric
>
> 2005-04-18 Eric Christopher <echristo@redhat.com>
>
> * mips/regs.S: Sign extend constants for mips64 and unify
> address handling.
One vote in favour...
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sign-extending addresses in libgloss
2005-04-18 20:35 sign-extending addresses in libgloss Eric Christopher
2005-04-18 20:42 ` Richard Sandiford
@ 2005-04-18 22:14 ` jjohnstn
1 sibling, 0 replies; 3+ messages in thread
From: jjohnstn @ 2005-04-18 22:14 UTC (permalink / raw)
To: Eric Christopher; +Cc: newlib, binutils
On Mon, 18 Apr 2005, Eric Christopher wrote:
> So, were there any objections to this?
>
> -eric
>
If there are no objections, feel free to check it in.
-- Jeff J.
> 2005-04-18 Eric Christopher <echristo@redhat.com>
>
> * mips/regs.S: Sign extend constants for mips64 and unify
> address handling.
>
> Index: regs.S
> ===================================================================
> RCS file: /cvs/src/src/libgloss/mips/regs.S,v
> retrieving revision 1.3
> diff -u -p -w -r1.3 regs.S
> --- regs.S 3 Apr 2004 01:02:51 -0000 1.3
> +++ regs.S 18 Apr 2005 20:33:43 -0000
> @@ -53,15 +53,16 @@
> #define fp1 $f1
>
> /* Useful memory constants: */
> -#define K0BASE 0x80000000
> #ifndef __mips64
> +#define K0BASE 0x80000000
> #define K1BASE 0xA0000000
> #define K0BASE_ADDR ((char *)K0BASE)
> #define K1BASE_ADDR ((char *)K1BASE)
> #else
> -#define K1BASE 0xFFFFFFFFA0000000LL
> +#define K0BASE 0xFFFFFFFF80000000
> +#define K1BASE 0xFFFFFFFFA0000000
> #define K0BASE_ADDR ((char *)0xFFFFFFFF80000000LL)
> -#define K1BASE_ADDR ((char *)K1BASE)
> +#define K1BASE_ADDR ((char *)0xFFFFFFFFA0000000LL)
> #endif
>
> #define PHYS_TO_K1(a) ((unsigned)(a) | K1BASE)
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-04-18 22:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-18 20:35 sign-extending addresses in libgloss Eric Christopher
2005-04-18 20:42 ` Richard Sandiford
2005-04-18 22:14 ` jjohnstn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).