Re: Architectures with strict alignment?

2008-01-04 Thread Marco van de Voort
On Sat, Dec 08, 2007 at 03:43:30AM +0100, Ivan Voras wrote: > Which of the architectures FreeBSD supports (if any) have strict memory > alignment requirements? (in the sense that accessing a 32-bit integer > not aligned on a 32-bit address results in a hardware trap/exception). I do know that old

Re: Threading system calls (int 80h)

2006-10-16 Thread Marco van de Voort
> > 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

Re: hello world but not in 32bit x86 but in amd64 for amd64 platform

2005-08-18 Thread Marco van de Voort
> > Could you inform me if there exist somewhere such a program > > cfr the 32bit hello world example in > > Chapter 11 > > x86 Assembly Language Programming > > FreeBSD Developers' Handbook > > The procedure should be the same no matter what architecture you are > using. Just use AMD64 assembly

ARG_MAX increase

2005-02-23 Thread Marco van de Voort
I saw ARG_MAX was increased in 6.0. Recently I noticed that the lang/fpc-devel port currently hits the old limit in certain (though rare) cases), and this is annoying. (some testing revealed that half the increase of 6.0 to 131k params is also ok) Any chance ARG_MAX will be upped in -STABLE too?

Re: USB developer please look at cdce driver -- (Was: Driver for Yopy PDA)

2004-11-29 Thread Marco van de Voort
> On Tue, Nov 23, 2004 at 11:09:59AM +0100, Marco van de Voort wrote: > > I'm also in need for a cdce device. > > > > I had the below URL running with 5.2 (and some currents from mid-summer), > > but it fails to compile with 5.3 > > > > http://www.ga

Re: USB developer please look at cdce driver -- (Was: Driver for Yopy PDA)

2004-11-23 Thread Marco van de Voort
[ cdce device, amongst others for zaurus] > not even a nibble from [EMAIL PROTECTED] thinking that hackers@ might be a > more appropriate venue. i know that everything is hectic now with 5.3, > so perhaps when the dust settles a bit... I'm also in need for a cdce device. I had the below URL

x86-64 syscall ABI conventions

2004-05-12 Thread Marco van de Voort
To start with the FPC port for x86-64, I've objdumped an empty C prg on an x86-64, and read the abi document on x86-64.org, but don't understand the move rcx,r10 before each syscall. Why is this done? What is exactly saved? If it is a save, where is it restored from r10? E.g. 00402094 <

Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-11 Thread Marco van de Voort
> I also don't think it's the issue that needs to be dealt with - > distribution is much, much, MUCH bigger an issue than "shall we get rid > of floppies"? I sent this to the list before, but it got ignored, so > I'll send it again, where Jordan points out we have bigger issues to > deal with w

ABI Compliance FreeBSD syscalls

2003-11-08 Thread Marco van de Voort
Are FreeBSD syscalls (on x86) x86 ABI compliant? IOW do they save the required registers (IIRC ebx,esi,edi) ? I tried to derive it from the sources, but my gcc pragmaese is not on a high enough level for that. ___ [EMAIL PROTECTED] mailing list http://

Re: Kylix in FreeBSD

2003-11-07 Thread Marco van de Voort
Hmm, and to the list :) > Rod Person + Terry Lamber wrote: > > On Thursday 06 November 2003 09:09 am, It was written: > > > If you futs with getting Kylix to run under FreeBSD, don't forget the > > > special glibc requirements that some versions of Kylix have. Maybe you > > > should probably si

Re: Kylix in FreeBSD

