Git Product home page Git Product logo

arm64's Introduction

arm64

HWCAP

User application can query CPU features available to it through the HWCAP mechanism.

See documentation at kernel.org (available since v4.15-rc1) for usage example as well as a complete list of supported flags: Documentation/arm64/elf_hwcaps.txt

This interface has been available in arm64 port of Linux since v3.7:

commit f668cd1673aa2e645ae98b65c4ffb9dae2c9ac17
Author: Catalin Marinas <[email protected]>
Date:   Mon Mar 5 11:49:30 2012 +0000

    arm64: ELF definitions

    This patch adds definitions for the ELF format, including personality
    personality setting and EXEC_PAGESIZE. The are only two hwcap
    definitions for 64-bit applications - HWCAP_FP and HWCAP_ASIMD.

An example application hwcap is provided in this repository.

CPUID

AArch64 defines CPU ID registers that can be queried by kernel (EL1). Thanks to MRS emulation support in kernel, a subset of these registers can be accessed by user application (EL0) as well.

See documentation at kernel.org for detailed description of this feature as well as usage example: Documentation/arm64/cpu-feature-registers.txt

This feature is available in arm64 port of Linux since v4.11:

commit 77c97b4ee21290f5f083173d957843b615abbff2
Author: Suzuki K Poulose <[email protected]>
Date:   Mon Jan 9 17:28:31 2017 +0000

    arm64: cpufeature: Expose CPUID registers by emulation

    This patch adds the hook for emulating MRS instruction to
    export the 'user visible' value of supported system registers.
    We emulate only the following id space for system registers:

     Op0=3, Op1=0, CRn=0, CRm=[0, 4-7]

    The rest will fall back to SIGILL. This capability is also
    advertised via a new HWCAP_CPUID.

arm64's People

Contributors

zlim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.