Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12748 Discussions

Question about uclinux on nios

Altera_Forum
Honored Contributor II
1,128 Views

I'm studying nios and uclinux and met a question when I read source code in linux-2.0.x on cvs.uclinux.org. 

 

The question is: 

At the entry of sys_fork and sys_vfork, why use SAVE_LAST_WINDOW and STORE_WINDOW to store essential reg info? but at the entry of sys_clone, use FLUSH_WINDOWS. From the codes of the same part of sparcnommu, it use the method similar to FLUSH_WINDOWS to store essential reg info at the entry of sys_fork, sys_vfork, sys_clone. 

 

So why use SAVE_LAST_WINDOW and STORE_WINDOW but not FLUSH_WINDOWS in nios porting? and what it means the spare_reg_window variable in thread_struct struct in asm-niosnommu/processor.h? 

 

thanks!
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
359 Views

You should not work on Nios anymore. You should move to Nios II. 

Follow the wiki, 

http://nioswiki.jot.com/%c2%b5clinux (http://nioswiki.jot.com/%c2%b5clinux)
0 Kudos
Altera_Forum
Honored Contributor II
359 Views

 

--- Quote Start ---  

originally posted by hippo@Jan 3 2007, 08:35 PM 

you should not work on nios anymore. you should move to nios ii. 

follow the wiki, 

http://nioswiki.jot.com/%c2%b5clinux (http://nioswiki.jot.com/%c2%b5clinux

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=20339) 

--- quote end ---  

 

--- Quote End ---  

 

 

thanks for your reply, hippo. 

 

But I still want to understand those macro&#39;s usage http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
0 Kudos
Reply