The current Macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all!

As I already mentioned in my earlier emails, I am working on a linux port
for a new architecture. 

I'm now trying to define the "current" macro. I read that most architectures
keep a pointer to the thread_info instance in some processor register, so I
thought it will be perhaps ok if I'll do it too. 

Well, that's actually not a problem, since I can get the content of any
register using inline assembly instructions. But which register should I
use? 

I mean, where in the kernel is a macro or a function which stores the
pointer to thread_info in some register? In other words, how do I find out
which register is actually used by the kernel for storing that pointer?

I also want to thank you all for your answers to my earlier emails. You have
really helped me a lot and I'm glad, that I joined this mailing list!

Regards, Paul 


-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux