Creating a kernel thread

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

 



Hi all!

I'm trying to port linux on a new target architecture. I've been editing the
/arch/.../kernel/process.c file (from another architecture) and came across
the "int arch_kernel_thread(int (*fn)(void*), void * arg, unsigned long
flags)" function. The comment above the function says, it creates a kernel
thread. 

There is some inline assemly-code in the body of the function and I don't
know, what it does.

Does anyone have an idea, what this function should generally do? Should it
set some of the CPU Registers or do something with the kernel stack?

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