context::regs

"watermirror" <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel,gmane.spam.detected
Message-ID <[email protected]>
hi,the implemention of Context::regs() is like this:


return reinterpret_cast<Entry_frame*>(Cpu::stack_align(reinterpret_cast<Mword>(this + Size)) -1;


how this algorithm came out?i think the memory of the object is allocated by c++ compiler,  but why '(this + Size)' could get Entry_frame of a thread?

_______________________________________________
l4-hackers mailing list
[email protected]
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.