Re: Memory mapped hardware registers
From: Michael Schnell (mschnell_at_bschnell_dot_de_at_aol.com)
Date: 01/23/05
- Previous message: Simon Paradis: "Memory mapped hardware registers"
- In reply to: Simon Paradis: "Memory mapped hardware registers"
- Next in thread: Simon Paradis: "Re: Memory mapped hardware registers"
- Reply: Simon Paradis: "Re: Memory mapped hardware registers"
- Reply: Anton Erasmus: "Re: Memory mapped hardware registers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 23 Jan 2005 21:32:09 +0100
I suppose you are using µCLinux. As there is no memory management unit,
you can access the hardware as well in Kernel as in user mode.
Why not just load a pointer with the appropriate address:
struct _SIMCR *psimcr
psimcr = (struct _SIMCR *) 0xYFFA00;
psimcr -> exoff = 0x11;
etc.
BTW.: You are the first person I meet using the GNU compiler with an
68K. I might be intending to do that (for a non-Linux project). So I
have some questions. What debugger are you using ? Does this work OK ?
Thanks
-Michael
- Previous message: Simon Paradis: "Memory mapped hardware registers"
- In reply to: Simon Paradis: "Memory mapped hardware registers"
- Next in thread: Simon Paradis: "Re: Memory mapped hardware registers"
- Reply: Simon Paradis: "Re: Memory mapped hardware registers"
- Reply: Anton Erasmus: "Re: Memory mapped hardware registers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|