Re: jmp after setting PE?

2001-07-23 Thread Sergey Lyubka
On Mon, Jul 23, 2001 at 04:16:00PM -0700, John Baldwin wrote: > That's its purpose, to provide a mini-kenrel for the loader so we can write the > loader in C and not assembly. (gcc doesn't do well with generating code for > real mode). can't you do it at the moment ? write client in C

Re: review: sparc64 port commit candidate

2001-07-23 Thread Matthew Jacob
A start it is. It's starting to shape up. Something is indeed better than nothing. Do think you might want to keep upa in a separate bus directory? It's probably not worth the effort as all sparc64's of interest are UPA based. The next hard steps will be Psycho or Simba support and all the mass

Re: your mail

2001-07-23 Thread Dima Dorfman
Alfred Perlstein <[EMAIL PROTECTED]> writes: > * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [010723 19:47] wr > ote: > > Hello > > I am experimenting with kernel modules and am trying to write to a file. > > This is the syscall function (sorry of my terminology is messed up) > > > > static int write_f

Re: review: sparc64 port commit candidate

2001-07-23 Thread Alfred Perlstein
* Jake Burkholder <[EMAIL PROTECTED]> [010724 00:34] wrote: > Hello, > > Below are links to the sparc64 port I've been working on, which > I'd like to commit. > > The way I started the port was to make stub versions of all the > machine dependent functions in the kernel, which panic with an > in

review: sparc64 port commit candidate

2001-07-23 Thread Jake Burkholder
Hello, Below are links to the sparc64 port I've been working on, which I'd like to commit. The way I started the port was to make stub versions of all the machine dependent functions in the kernel, which panic with an informative message when called. Given minimal startup code and console suppo

Re: cluster size

2001-07-23 Thread Saju R Pillai
Hi, In case you are talking about mbuf clusters, then you will find the size mentioned in sys/mbuf.h. ( Just curious, why would you want to change the cluster size ?) Cheers __srp > On Mon, 23 Jul 2001, [iso-8859-1] vishwanath pargaonkar wrote: > > > Hi, > > in freebsd can we change the cluste

Re: pkg_add puzzlement

2001-07-23 Thread Pete Fritchman
++ 23/07/01 18:21 -0700 - Romain Kang: | I've been using this in a PLIST: | | 1 @exec test -d %D/var/run/procstates || mkdir -p %D/var/run/procstates | 2 @exec chown root.wheel %D/var/run/procstates && chmod 1775 %D/var/run/procstates [nitpick: you should use chown root:wheel] | | The rational

Invoking a userland function from kernel

2001-07-23 Thread y-carden
Dear Friends I'm incorporating the Real Time Protocol RTP (rfc 1889) to FreeBSD 4.0 kernel. Months ago, I compiled successfully the RTP Library API developed by Lucent into the FreeBSD kernel with the right logical and technical adjustments for the BSD kernel of course (copyin, copyout, mall

Re: your mail

