Re: Stack overflow code, can someone please explain this

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 09, 2005 at 16:04:32 +0530, Kotian, Deepak wrote:
> Hi,
> Stack overflow code, can someone please explain this, it is there in do_IRQ() kernel
> function
> *********
> 	__asm__ __volatile__(
> 		"andl %%esp,%0" 
> 		: "=r" (esp) : "0" (THREAD_SIZE-1));
> *********
> Also, 
> Could there be any other simpler way do calculate stack overflow without using
> assembly code. 

If you can access stack pointer from C... (but you can't).

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@xxxxxx>

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux