Re: [2.6 patch] i386: always use 4k stacks
From: Adrian Bunk
Date: Wed Nov 16 2005 - 13:38:22 EST
On Wed, Nov 16, 2005 at 02:03:50AM +0000, Kenneth Parrish wrote:
> -=> In article 15 Nov 05 15:00:28, Adrian Bunk wrote to All <=-
>
> [...]
> AB> Unconditionally enabling 4k stacks is the only way to achieve
> AB> this.
> :) 2K might do here..
No, it wouldn't.
If one function calls another function you have to add the stack usages.
> 5 Tue Nov 15 19:29:43 ~/build/kernel/linux-2.6.15-rc1-git3 $ make checkstack
> objdump -d vmlinux $(find . -name '*.ko') | \
> perl /home/ken/build/kernel/linux-2.6.15-rc1-git3/scripts/checkstack.pl i386
> 0xc02bd528 huft_build: 1432
> 0xc02bd954 huft_build: 1432
> 0xc02be1c4 inflate_dynamic: 1312
> 0xc02be2ff inflate_dynamic: 1312
> 0xc02be082 inflate_fixed: 1168
> 0xc02be172 inflate_fixed: 1168
>...
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/