Hi,
I hope this is the right place, havent read anything here for ages.
I was wondering whether the palcodes used by L4 on Alpha are disjunct to the ones used by OSF / BSD / Linux.
If not could they be made disjunct?
The idea I have in mind is to make a module for linux that catches the L4 syscalls and throws them back into user-space. That way a L4 environment could be setup within linux. It would be much like user-space-linux and would save a lot of reboots just to test out a few bytes of code.
On the other hand, inside L4 you could do the same with OSF / BSD / Linux syscalls and thus run their binaries under L4. (You want to run Netscape under L4? Or Mathematica? Or something as simple as xemacs and gcc?)
A l4-linux for alpha would also need those changes (if any) I believe.
MfG Goswin
On 22 Jan 2002, Goswin Brederlow wrote:
Hi,
I hope this is the right place, havent read anything here for ages.
I was wondering whether the palcodes used by L4 on Alpha are disjunct to the ones used by OSF / BSD / Linux.
yes they are. An exception is l4_whoami which is an experimental syscall anyway. I think it maps directly to the OSF whoami call.
If not could they be made disjunct?
The idea I have in mind is to make a module for linux that catches the L4 syscalls and throws them back into user-space. That way a L4 environment could be setup within linux. It would be much like user-space-linux and would save a lot of reboots just to test out a few bytes of code.
heh :) That would be an interesting project. I'd be interested to know how (if) you will deal with device drivers, memory etc.
On the other hand, inside L4 you could do the same with OSF / BSD / Linux syscalls and thus run their binaries under L4. (You want to run Netscape under L4? Or Mathematica? Or something as simple as xemacs and gcc?)
A l4-linux for alpha would also need those changes (if any) I believe.
Yes that is how we would run unmodified Linux/Alpha binaries on L4..
Cheers, Daniel
Dresden proposed a user mode L4 project. Ie running L4/(arch blah) on top of Linux/(arch blah).
Cheers, Adam
On Tue, 22 Jan 2002, Daniel Potts wrote:
On 22 Jan 2002, Goswin Brederlow wrote:
Hi,
I hope this is the right place, havent read anything here for ages.
I was wondering whether the palcodes used by L4 on Alpha are disjunct to the ones used by OSF / BSD / Linux.
yes they are. An exception is l4_whoami which is an experimental syscall anyway. I think it maps directly to the OSF whoami call.
If not could they be made disjunct?
The idea I have in mind is to make a module for linux that catches the L4 syscalls and throws them back into user-space. That way a L4 environment could be setup within linux. It would be much like user-space-linux and would save a lot of reboots just to test out a few bytes of code.
heh :) That would be an interesting project. I'd be interested to know how (if) you will deal with device drivers, memory etc.
On the other hand, inside L4 you could do the same with OSF / BSD / Linux syscalls and thus run their binaries under L4. (You want to run Netscape under L4? Or Mathematica? Or something as simple as xemacs and gcc?)
A l4-linux for alpha would also need those changes (if any) I believe.
Yes that is how we would run unmodified Linux/Alpha binaries on L4..
Cheers, Daniel
l4-hackers mailing list l4-hackers@os.inf.tu-dresden.de http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
Adam 'WeirdArms' Wiggins wrote:
Dresden proposed a user mode L4 project. Ie running L4/(arch blah)
on top of Linux/(arch blah).
I'm currently working on something like that. Give me a few months ;)
The idea I have in mind is to make a module for linux that catches the L4 syscalls and throws them back into user-space. That way a L4 environment could be setup within linux. It would be much like user-space-linux and would save a lot of reboots just to test out a few bytes of code.
The native Linux kernel already partly does this for you. L4 syscalls are reflected to user mode as SIGSEGV in the offending program. With proper handling of those signals it ought to work.
heh :) That would be an interesting project. I'd be interested to know how (if) you will deal with device drivers, memory etc.
User mode linux accesses memory through mmap'd pages. It also provides a few basic device drivers, i.e. the ubd filesystem which can possibly be made to work under L4 with some tweaking.
-Udo.
"Udo A. Steinberg" reality@delusion.de writes:
Adam 'WeirdArms' Wiggins wrote:
Dresden proposed a user mode L4 project. Ie running L4/(arch blah)
on top of Linux/(arch blah).
I'm currently working on something like that. Give me a few months ;)
s/month/days/ :)
Any cvs?
The idea I have in mind is to make a module for linux that catches the L4 syscalls and throws them back into user-space. That way a L4 environment could be setup within linux. It would be much like user-space-linux and would save a lot of reboots just to test out a few bytes of code.
The native Linux kernel already partly does this for you. L4 syscalls are reflected to user mode as SIGSEGV in the offending program. With proper handling of those signals it ought to work.
Hmm, at least something that gets reported as segfaults, segfault don't (according to the siginfo structure, which isn't filled out on alpha).
heh :) That would be an interesting project. I'd be interested to know how (if) you will deal with device drivers, memory etc.
User mode linux accesses memory through mmap'd pages. It also provides a few basic device drivers, i.e. the ubd filesystem which can possibly be made to work under L4 with some tweaking.
Does user mode linux work under alpha?
MfG Goswin
Daniel Potts danielp@cse.unsw.edu.au writes:
On 22 Jan 2002, Goswin Brederlow wrote:
Hi,
I hope this is the right place, havent read anything here for ages.
I was wondering whether the palcodes used by L4 on Alpha are disjunct to the ones used by OSF / BSD / Linux.
yes they are. An exception is l4_whoami which is an experimental syscall anyway. I think it maps directly to the OSF whoami call.
Great.
If not could they be made disjunct?
The idea I have in mind is to make a module for linux that catches the L4 syscalls and throws them back into user-space. That way a L4 environment could be setup within linux. It would be much like user-space-linux and would save a lot of reboots just to test out a few bytes of code.
heh :) That would be an interesting project. I'd be interested to know how (if) you will deal with device drivers, memory etc.
What device drivers? :) Whats an device?
One would need a console (pseudo terminal device where the palcode can read/write), which should be easy to do in kernel space, and some form of IPC between L4 and linux or some network emulation. Another emulated serial would probably do, because then slip or ppp could be used as soon as someone ports it.
Memory on the other hand is more tricky. I have a programm for linux that does its own memory protection via posix calls (mmap, sigaction, mprotect), but for alpha that needs a small kernel patch for the segfault handler (to make it work as its supposed to).
One could probably get away with introducing a new signal to the sigaction for palcodes. Maybe a subset of the illegal instruction or whatever a wrong palcode currently throws. Given that, everything can be done in user space, although memory managment with mprotect isn't the fastest or easiest.
But hey, beats a reboot any time.
On the other hand, inside L4 you could do the same with OSF / BSD / Linux syscalls and thus run their binaries under L4. (You want to run Netscape under L4? Or Mathematica? Or something as simple as xemacs and gcc?)
A l4-linux for alpha would also need those changes (if any) I believe.
Yes that is how we would run unmodified Linux/Alpha binaries on L4..
Cheers, Daniel
*dream* If L4 where that far.....
MfG Goswin
PS: any updates on the slow IRQ problem?
l4-hackers@os.inf.tu-dresden.de