* [ECOS]configuring heap memory
@ 2002-05-14 5:12 Andrea Acquaviva
2002-05-20 18:45 ` Jonathan Larmour
0 siblings, 1 reply; 13+ messages in thread
From: Andrea Acquaviva @ 2002-05-14 5:12 UTC (permalink / raw)
To: ecos-discuss
Hi all,
I have two questions about heap memory. I work with a strongarm based
board with 64MB of sdram.
1 - how can I specify two heap memory sections heap1 , heap2?
2 - how can I change the starting address of heap memory? (not contigue
to the bss section)
How must I change mlt files to do that?
Thanks,
Andrea.
--
Ing. Andrea Acquaviva
D.E.I.S. - Universita' di Bologna
V.le Risorgimento, 2 40136 BOLOGNA (ITALY)
Tel: (+39) 051-2093782 Fax: (+39) 051 2093786
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ECOS]configuring heap memory
2002-05-14 5:12 [ECOS]configuring heap memory Andrea Acquaviva
@ 2002-05-20 18:45 ` Jonathan Larmour
2002-05-21 7:39 ` David N. Welton
` (4 more replies)
0 siblings, 5 replies; 13+ messages in thread
From: Jonathan Larmour @ 2002-05-20 18:45 UTC (permalink / raw)
To: Andrea Acquaviva; +Cc: ecos-discuss
Andrea Acquaviva wrote:
>
> Hi all,
> I have two questions about heap memory. I work with a strongarm based
> board with 64MB of sdram.
>
> 1 - how can I specify two heap memory sections heap1 , heap2?
> 2 - how can I change the starting address of heap memory? (not contigue
> to the bss section)
>
> How must I change mlt files to do that?
You can use the Memory Layout Tool in the version 1 configuration tool. Or
you can edit the .ldi and .h files in the include/pkgconf directory. Define
a heap2 in exactly the same way (other than the address) as heap1 was
defined. Use the definition of heap1 to guide you in how to define heap2.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 13+ messages in thread
* [ECOS] pcmb_screen keyboard patch
2002-05-20 18:45 ` Jonathan Larmour
2002-05-21 7:39 ` David N. Welton
@ 2002-05-21 7:39 ` David N. Welton
2002-05-21 8:23 ` Gary Thomas
2002-05-22 8:33 ` [ECOS] interrupts - deleting/finding by vector David N. Welton
` (2 subsequent siblings)
4 siblings, 1 reply; 13+ messages in thread
From: David N. Welton @ 2002-05-21 7:39 UTC (permalink / raw)
To: ecos-discuss
Don't recall if this got posted previously, or if it's maybe in the
new sources that you have, but I had this problem:
--- packages/hal/i386/pcmb/current/src/pcmb_screen.c 30 Nov 2001 13:09:27 -0000 1.3
+++ packages/hal/i386/pcmb/current/src/pcmb_screen.c 25 Apr 2002 13:26:31 -0000
@@ -285,7 +285,7 @@
{ 0xFF, 0xFF, 0xFF, 0xFF, },
{ 0x1b, 0x1b, 0x1b, 0xFF, },
{ '1', '!', 0xFF, 0xFF, },
-{ '2', '"', 0xFF, 0xFF, },
+{ '2', '@', 0xFF, 0xFF, },
{ '3', '#', 0xFF, 0xFF, },
{ '4', '$', 0xFF, 0xFF, },
{ '5', '%', 0xFF, 0xFF, },
@@ -324,7 +324,7 @@
{ 'k', 'K', 0x0b, 0xFF, },
{ 'l', 'L', 0x0c, 0xFF, },
{ ';', ':', 0xFF, 0xFF, },
-{ 0x27, '@', 0xFF, 0xFF, },
+{ 0x27, '"', 0xFF, 0xFF, },
{ '#', '~', 0xFF, 0xFF, },
{ '`', '~', 0xFF, 0xFF, },
{ '\\', '|', 0x1C, 0xFF, },
Thanks,
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ECOS]configuring heap memory
2002-05-20 18:45 ` Jonathan Larmour
@ 2002-05-21 7:39 ` David N. Welton
2002-05-21 8:22 ` Andrea Acquaviva
2002-05-21 7:39 ` [ECOS] pcmb_screen keyboard patch David N. Welton
` (3 subsequent siblings)
4 siblings, 1 reply; 13+ messages in thread
From: David N. Welton @ 2002-05-21 7:39 UTC (permalink / raw)
To: ecos-discuss
Jonathan Larmour <jlarmour@redhat.com> writes:
> Or you can edit the .ldi and .h files in the include/pkgconf
> directory. Define a heap2 in exactly the same way (other than the
> address) as heap1 was defined. Use the definition of heap1 to guide
> you in how to define heap2.
Here's my stab at an example, at least for i386 floppy (although
presumably the others might be made to work in a similar fashion?), as
this seems to be a FAQ:
In heaps.hxx:
#define CYGMEM_HEAP_COUNT 2
Tacked on to the *end* of mlt_i386_pc_floppy.h:
#ifndef __ASSEMBLER__
extern char CYG_LABEL_NAME (__heap2) [];
#endif
#define CYGMEM_SECTION_heap2 (CYG_LABEL_NAME (__heap2))
#define CYGMEM_SECTION_heap2_SIZE (0xa00000)
^^^^^^^^ insert whatever here
The end of mlt_i386_pc_floppy.ldi:
CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
CYG_LABEL_DEFN(__heap2) = ALIGN (0x8);
SECTIONS_END
}
Those seemed to do the trick for me!
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ECOS]configuring heap memory
2002-05-21 7:39 ` David N. Welton
@ 2002-05-21 8:22 ` Andrea Acquaviva
2002-05-21 8:23 ` David N. Welton
2002-05-28 13:57 ` Jonathan Larmour
0 siblings, 2 replies; 13+ messages in thread
From: Andrea Acquaviva @ 2002-05-21 8:22 UTC (permalink / raw)
To: David N. Welton; +Cc: ecos-discuss
"David N. Welton" wrote:
> Jonathan Larmour <jlarmour@redhat.com> writes:
>
> > Or you can edit the .ldi and .h files in the include/pkgconf
> > directory. Define a heap2 in exactly the same way (other than the
> > address) as heap1 was defined. Use the definition of heap1 to guide
> > you in how to define heap2.
>
> Here's my stab at an example, at least for i386 floppy (although
> presumably the others might be made to work in a similar fashion?), as
> this seems to be a FAQ:
>
> In heaps.hxx:
>
> #define CYGMEM_HEAP_COUNT 2
>
> Tacked on to the *end* of mlt_i386_pc_floppy.h:
>
> #ifndef __ASSEMBLER__
> extern char CYG_LABEL_NAME (__heap2) [];
> #endif
> #define CYGMEM_SECTION_heap2 (CYG_LABEL_NAME (__heap2))
> #define CYGMEM_SECTION_heap2_SIZE (0xa00000)
> ^^^^^^^^ insert whatever here
>
> The end of mlt_i386_pc_floppy.ldi:
>
> CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
> CYG_LABEL_DEFN(__heap2) = ALIGN (0x8);
> SECTIONS_END
> }
>
> Those seemed to do the trick for me!
>
> --
> David N. Welton
> Consulting: http://www.dedasys.com/
> Personal: http://www.dedasys.com/davidw/
> Free Software: http://www.dedasys.com/freesoftware/
> Apache Tcl: http://tcl.apache.org/
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
Thanks David.
This way heap2 will be contiguous to heap1.
How can I specify a different start address for heap2?
Thanks for your help,
Andrea.
--
Ing. Andrea Acquaviva
D.E.I.S. - Universita' di Bologna
V.le Risorgimento, 2 40136 BOLOGNA (ITALY)
Tel: (+39) 051-2093782 Fax: (+39) 051 2093786
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ECOS]configuring heap memory
2002-05-21 8:22 ` Andrea Acquaviva
@ 2002-05-21 8:23 ` David N. Welton
2002-05-28 13:57 ` Jonathan Larmour
1 sibling, 0 replies; 13+ messages in thread
From: David N. Welton @ 2002-05-21 8:23 UTC (permalink / raw)
To: Andrea Acquaviva; +Cc: ecos-discuss
Andrea Acquaviva <aacquaviva@deis.unibo.it> writes:
> Thanks David. This way heap2 will be contiguous to heap1. How can
> I specify a different start address for heap2?
Boh! I don't know, unfortunately. I'm kind of surprised I actually
got the code I posted working.
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ECOS] pcmb_screen keyboard patch
2002-05-21 7:39 ` [ECOS] pcmb_screen keyboard patch David N. Welton
@ 2002-05-21 8:23 ` Gary Thomas
2002-05-25 5:45 ` David N. Welton
0 siblings, 1 reply; 13+ messages in thread
From: Gary Thomas @ 2002-05-21 8:23 UTC (permalink / raw)
To: David N. Welton; +Cc: eCos Discussion
Ah, the differences (some of them) between a British and an American
keyboard :-) Perhaps we need a configuration option for this.
On Tue, 2002-05-21 at 06:38, David N. Welton wrote:
>
> Don't recall if this got posted previously, or if it's maybe in the
> new sources that you have, but I had this problem:
>
> --- packages/hal/i386/pcmb/current/src/pcmb_screen.c 30 Nov 2001 13:09:27 -0000 1.3
> +++ packages/hal/i386/pcmb/current/src/pcmb_screen.c 25 Apr 2002 13:26:31 -0000
> @@ -285,7 +285,7 @@
> { 0xFF, 0xFF, 0xFF, 0xFF, },
> { 0x1b, 0x1b, 0x1b, 0xFF, },
> { '1', '!', 0xFF, 0xFF, },
> -{ '2', '"', 0xFF, 0xFF, },
> +{ '2', '@', 0xFF, 0xFF, },
> { '3', '#', 0xFF, 0xFF, },
> { '4', '$', 0xFF, 0xFF, },
> { '5', '%', 0xFF, 0xFF, },
> @@ -324,7 +324,7 @@
> { 'k', 'K', 0x0b, 0xFF, },
> { 'l', 'L', 0x0c, 0xFF, },
> { ';', ':', 0xFF, 0xFF, },
> -{ 0x27, '@', 0xFF, 0xFF, },
> +{ 0x27, '"', 0xFF, 0xFF, },
> { '#', '~', 0xFF, 0xFF, },
> { '`', '~', 0xFF, 0xFF, },
> { '\\', '|', 0x1C, 0xFF, },
>
> Thanks,
> --
> David N. Welton
> Consulting: http://www.dedasys.com/
> Personal: http://www.dedasys.com/davidw/
> Free Software: http://www.dedasys.com/freesoftware/
> Apache Tcl: http://tcl.apache.org/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 13+ messages in thread
* [ECOS] interrupts - deleting/finding by vector
2002-05-20 18:45 ` Jonathan Larmour
2002-05-21 7:39 ` David N. Welton
2002-05-21 7:39 ` [ECOS] pcmb_screen keyboard patch David N. Welton
@ 2002-05-22 8:33 ` David N. Welton
2002-05-28 14:06 ` Jonathan Larmour
2003-01-10 22:50 ` "scriptics.com" -> "tcl.tk" David N. Welton
2003-03-13 23:13 ` [ECOS] ecos web site front page David N. Welton
4 siblings, 1 reply; 13+ messages in thread
From: David N. Welton @ 2002-05-22 8:33 UTC (permalink / raw)
To: ecos-discuss
I want to write some code that might want to insert its own interrupts
(I'm not positive, but I'm still experimenting).
Is there a way to
1) find out if a given vector has a had an interrupt created for it?
2) if so, delete/replace it?
I didn't see anything like this in the API...
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ECOS] pcmb_screen keyboard patch
2002-05-21 8:23 ` Gary Thomas
@ 2002-05-25 5:45 ` David N. Welton
0 siblings, 0 replies; 13+ messages in thread
From: David N. Welton @ 2002-05-25 5:45 UTC (permalink / raw)
To: eCos Discussion
Gary Thomas <gthomas@redhat.com> writes:
> Ah, the differences (some of them) between a British and an American
> keyboard :-)
I suspected as much.
> Perhaps we need a configuration option for this.
Yes, especially considering that in the future, it might be of
interest to plug in different keyboard types - Italian, French,
German, etc...
Thanks,
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ECOS]configuring heap memory
2002-05-21 8:22 ` Andrea Acquaviva
2002-05-21 8:23 ` David N. Welton
@ 2002-05-28 13:57 ` Jonathan Larmour
1 sibling, 0 replies; 13+ messages in thread
From: Jonathan Larmour @ 2002-05-28 13:57 UTC (permalink / raw)
To: Andrea Acquaviva; +Cc: David N. Welton, ecos-discuss
Andrea Acquaviva wrote:
> > The end of mlt_i386_pc_floppy.ldi:
> >
> > CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
> > CYG_LABEL_DEFN(__heap2) = ALIGN (0x8);
> > SECTIONS_END
> > }
> >
> > Those seemed to do the trick for me!
> Thanks David.
> This way heap2 will be contiguous to heap1.
> How can I specify a different start address for heap2?
Simply specify the address in the appropriate line in the .ldi file, e.g.:
CYG_LABEL_DEFN(__heap2) = 0x100000;
or you can use expressions - see the GNU ld manual on linker scripts for
details of what's permitted.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ECOS] interrupts - deleting/finding by vector
2002-05-22 8:33 ` [ECOS] interrupts - deleting/finding by vector David N. Welton
@ 2002-05-28 14:06 ` Jonathan Larmour
0 siblings, 0 replies; 13+ messages in thread
From: Jonathan Larmour @ 2002-05-28 14:06 UTC (permalink / raw)
To: David N. Welton; +Cc: ecos-discuss
"David N. Welton" wrote:
>
> I want to write some code that might want to insert its own interrupts
> (I'm not positive, but I'm still experimenting).
>
> Is there a way to
>
> 1) find out if a given vector has a had an interrupt created for it?
>
> 2) if so, delete/replace it?
>
> I didn't see anything like this in the API...
It's not part of the "official" API as such, but each HAL has a macro
called HAL_INTERRUPT_IN_USE you can use to determine if an interrupt vector
has something already installed on it. Deleting/replacing it can then be
done using the standard functions. Look at that in the hal_intr.h file in
the arch source directory of the appropriate HAL.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 13+ messages in thread
* "scriptics.com" -> "tcl.tk"
2002-05-20 18:45 ` Jonathan Larmour
` (2 preceding siblings ...)
2002-05-22 8:33 ` [ECOS] interrupts - deleting/finding by vector David N. Welton
@ 2003-01-10 22:50 ` David N. Welton
2003-03-13 23:13 ` [ECOS] ecos web site front page David N. Welton
4 siblings, 0 replies; 13+ messages in thread
From: David N. Welton @ 2003-01-10 22:50 UTC (permalink / raw)
To: ecos-discuss
find . -type f | xargs fgrep scriptics.com |less
turns up a few references to scriptics. These are out of date, as
'www.tcl.tk' is the canonical name for the Tcl/Tk site.
Thanks,
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
^ permalink raw reply [flat|nested] 13+ messages in thread
* [ECOS] ecos web site front page
2002-05-20 18:45 ` Jonathan Larmour
` (3 preceding siblings ...)
2003-01-10 22:50 ` "scriptics.com" -> "tcl.tk" David N. Welton
@ 2003-03-13 23:13 ` David N. Welton
4 siblings, 0 replies; 13+ messages in thread
From: David N. Welton @ 2003-03-13 23:13 UTC (permalink / raw)
To: ecos-discuss
If I may make a few suggestions:
Looking through the FAQ, you have this very nice blurb in it:
eCos (embedded Configurable operating system) is an
open-source, royalty-free, highly configurable,
application-specific operating system ideal for embedded
systems development. eCos is targeted at high-volume
applications in consumer electronics, telecommunications,
automotive, and other deeply embedded applications. eCos
ensures embedded developers have a common software
infrastructure for delivering a diverse range of embedded
products and enables embedded software developers to focus on
delivering better products, instead of developing or
maintaining a real-time operating system in addition to the
products themselves.
I think you guys ought to put that on the front page, at the top.
Putting either the 'news' or 'about eCos' sections on a seperate page
would make the front page a little less cluttered. You have to page
through lots of old news to even notice the 'about ecos' material at
the bottom.
Just a few thoughts...
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2003-03-13 20:54 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-14 5:12 [ECOS]configuring heap memory Andrea Acquaviva
2002-05-20 18:45 ` Jonathan Larmour
2002-05-21 7:39 ` David N. Welton
2002-05-21 8:22 ` Andrea Acquaviva
2002-05-21 8:23 ` David N. Welton
2002-05-28 13:57 ` Jonathan Larmour
2002-05-21 7:39 ` [ECOS] pcmb_screen keyboard patch David N. Welton
2002-05-21 8:23 ` Gary Thomas
2002-05-25 5:45 ` David N. Welton
2002-05-22 8:33 ` [ECOS] interrupts - deleting/finding by vector David N. Welton
2002-05-28 14:06 ` Jonathan Larmour
2003-01-10 22:50 ` "scriptics.com" -> "tcl.tk" David N. Welton
2003-03-13 23:13 ` [ECOS] ecos web site front page David N. Welton
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).