osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: system call - msg#00017

List: micro-kernel.l4.l4ka.general

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

[suresh iyer]
> Where can i find some information on how to add a new system call to
> L4. I am using L4ka:pistachio 0.4

We don't really have information on this since adding arbitrary
syscalls is something that people are not supposed to be doing.

[Assuming ia32 architecture here.]

- Define your ABI (i.e., register usage).
- Implement user stubs (user/include/l4/ia32/syscalls.h).
- Add entry within KIP (src/api/v4/kernelinterface.cc). You can also
choose to make an arch specific syscall (see, e.g., SAL_Call in the
ia64 port).
- Implement KIP stubs (src/glue/v4-ia32/user.cc).
- Add in-kernel wrappers (include/glue/v4-ia32/syscalls.h).
- Implement your actual syscall.

No, adding syscalls to L4 is not supposed to be a simple procedure.

eSk




Thread at a glance:

Previous Message by Date:

Re: OS programming with L4Ka::Pistachio

Hi Arnuld, If you want to code on top of a UNIX system, then you should stick to your Linux box. Pistachio has nothing to do with UNIX. Since it's a microkernel it is not in need of any drivers. Besides coding drivers is one of the worst things to start with if you want to do kernel coding. Here are some reading suggestions if you want to do some kernel coding: 1. Intel architecture manuals vol. 1 and 3 http://www.intel.com/design/pentium4/manuals/index_new.htm 2. Read a book on OS programming like Modern Operating Systems from Andres Tanenbaum 3. Read through e.g. Linux specific mailing lists, try to find a small bug that you think you're able to fix and do that. Submit a patch to the according kernel maintainer. More info about the Linux kernel: http://www.kernel.org 4. Iterate 3 until you get some practice and a good idea of kernel concepts. This should get you started, -Bernhard On 11/10/06, arnuld <arnuld3@xxxxxxxxx> wrote: hai all, i am already searching the archives of different Google newsgroups for learning OS programming (specifically UNIX) . i only wanted to know one thing: will installing and using L4Ka::Pistachio help me in learning OS programming & OS in general? i know it will help me to learn about microkernel-architecture but that goal co-exists with learning OS programming. to give you an idea here is little about myself: "i have never done any real life programming. just self-teaching myself from last 1 year on my UNIX box. currently i am using BLAG Linux 50002 and very soon will switch to Fedora Core 6. i know some C++ from Stroustrup. may be i can write some device drivers for you :-) " BTW, there at FAQs there is no answer to my question. thanks for your time -- arnuld http://arnuld.blogspot.com

Next Message by Date:

learning about "microkernel" based OS

hai all, i asked a a similar question but this time my question is 50% different. Is "L4Ka::Pistachio" is a beginner's way to learn about "microkernel archictecture" & "microkernel based OSs" ? (i am a beginner to OS development & programming) -- arnuld http://arnuld.blogspot.com/

Previous Message by Thread:

system call

Where can i find some information on how to add a new system call to L4. I am using L4ka:pistachio 0.4 thanks suresh

Next Message by Thread:

learning about "microkernel" based OS

hai all, i asked a a similar question but this time my question is 50% different. Is "L4Ka::Pistachio" is a beginner's way to learn about "microkernel archictecture" & "microkernel based OSs" ? (i am a beginner to OS development & programming) -- arnuld http://arnuld.blogspot.com/
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!