On 6/5/07, pradeep singh <2500.pradeep@xxxxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 6/5/07, Neo Jia wrote: > hi, > > I just found the code in 2.6.17 under function enable_sep_cpu, which > is going to setup the esp1 as "tss->esp1 = sizeof(struct tss_struct) + > (unsigned long) tss;", which will be used as a privilege stack when > calling sysenter. > > I noticed that there is unsigned long stack[64] at the bottom of > struct tss_struct, which works as an emergency stack. Are we just > going to use that once as the kernel stack for sysenter? If yes, will > that be a problem since the stack is only 256 bytes?
I just noticed that my understanding is totally wrong. In this part, it just used the ESP1 to remember the boundary of TSS, which later will be used to get the ESP0. So we are still using the original ESP0. Thanks, Neo
When do we actually use emregency stack? Is it used for stack unwinding when we hit a panic or something like that? Any help? Thanks - --psr -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: http://firegpg.tuxfamily.org iD8DBQFGZjA0ky6Gd9lpXlERAsHPAJ0Ynoo5jUD3/ScoHHdVXjn7fSbL0gCbBg+o Kerk3eOjayi1uFsMj/R0Ekk= =WB2j -----END PGP SIGNATURE----- > > Thanks, > Neo > > -- > I would remember that if researchers were not ambitious > probably today we haven't the technology we are using! > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx > Please read the FAQ at http://kernelnewbies.org/FAQ > > -- play the game
-- I would remember that if researchers were not ambitious probably today we haven't the technology we are using! -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