2003-11-06 Thread Marco van de Voort
> I do not know about the C++ part of Kylix, but about the Delphi part, maybe > it could be replaced with FreePascal (http://www.freepascal.org/). There > are even some projects that try to produce an IDE similar to Delphi > (http://www.freepascal.org/links.html). > > Has anyone gived a try to F

Re: Kylix in FreeBSD

2003-11-06 Thread Marco van de Voort
> * jasaorp <[EMAIL PROTECTED]> [031031 04:59]: > > Somebody uses Kylix in FreeBSD? > > What is the performance? > > The IDE doesn't run under FreeBSD. I worked on it a bit over this > summer when the most recent Kylix came out, and it appears to rely on > too many Linux-isms. > > The command-li

Re: Assembly Syscall Question

2003-07-31 Thread Marco van de Voort
> When making a system call to the kernel why is it necessary to push the > syscall value onto the stack when you don't call another function? You have to push anything the size of an address. Because the call return pushes the return adress on the stack. The 1st and 3rd both push 4 bytes, so th

ld: memory exhausted

2003-06-22 Thread Marco van de Voort
I'm trying to link a lang/fpc program, and ld bombs out with "ld: Memory exhausted" when it reaches my physical memory limit. Worse, it bombed when only one third of the .a's were loaded. I tried to link with the most optimal deadcode elimination, by simply creating a smartlinkable compilation un

Error in keyboard(4) manpage, off by one

2002-07-10 Thread Marco van de Voort
The keyboard(4) manpage is a bit vague about the numbering convention for thefunction keys (that generate multi byte escape) SETFKEY ioctl and in the keymap structure. The problem is that the C-level routines (SETFKEY, GETFKEY macro's, indices in the KEYMAP structure) are 0 based. (first functio

Opinion asked: unicode encoding

2001-03-21 Thread Marco van de Voort
Hi. The fpc core team is currently working on unicode support for Free Pascal, a pascal compiler that runs on FreeBSD/i386, and I would like to ask your opinion about what encoding to choose for the default multibyte string type. (Delphi's WideString), choices are UTF- 8 , -16 or UCS4. Not

good book or other source about socket programming

2001-02-24 Thread Marco van de Voort
I'm searching for a good book (or site/tutorial) about Unix socket programming, preferably FreeBSD specific. Any hints? Marco van de Voort ([EMAIL PROTECTED] or [EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: FreeBSD Linux emulation / arla 0.34.6

2001-01-24 Thread Marco van de Voort
ectory entry: Hmm. Could it be getdirentries itself, or some oddity that is not documented, but worked around in libc? I also have some getdirentries (FreeBSD version, patched together I directly admit) based code that sometimes doesn't seem to be able to find certain directories. Mar

direct ports access from userland.

2001-01-21 Thread Marco van de Voort
As mentioned often before ( :-) ) I'm porting a compiler. Currently, I'm working on the last bits, and one of the things left is the possibility to do port-access as root from userland under Linux. Does FreeBSD have any possibility to this? Marco van de Voort ([EMAIL PROTECTED]

console.h mouse.h

2000-12-30 Thread Marco van de Voort
If you know little (or even larger ones) programs that could demonstrate console.h (consio,kbio,fbio) and/or mouse.h could you mail/reply here? I already found aumix. (I'm writing a small article. I found out a lot myself and via the manpages, but some things don't work (and a working duplica

Re: FreeBSD vs Linux, Solaris, and NT

2000-12-29 Thread Marco van de Voort
> I work for a commercial company, and I did what I could to convince > people that *BSD is the way, and we're happily using FreeBSD. > now, we modiy the kernel sources, and this is a problem since this changes > the way people build the kernel. > what we did is provide procedures to modify the ke

Re: FreeBSD vs Linux, Solaris, and NT

2000-12-28 Thread Marco van de Voort
> >Afaik, anybody can spend any amount of advertising dollars he > >wants. > > Again, you miss the point. Spending dollars advertising is arguably a more > valuable contribution than altering a few line of code or submitting a > driver for some obscure card. Well, I don't think so. Good qualit

Re: FreeBSD vs Linux, Solaris, and NT

2000-12-28 Thread Marco van de Voort
> Mr Kamps comments are also "Well documented". I would think that EVERYONE > on this list would be offended by his insinuation that anyone that uses > FreeBSD and doesnt contribute source to FreeBSD is stealing. Where is that > outcry on that ridiculous idea? If you are offended by people usin

RE: FreeBSD vs. Linux, Solaris, and NT

2000-12-26 Thread Marco van de Voort
> I ran into people at NASA who use Python because (beside being a good > language) it isn't GPL. Pure paranoia. You don't have to share the code that is written IN Python. Only modifications TO python (if it were GPL) > For legal and security reason they cannot > share changes to code they m

Re: Pentium 4

2000-12-23 Thread Marco van de Voort
yes :-) IIRC the problem is that P4 reports itself back as family 15 or something like that, not 6. ? Marco van de Voort ([EMAIL PROTECTED] or [EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: FreeBSD vs Linux, Solaris, and NT

2000-12-22 Thread Marco van de Voort
[Charset iso-8859-1 unsupported, filtering to ASCII...] > > Trouble is there is no consistency in the rulings. > > United States Code Title 17 Chapter 12 Section 1201 Subsection (f) > > My basic interpretation of this is, if you legally own a copy of the > software (firmware is software), you ca

Text console programming on a low level.

2000-12-09 Thread Marco van de Voort
about this? Or other "really" fullscreen textconsole programs (so with extended keys, mouse and codepage support) as examples? I already went through Ncurses docs, but those are more generic in nature. Marco van de Voort ([EMAIL PROTECTED] or [EMAIL PROTECTED]) To Unsubscribe: send

Free Pascal compiler version 1.0.2 beta for FreeBSD is officially out !

2000-10-22 Thread Marco van de Voort
distribution is available from ftp://ftp.freepascal.org in directory /pub/fpc/dist/freebsd-1.0.2 and below and from FTP mirrors. Marco, speaking for the whole Free Pascal Development Team Marco van de Voort ([EMAIL PROTECTED] or [EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] wi

ncurses+ full screen apps

2000-10-18 Thread Marco van de Voort
Is it possible to capture alt-x keys on the console? Prefer a ncurses solution, but a FreeBSD specific, or even a RAW freebsd console one will do. Marco van de Voort ([EMAIL PROTECTED] or [EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe fr

Re: misc freebsd-internal questions.

2000-09-28 Thread Marco van de Voort
NTER part is interesting (since it is slightly tighter and on some processors faster), but not needed directly. Marco van de Voort ([EMAIL PROTECTED] or [EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

misc freebsd-internal questions.

2000-09-28 Thread Marco van de Voort
(for the development of the Free Pascal compiler port): - Is there a way to easily check FreeBSD version (3.x or 4.x+, because of the different syscallnrs for signal functions) on syscall level? - Can I use the assembler instruction ENTER ? E.g. Linux doesn't allow it, because it would

ENTER allowed?

2000-09-13 Thread Marco van de Voort
On Linux, use of the Enter is not allowed because of the internals of stack page fault handlers. Is this also the case on FreeBSD (3.x + )? Marco van de Voort ([EMAIL PROTECTED] or [EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hacker

pthread

2000-09-07 Thread Marco van de Voort
What does this line (from clone.s linuxpthread port) do? jmp PIC_PLT(HIDENAME(cerror)) Marco van de Voort ([EMAIL PROTECTED] or [EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: file creation times ?

2000-05-27 Thread Marco van de Voort
for NT (that supported NFS metadata). NTFS support is according to the docs a separate module. (but that is the theory, not practice) Marco van de Voort ([EMAIL PROTECTED] or [EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: file creation times ?

2000-05-26 Thread Marco van de Voort
in the MFS etc etc. One could write a *nix NTFS driver that supported NFS metadata. Marco van de Voort ([EMAIL PROTECTED] or [EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: getdirentries() and /proc

2000-05-26 Thread Marco van de Voort
ibc always seems to use 1024 bytes (constant called DIRBLKSIZ) for nbytes. But I didn't try to search /proc yet. Also keep in mind that using getdirentries you could get duplicate entries (libc readdir sorts and removes duplicates first). I however don't know if this is just because of ha

APJ Article

2000-05-06 Thread Marco van de Voort
l also reveal how to parse that structure. You can also rip out all libc initialisation code (or I can sent you my version, in which you only have to comment those U_SYSLINUX lines) if you don't link to libc. Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.ht

Re: solicit hardware and/or testers for newbusified drivers

2000-05-04 Thread Marco van de Voort
> > el: 3Com 3C501 ethernet card. I can remember the Linux ethernet howto seriously discouraging using this card. It seems to be quite faulty. Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: send mail to [EMAIL PROTECTED] with

fp statusword in sigcontext

2000-04-30 Thread Marco van de Voort
ytes are mostly not spare. */ int sc_fpregs[28]; /* machine state (FPU): */ int sc_spare[17]; }; Does somebody know how to distille the FP statusword from this struct? Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm>

Re: Multithreaded server performance

2000-04-25 Thread Marco van de Voort
ernels. Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Clone in userland

2000-04-22 Thread Marco van de Voort
if clone, then load process info? */ if (p2 == 0) return ESRCH; p2->p_sigparent = exit_signal; p2->p_md.md_regs->tf_esp = (unsigned int)args->stack; Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: sen

Syscall 198 __syscall, why??????? New port

2000-04-11 Thread Marco van de Voort
nction for lseek this way, instead of using my generic interface routines, which increases asm%) Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

ktrace, syscalls and filehandles.

2000-04-11 Thread Marco van de Voort
4.18 don't seem to work on 4.0. and I need them for an OBJPAS patch. The problems have to do with solib.c ) Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

xfree 4.0 xvidtune

2000-04-09 Thread Marco van de Voort
Last weekend I dl'ed the Xfree4.0 distribution (for FreeBSD) from Xfree86.org. xvidtune gpf's on my machine (but seems to work when xf86Setup calls it) Anyone has a similar experience? To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the mes

Re: fork test

2000-04-05 Thread Marco van de Voort
of the program? > You haven't really given/collected enough information to decide. Linux 2.2.x still supports only 1024 processes I believe. Rumour goes that 2.4 supports 16384 processes, so poster should try a 2.3.99pre kernel. P.s. this is one of the weirdest benchmarks I have ever seen

Re: Unicode on FreeBSD

2000-04-05 Thread Marco van de Voort
I'm sorry that I maybe missed part of the thread, but what parts that should get UNICODE support are we thinking of? Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hack

Re: GDB 5

2000-04-03 Thread Marco van de Voort
econdary platform, and my main gdb testing > platform (Since BeOS is my first platform). Not necesarily. The FPC team did send OBJPAS patches against 4.18 to the GDB team, and they just "forgot" them. When we resubmitted, the freeze was already a fact. Marco van de Voort ([EMAIL PR

Re: Is FreeBSD dead? Well, not in theory...

2000-03-13 Thread Marco van de Voort
ore being committed, I also see no dangers to users working on the kernel, specially not for own use. (it was trivial though, the order of the ports for the soundblaster mixer is different on some clones) Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Is FreeBSD dead ?

2000-03-11 Thread Marco van de Voort
own quality feedback, AND distille the high quality feedback from the large volume of feedback from news and email. Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: inner workings of the C compiler

2000-03-11 Thread Marco van de Voort
sent me a minimal C program linking to libc, and the commandline to compile it with -nostdlib ? I could throw all these experiences with non standard linking in a little tex doc. ( --nostdlib with and without libc, pure assembler instead of c (no gcc), some small chapter about syscall conventi

Re: inner workings of the C compiler

2000-03-10 Thread Marco van de Voort
ibc -o nss-test nss-test.o \ > ../../csu/i386-elf/crt1.o ../../csu/i386-elf/crti.o -lc I'm no expert, but I tried something like this a few weeks back(to totally link without libc), and I was wondering, aren't you missing crtbegin and crtend ? Marco van de Voort ([EMAIL P

Re: Can't write to stdout in assembly

2000-03-04 Thread Marco van de Voort
les using a lot of macro code. If you wish I can look up the names for you (I did this some weeks ago) I never searched for the kernel side. (the actual 0x80 handler) Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: send mail to [EMAIL PROTEC

Re: yamaha japan relationships anyone?

2000-02-23 Thread Marco van de Voort
> > Marco van de Voort wrote: > > > > [cut] [cut again] > If I have the drivers and disassemble them "real-time" directly from the > files (dlls, etc) and view the 'source' on the screen what is the > difference between this and viewing the '

Re: yamaha japan relationships anyone?

2000-02-21 Thread Marco van de Voort
is a wild guess, I'm not a lawyer) is if the r-e is done within an organisation. (e.g. GNU), and all users donate a penny to GNU to become a member. And members may use the driver. Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: 64bit OS?

2000-02-17 Thread Marco van de Voort
; Itanium support > is a pretty pointless exercise. Just a thought: One could use the released 64-bit Itanium gcc, create a i386->itanium crosscompiler, and start preparing some stuff? Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: send

Re: how to compile without libc (so not static)

2000-02-07 Thread Marco van de Voort
mic-linker /usr/libexec/ld-elf.so.1 >-L/usr/libexec/elf -L/usr/libexec -L/usr/lib /tmp/ccWvs216.o > /usr/libexec/elf/ld: warning: cannot find entry symbol _start; defaulting to 08048074 > /tmp/ccWvs216.o: In function `main': > /tmp/ccWvs216.o(.text+0xf): undefined reference to

Re: how to compile without libc (so not static)

2000-02-07 Thread Marco van de Voort
> >grep exit *.o > > > >in /usr/lib doesn't find me that label. > > > >What am I missing? > > Try this instead: > > nm /usr/lib/libc.a | grep exit I'm aware of that! That is libc which I'm trying to avoid here! (see man gcc, search for -nostdlib) I was referering to excuting gcc with -

Spontaneous reboot

2000-02-05 Thread Marco van de Voort
I know this is not meant as a bug reporting list, but since I'm on it for other purposes, I thought I could sent it in anyway. I trashed a FreeBSD (probably 3.4, I get the exact version mailed next week) by creating a bash script that contained ping xxx.yyy.zzz.vvv & line 15 times, and exe

Re: how to compile without libc (so not static)

2000-02-05 Thread Marco van de Voort
> According to Marco van de Voort: > > gcc -nostdlib empty.c /usr/lib/crti.o /usr/lib/crt0.o -o empty > > You mean crt1.o instead of crt0.o here right? crt0.o is the a.out version... Yup, my fault. > > grep exit *.o > > nm(1) is your Dear FriendĀ® here. Grep an

how to compile without libc (so not static)

2000-02-04 Thread Marco van de Voort
I finished the syscalls, so now I moved on the initialisation code. To test that I try to create an empty binary, which doesn't link to libc: I've put in an hour effort, and wrote the following C file: int main (void) { return 0; } gcc -nostdlib empty.c /usr/lib/crti.o /usr/lib/crt0.o -o emp

elf

2000-02-04 Thread Marco van de Voort
How can I disassemble ELF programs? I need to create my own startup code for FPC programs. (copying some variables before pascal code startup) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: porting linux app. Syscalls

2000-02-03 Thread Marco van de Voort
for fpc. This because the port of the required libraries and stubs probably will be ready earlier than the actual compiler support (adding of a target in the compiler source), specially because we want to redo the linux definitions to some unix-general and create linux and freebsd as special cases

Re: porting linux app. Syscalls

2000-02-03 Thread Marco van de Voort
> > see: http://www.freebsd.org/cgi/man.cgi > you can view linux syscalls from the slackware docs. Thank you that seems to be a good lead to start with. The problem was that I couldn't find any documentation :_) Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~

Re: porting linux app. Syscalls

2000-02-03 Thread Marco van de Voort
> what confuses me is that you don't support bootstrapping from the > system C compiler. How do you propose to do that with an all pascal source? Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: send mail to [EMAIL PROTECTED]

porting linux app. Syscalls

2000-02-02 Thread Marco van de Voort
d to start the compile(either native FBSD or linux) . (compiling the bsd version with the linux compiler is also possible I think, if a linux binary can create an ordinary FBSD binary) Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: