Messages in this thread | | | Date | Wed, 1 Dec 2004 07:34:22 +0100 (CET) | From | Oliver Neukum <> | Subject | Re: Query regarding current macro |
| |
On Wed, 1 Dec 2004, Jagadeesh Bhaskar P wrote: > I have read that both the kernel stack and process descriptor of a > process is stored in together in an 8KB page. Now the offsets in the > page should start from all bits 0, rite? So then why masking only the 13 > bits LSB?? What is the significance of keeping that length at 13??
The stack grows downwards on x86. Thus the lowermost stack entry has all bits set. The length is 13 because 13 corresponds to 8K.
HTH Oliver
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |