Voix first public mess

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
Post Reply
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Voix first public mess

Post by mystran »

http://www.cs.hut.fi/~tvoipio/files/voix/fd-348.img.gz is the latest image that I'd be happy if people would test a bit. (I'll keep this post up-to-date with updates)

Report anything that says "exception" or pastes lots of colorful stuff. If you manage to get it boot, there's a file which'll tell some more.

Nothing really fundamental, but I'd like to know if it crashes on anyone...

and mm... i HOPE the GRUB on the disk will boot on any i386 now....

You'll need a few megabytes of memory (I'd guess around 8 will work fine, maybe less) and mm.. it's relatively unlikely that it'll attempt to touch anything like a disk drive (hard or not), so no need to worry about that.

edit: oh and obviouosly report anything that says "panic" as well
Last edited by mystran on Sat Mar 31, 2007 2:05 pm, edited 2 times in total.
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

I renamed the file to .../fd-347.img.gz since it's easier that way for me to keep track of what SVN revision it was. :)
Last edited by mystran on Sat Mar 31, 2007 2:04 pm, edited 1 time in total.
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

It looks good mystran, Works perfectly under QEMU on a OpenBSD host..

Have fun with your project...
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

Did you find the egg?
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

Oh and for those that wanna see some quality code, I'll post the source code for the "shell" (that is, what is loaded as 'init' currently) here. :)

It won't compile as such (need "libvoix.a" interface library for the system calls, and the ../fs_types.h for the kernel types) but it someone might find it interesting to study, since it's relatively simple, yet implements some interesting stuff in userspace.

And if somebody wonders, my read() and write() are non-blocking, hence the event1 calls to wait for certain types of states on the file descriptors..

And mm.. I know there's a bug in cmd_cat. :P
Attachments
minicmd.c
(11.13 KiB) Downloaded 99 times
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

Egg?.. I don't think so...:?

But I noticed one thing... changing into / from inside of /dev for example apparently succeeds, but the current directory remains /dev..

Maybe you just don't use the / or \ notation for paths.. ?

No clue.. ;)

But && for example could be a handy "mini-shell" feature...

Code: Select all

=>> command1 arg && command2 arg
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

If you read the 'welcome' in / it'll tell you that absolute paths are still resolved as relative paths starting from current working directory, which probably explains your issue.. :)

Try 'cat welcome' when you are in /

edit: in other words, '/' in '/dev' starts lookup from '/dev', skips the leading '/', sees that it's end of string, and succeeds.

Oh and the reason I'm not giving anyone access to full source necessary to build the thing (or user processes) yet, is that my kernel doesn't properly validate memory for string-parameters to system calls (like stat(), open() or chdir()), because I've been too lazy to write code for it, as it'll have to check buffers and figure length of the string at the same time..
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

Ok, paths resolve from / properly now: http://www.cs.hut.fi/~tvoipio/files/voix/fd-348.img.gz

edit: though somebody forgot to actually update the /welcome file.. oh well
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

Brynet-Inc wrote:
But && for example could be a handy "mini-shell" feature...

Code: Select all

=>> command1 arg && command2 arg
Well... basicly... yes.

Eventually.

I'll do that as soon as:

1) I have working fork() and wait()
2) I've bothered to write proper tokenization for the shell.

If you look at the minicmd.c, you'll see that it doesn't tokenize anything really, beyond the command anyway, and it duplicates finding the argument in each command that takes an argument..

Once I've got (1) and (2) done, I can also implement pipes, at which point I can do a pager as well..

But my priority now is to get real filesystems mounted, which involves writing some device code to read floppies and/or harddisks, and then some filesystem code to actually extract interesting stuff from those.
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
Post Reply