2001-07-23 Thread Andrew R. Reiter
On 23 Jul 2001 [EMAIL PROTECTED] wrote: > > static int write_file(struct proc *p, void *arg) { > struct write_args *wstructure; > struct open_args *ostructure; > > ostructure->path="/tmp/blehfile"; > ostructure->flags = O_CREAT; > ostructure->mode = 0; > wst

pkg_add puzzlement

2001-07-23 Thread Romain Kang
I've been using this in a PLIST: 1 @exec test -d %D/var/run/procstates || mkdir -p %D/var/run/procstates 2 @exec chown root.wheel %D/var/run/procstates && chmod 1775 %D/var/run/procstates The rationale for each line: - 1 Install: make sure that the directory exists, avoiding error messages i

Re: your mail

2001-07-23 Thread Alfred Perlstein
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [010723 19:47] wrote: > Hello > I am experimenting with kernel modules and am trying to write to a file. > This is the syscall function (sorry of my terminology is messed up) > > static int write_file(struct proc *p, void *arg) { > struct write_args *

No Subject

2001-07-23 Thread rootx11
Hello I am experimenting with kernel modules and am trying to write to a file. This is the syscall function (sorry of my terminology is messed up) static int write_file(struct proc *p, void *arg) { struct write_args *wstructure; struct open_args *ostructure; ostructure->p

No Subject

2001-07-23 Thread rootx11
Hello I am experimenting with kernel modules and am trying to write to a file. This is the syscall function (sorry of my terminology is messed up) static int write_file(struct proc *p, void *arg) { struct write_args *wstructure; struct open_args *ostructure; ostructure->p

RE: passing function ptrs to syscalls

2001-07-23 Thread John Baldwin
On 23-Jul-01 Evan Sarmiento wrote: > Hello, > > I'm writing a system call which requires a function pointer as an argument, > In syscalls.master, it is specified as such: The kernel has no business executing untrusted code from userland. Use a kernel module to add code to the kernel. Either th

RE: jmp after setting PE?

2001-07-23 Thread John Baldwin
On 23-Jul-01 Weiguang SHI wrote: > Thanks. > I think I've found it in btx.s: > > 213 mov %eax,%cr0 # > 214 ljmp $SEL_SCODE,$init.8 # To 32-bit code > 215 .code32 > 216 init.8: xorl %ecx,%ecx

passing function ptrs to syscalls

2001-07-23 Thread Evan Sarmiento
Hello, I'm writing a system call which requires a function pointer as an argument, In syscalls.master, it is specified as such: 366 STD BSD { int prfw_inject_fp(int sl, int synum, pid_t pi d, int (*fp)() ); } However, when I try compiling the kernel, sysproto complains In file incl

Re: A full source-tour somewhere?

2001-07-23 Thread FUJISHIMA Satsuki
I think what you need is http://current.jp.FreeBSD.org/tour/ -- FUJISHIMA Satsuki At Mon, 23 Jul 2001 00:04:15 -0700, Julian Elischer wrote: > > At one stage at whistle we had the kernel fully cross-referenced > using the 'global' program (now in ports) which produced > a website that could b

Re: FreeBSD for ARM processor

2001-07-23 Thread Stephane E. Potvin
On Sun, Jul 22, 2001 at 03:10:56PM -0500, Alfred Perlstein wrote: > * Stephane E. Potvin <[EMAIL PROTECTED]> [010722 07:57] wrote: > > I tought that some might be interested by this: > > > > Copyright (c) 1992-2001 The FreeBSD Project. > > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1

RE: jmp after setting PE?

2001-07-23 Thread Weiguang SHI
Thanks. I think I've found it in btx.s: 213 mov %eax,%cr0 # 214 ljmp $SEL_SCODE,$init.8 # To 32-bit code 215 .code32 216 init.8: xorl %ecx,%ecx # Zero And there IS this "ljmp". Wel

Re: MPP and new processor designs.

2001-07-23 Thread Alfred Perlstein
* Leo Bicknell <[EMAIL PROTECTED]> [010723 15:58] wrote: > > A number of new chips have been released lately, along with some > enhancements to existing processors that all fall into the same > logic of parallelizing some operations. Why, just today I ran > across an article about http://www.the

Re: MPP and new processor designs.

2001-07-23 Thread Rayson Ho
You are talking about CMP (chip multi-processor) or SMT (Simultaneous Multi-Threading)!! Please look at the design of IBM Power4. Rayson --- Leo Bicknell <[EMAIL PROTECTED]> wrote: > > A number of new chips have been released lately, along with some > enhancements to existing processors that

MPP and new processor designs.

2001-07-23 Thread Leo Bicknell
A number of new chips have been released lately, along with some enhancements to existing processors that all fall into the same logic of parallelizing some operations. Why, just today I ran across an article about http://www.theregister.co.uk/content/3/20576.html, which bosts 128 ALU's on a sin

Estimado Usuario

2001-07-23 Thread Jorge Velazquez
Filtrar el agua de bebida incrementa nuestra calidad de vida. La mayoria de los malos sabores, olores y turbidez presente en el agua potable son causados por la presencia de cloro y materiales orgánicos. El cloro utilizado muy eficazmente para potabilizar el agua de bebida, es causal del mal s

RE: jmp after setting PE?

2001-07-23 Thread John Baldwin
On 21-Jul-01 Weiguang SHI wrote: > Hi, > > Please forgive me if this seems too easy. > > "http://people.freebsd.org/~jhb/386htm/s10_03.htm"; says: > > Immediately after setting the PE flag, the initialization code must > flush the processor's instruction prefetch queue by > executing a J

Re: Status of encryption hardware support in FreeBSD

2001-07-23 Thread Louis A. Mamakos
Hi, I just received shipping notification from UPS that my net4501 is in the shipping pipeline; can't wait for it to arrive. On a practical note: is there a mailing list or some other forum which will host net4501 users? Since it's likely that there will be a bunch of different operating syste

Re: using syscalls in a module (stack problem ?)

2001-07-23 Thread Zhihui Zhang
Make sense. But there are other things in the UPAGES. -Zhihui On Mon, 23 Jul 2001, Weiguang SHI wrote: > I guess this is it (/usr/src/sys/i386/i386/locore.s): > > 348 /* now running relocated at KERNBASE where the system is linked to > run */ > 349 begin: > 350 /* set up

Re: using syscalls in a module (stack problem ?)

2001-07-23 Thread Weiguang SHI
I guess this is it (/usr/src/sys/i386/i386/locore.s): 348 /* now running relocated at KERNBASE where the system is linked to run */ 349 begin: 350 /* set up bootstrap stack */ 351 movl_proc0paddr,%esp/* location of in-kernel pages */ 352 a

Re: cluster size

2001-07-23 Thread Zhihui Zhang
You must be asking why the mbuf cluster size is chosen as 2048, right? It is probably a tradeoff between memory efficient and speed. -Zhihui On Mon, 23 Jul 2001, [iso-8859-1] vishwanath pargaonkar wrote: > Hi, > in freebsd can we change the cluster size from 2048 > bytes.If yes how can we do t

Re: using syscalls in a module (stack problem ?)

2001-07-23 Thread Zhihui Zhang
Just out of curiosity, Linux's kernel stack is one page. Where in the kernel source code that says that we can have two pages instead of one page kernel stack? -Zhihui On Mon, 23 Jul 2001, Eugene L. Vorokov wrote: > > > I call this function with (curproc, PATH_MAX+1), and everything is fine >

Re: cluster size

2001-07-23 Thread Bosko Milekic
On Mon, Jul 23, 2001 at 11:01:27AM -0500, Dan Nelson wrote: > In the last episode (Jul 23), vishwanath pargaonkar said: > > in freebsd can we change the cluster size from 2048 bytes.If yes how > > can we do that? do we have to configure in some file? > > Actually, the block size is 8192 bytes by

cluster size

2001-07-23 Thread vishwanath pargaonkar
Hi, in freebsd can we change the cluster size from 2048 bytes.If yes how can we do that? do we have to configure in some file? TIA vishwanath To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: kernel malloc

2001-07-23 Thread Bosko Milekic
On Mon, Jul 23, 2001 at 12:37:55PM +0100, vishwanath pargaonkar wrote: > Hi, > > thx for ur reply. > i wanted to know in side kernel is there any limit to > the malloc that a user can do.what you told in ur > previous mail is that at a time user can malloc 4k.but No. You _can_ malloc ov

Re: using syscalls in a module (stack problem ?)

2001-07-23 Thread Eugene L. Vorokov
> > I call this function with (curproc, PATH_MAX+1), and everything is fine > > when I have just a few local variables defined in the caller (it all > > works on MOD_LOAD only). However, if I have 2 buffers, 4096 bytes each, > > as local variables and then try to allocate userspace memory the same

Re: NFS local mount

2001-07-23 Thread Michael Sinz
Jonathan Chen wrote: > > On Thu, Jul 19, 2001 at 02:38:07PM -0400, Michael Sinz wrote: > > I had been meaning to ask if there was a reason why NFS mounts happened > > before NFS servers were started but life kept getting in the way :-) > > If /usr was nfs mounted on a machine, then /usr needs to

Re: A full source-tour somewhere?

2001-07-23 Thread Brian Somers
> On Mon, Jul 23, 2001 at 12:56:04AM -0700, Julian Elischer wrote: > > Julian Elischer wrote: > > > > > > Dima Dorfman wrote: > > [...] > > > > * A cross reference of the FreeBSD kernel > > > > > > well I have the source code of course, but the second is what I'm > > > looking for except th

Re: A full source-tour somewhere?

2001-07-23 Thread Bernd Walter
On Mon, Jul 23, 2001 at 12:56:04AM -0700, Julian Elischer wrote: > Julian Elischer wrote: > > > > Dima Dorfman wrote: > [...] > > > * A cross reference of the FreeBSD kernel > > > > well I have the source code of course, but the second is what I'm > > looking for except that it stopped bein

Re: kernel malloc

2001-07-23 Thread vishwanath pargaonkar
Hi, thx for ur reply. i wanted to know in side kernel is there any limit to the malloc that a user can do.what you told in ur previous mail is that at a time user can malloc 4k.but suppose i am doing 2k memory allocations. how many such mallocs i can do? is there any configuration we can do depen

Re: A full source-tour somewhere?

2001-07-23 Thread Julian Elischer
Julian Elischer wrote: > > Dima Dorfman wrote: [...] > > * A cross reference of the FreeBSD kernel > > well I have the source code of course, but the second is what I'm > looking for except that it stopped being updated October 2000. > > I'm looking for a current one. oh yeah, and that on

Re: libpcap and pthreads

2001-07-23 Thread Andrey Simonenko
Thanks to all who answered my question about libpcap and pthreads. I forgot to say that I want to have the answer on the same question for OpenBSD and NetBSD (for all *BSD, which my port sysutils/ipa supports), but the answer for FreeBSD is enough. An idea to call pcap_dispatch() in a separate si

Re: A full source-tour somewhere?

2001-07-23 Thread Julian Elischer
Dima Dorfman wrote: > > Julian Elischer <[EMAIL PROTECTED]> writes: > > At one stage at whistle we had the kernel fully cross-referenced > > using the 'global' program (now in ports) which produced > > a website that could be browsed to find > > 'all the callers of xxx()' etc. > > > > does anyone

Re: A full source-tour somewhere?

2001-07-23 Thread Dima Dorfman
Julian Elischer <[EMAIL PROTECTED]> writes: > At one stage at whistle we had the kernel fully cross-referenced > using the 'global' program (now in ports) which produced > a website that could be browsed to find > 'all the callers of xxx()' etc. > > does anyone have such a site online at the mome