some newbie questions

Thomas Doerfler Thomas.Doerfler at imd-systems.de
Sat Feb 14 14:38:36 UTC 2004


Hello Sebastian,

> $ grep -r m360_t *
> cpukit/score/cpu/m68k/m68360.h:} m360_t;
> cpukit/score/cpu/m68k/m68360.h:extern volatile m360_t m360;
> 
> 
> this variable (m360) is havily used in console.c. so it must be defined
> somewhere, or not ?
> 
> 

as your findings show, it is declared in m68360.h (so the 
compiler knows it will be defined somewhere and it is of type 
m360_t). For this BSP family it is defined in the linker 
command file 
"c/src/lib/libbsp/m68k/gen68360/startup/linkcmds":

        /*
         * On-chip memory/peripherals
         */
        dpram : {
                m360 = .;
                . += (8 * 1024);
        } >dpram


wkr,
	Thomas Doerfler.
--------------------------------------------
IMD Ingenieurbuero fuer Microcomputertechnik
Thomas Doerfler           Herbststrasse 8
D-82178 Puchheim          Germany
email:    Thomas.Doerfler at imd-systems.de
PGP public key available at: http://www.imd-
systems.de/pgp_keys.htm




More information about the users mailing list