Re: Threading system calls (int 80h)

2006-10-21 Thread Ekkehard Morgenstern
On Friday 20 October 2006 23:24, John-Mark Gurney wrote: > That's why you use rfork_thread(3)... Thanks! That really helps! :-) What I'm trying to do is to write a virtual machine in assembly language on FreeBSD that can be run right after the kernel has been loaded. I would like to avoid exter

Re: Threading system calls (int 80h)

2006-10-21 Thread Ekkehard Morgenstern
On Monday 16 October 2006 01:12, David Xu wrote: > > How do I use THR syscalls? > > Yes, you can use THR syscalls, they are more simple. > you can use thr_new to create a thread, and use thr_exit to exit > a thread. > You can learn how to use them by reading some code in libthr, > note, this interf

Re: Threading system calls (int 80h)

2006-10-15 Thread Ekkehard Morgenstern
On Sunday 15 October 2006 03:31, David Xu wrote: > You can use KSE syscalls or THR syscalls, for KSE syscalls you > should use bound thread, otherwise you have to support > UPCALLS and other complex things. How do I use THR syscalls? ___ freebsd-hackers@

Re: Threading system calls (int 80h)

2006-10-14 Thread Ekkehard Morgenstern
On Sunday 15 October 2006 01:32, David Xu wrote: > You are going to be unable to use libc if you create raw thread in your > program, libc uses pthread APIs, if you create a raw thread, your > program will crash if you use any libc function which needs pthread > interface. I don't want to link to

Re: Threading system calls (int 80h)

2006-10-14 Thread Ekkehard Morgenstern
ogram that creates threads using direct system calls. So, I guess, I have to go with one of the threading libraries... On Saturday 14 October 2006 15:40, Ekkehard Morgenstern wrote: > Hi! > > Does anyone know how to use the threading system calls that are accessible > via int 80h? &g

Threading system calls (int 80h)

2006-10-14 Thread Ekkehard Morgenstern
Hi! Does anyone know how to use the threading system calls that are accessible via int 80h? I would like to support multithreading in an assembly language program without linking to any of the threading libraries. Is that possible? Best wishes, Ekkehard.

Re: Systems programming on FreeBSD

2006-10-03 Thread Ekkehard Morgenstern
On Monday 02 October 2006 16:15, Alexander Leidinger wrote: >We share the sound API with the OpenSoundSystem (OSS). A description of > what each ioctl is supposed to do is available there. > > http://manuals.opensound.com/developer/ Thanks! :-) I had already found the PDF from a link in the sound

Re: Systems programming on FreeBSD

2006-10-03 Thread Ekkehard Morgenstern
On Monday 02 October 2006 17:37, Sean Bryant wrote: > If you're trying to get to the cam interface you can do that without the > ioctl interface and just use the cam interface. man cam to get that. OK, I will have a look at that, thank you. > But > note that only works for the cam devices (cd,

Re: Systems programming on FreeBSD

2006-10-02 Thread Ekkehard Morgenstern
On Monday 02 October 2006 12:24, John-Mark Gurney wrote: > Many aren't documented, but section 4 of the manpages is the place > where they are suppose to be documented... if you look at netintro(4), > you'll see a few for network devices.. > A few others like agp(4), bpf(4) and meteor(4) have ioctl

Systems programming on FreeBSD

2006-10-02 Thread Ekkehard Morgenstern
Hi, (I don't know if this is the right mailing list, point me in the right direction if necessary.) I would like to have some info regarding systems programming on FreeBSD. I have already looked at the available documentation (the handbooks, manpages), but there's some areas I cannot find any