Jan Ringoš wrote: > >> Wouldn't something like this suffice? > >> > >> struct shared_struct volatile * my_shared_memory = (struct shared_struct > >> volatile *) 0x88000000; > > > >This would have been a simpler choice, the problem is that the code has > >already been written without pointers, through direct structures access, > >because it is a bit faster and smaller. > > In C++ you could use a reference :-) Otherwise, I don't see any other way.
Do this: #define my_shared_memory (* (volatile struct shared_struct *) 0x88000000) -- Jamie _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
