[dts] [PATCH V2] add x86_x32 abi target support

Liu, Yong yong.liu at intel.com
Sun Feb 15 02:39:45 CET 2015


Applied. Please make sure every line of comments log less than 79 characters.

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Haifeng Tang
> Sent: Sunday, February 15, 2015 9:04 AM
> To: dts at dpdk.org
> Subject: [dts] [PATCH V2] add x86_x32 abi target support
> 
> From: tanghaix <haifengx.tang at intel.com>
> 
> Support 32bit applications in 64bit mixed environments. x32 ABI (x32
> application binary interface) is an application binary interface project
> for Linux kernel that allows programs to take advantage of the benefits of
> x86-64 (larger number of CPU registers, better floating-point performance,
> faster position-independent code shared libraries, function parameters
> passed via registers, faster syscall instruction) while using 32-bit
> pointers and thus avoiding the overhead of 64-bit pointers.
> 
> Signed-off-by: tanghaix <haifengx.tang at intel.com>
> ---
>  framework/dut.py |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/framework/dut.py b/framework/dut.py
> index 9879335..1db6722 100644
> --- a/framework/dut.py
> +++ b/framework/dut.py
> @@ -195,6 +195,9 @@ class Dut(Crb):
>                  arch_huge_pages = hugepages if hugepages > 0 else 1024
>              elif self.architecture == "i686":
>                  arch_huge_pages = hugepages if hugepages > 0 else 512
> +            #set huge pagesize for x86_x32 abi target
> +            elif self.architecture == "x86_x32":
> +                arch_huge_pages = hugepages if hugepages > 0 else 256
> 
>              total_huge_pages = self.get_total_huge_pages()
> 
> --
> 1.7.9.5



More information about the dts mailing list