All of lore.kernel.org
 help / color / mirror / Atom feed
* strange behaviour in syscall
@ 2001-05-15 17:54 Sourav Sen
  2001-05-15 18:21 ` H. Peter Anvin
  2001-05-15 20:12 ` Sourav Sen
  0 siblings, 2 replies; 3+ messages in thread
From: Sourav Sen @ 2001-05-15 17:54 UTC (permalink / raw)
  To: lkml


Hello,
	I know that this is a newbies question, but I didn't get any
answer in the newbies list, so I am posting it here. 

	In 2.2.14, I have implemented a set of system calls(This is just
academic). The numbers are from 191 - 196. (The virgin source tree has
up to 190 in entry.S). I have given a printk in the system call proper in
the last one(196),(and at many other places in the call chain from there).
(Is it fair to use those syacall numbers ?)

	But when I boot up that kernel that printk gets executed. While 
booting, at least to my knowledge, that part of the code is not supposed
to get executed. Also while the kernel goes down, that printk speaks
again. 

	All other system calls are working fine.

	I am getting some oops and panic while that syscall executes, so I
am suspicious that I am doing something that I should never have done.

	Do anybody has any idea what might be going wrong?

Sorry to you all for disturbing,

--
sourav 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: strange behaviour in syscall
  2001-05-15 17:54 strange behaviour in syscall Sourav Sen
@ 2001-05-15 18:21 ` H. Peter Anvin
  2001-05-15 20:12 ` Sourav Sen
  1 sibling, 0 replies; 3+ messages in thread
From: H. Peter Anvin @ 2001-05-15 18:21 UTC (permalink / raw)
  To: linux-kernel

Followup to:  <Pine.SOL.3.96.1010515230910.8808A-100000@kohinoor.csa.iisc.ernet.in>
By author:    Sourav Sen <sourav@csa.iisc.ernet.in>
In newsgroup: linux.dev.kernel
> 
> 	But when I boot up that kernel that printk gets executed. While 
> booting, at least to my knowledge, that part of the code is not supposed
> to get executed. Also while the kernel goes down, that printk speaks
> again. 
> 
> 	All other system calls are working fine.
> 
> 	I am getting some oops and panic while that syscall executes, so I
> am suspicious that I am doing something that I should never have done.
> 
> 	Do anybody has any idea what might be going wrong?
> 
> Sorry to you all for disturbing,
> 

Yes, you are using system call numbers that have already been assigned
(in other kernel versions.)  libc tries to use them to see if they are
available, and so they seem to be.

	-hpa
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: strange behaviour in syscall
  2001-05-15 17:54 strange behaviour in syscall Sourav Sen
  2001-05-15 18:21 ` H. Peter Anvin
@ 2001-05-15 20:12 ` Sourav Sen
  1 sibling, 0 replies; 3+ messages in thread
From: Sourav Sen @ 2001-05-15 20:12 UTC (permalink / raw)
  To: lkml


> 
> Hello,
> 	I know that this is a newbies question, but I didn't get any
> answer in the newbies list, so I am posting it here. 
> 
> 	In 2.2.14, I have implemented a set of system calls(This is just
> academic). The numbers are from 191 - 196. (The virgin source tree has
> up to 190 in entry.S). I have given a printk in the system call proper in
> the last one(196),(and at many other places in the call chain from there).
> (Is it fair to use those syacall numbers ?)
> 
> 	But when I boot up that kernel that printk gets executed. While 
> booting, at least to my knowledge, that part of the code is not supposed
> to get executed. Also while the kernel goes down, that printk speaks
> again. 


	To clarify a bit, lately I have replaced the 196 th. call by 191,
	and removed the earlier 191 st. call, now the message is not appearing.
	My guess is some interrupt is getting vectored in 196 th entry 
	point, but I am totally in dark as to why such a thing might at
	all happen.

Thanks
sourav

> 
> 	All other system calls are working fine.
> 
> 	I am getting some oops and panic while that syscall executes, so I
> am suspicious that I am doing something that I should never have done.
> 
> 	Do anybody has any idea what might be going wrong?
> 
> Sorry to you all for disturbing,
> 
> --
> sourav 
> 
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-05-15 20:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-15 17:54 strange behaviour in syscall Sourav Sen
2001-05-15 18:21 ` H. Peter Anvin
2001-05-15 20:12 ` Sourav Sen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.