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
>
> 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
> > 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
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?
> 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
[ 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
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 <
> 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
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://
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
> 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
> * 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
> 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
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
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
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
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
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
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]
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
> 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
> >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
> 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
> 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
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
[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
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
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
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
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
(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
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
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
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
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
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
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
> > 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
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>
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
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
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
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
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
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
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
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
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
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
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
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
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
> > 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 '
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
; 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
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
> >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 -
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
> 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
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
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
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
>
> 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/~
> 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]
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:
65 matches
Mail list logo