Go to file
Andrew Boie f0ddbd7eee x86: abstract toplevel page table pointer
This patch is a preparatory step in enabling the MMU in
long mode; no steps are taken to implement long mode support.

We introduce struct x86_page_tables, which represents the
top-level data structure for page tables:

- For 32-bit, this will contain a four-entry page directory
  pointer table (PDPT)
- For 64-bit, this will (eventually) contain a page map level 4
  table (PML4)

In either case, this pointer value is what gets programmed into
CR3 to activate a set of page tables. There are extra bits in
CR3 to set for long mode, we'll get around to that later.

This abstraction will allow us to use the same APIs that work
with page tables in either mode, rather than hard-coding that
the top level data structure is a PDPT.

z_x86_mmu_validate() has been re-written to make it easier to
add another level of paging for long mode, to support 2MB
PDPT entries, and correctly validate regions which span PDPTE
entries.

Some MMU-related APIs moved out of 32-bit x86's arch.h into
mmustructs.h.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2019-10-04 15:53:49 -07:00
.github/ISSUE_TEMPLATE
.known-issues
arch x86: abstract toplevel page table pointer 2019-10-04 15:53:49 -07:00
boards boards: nucleo_wb55rg: add omitted code-partition 2019-10-04 15:38:10 -05:00
cmake cmake: toolchain abstraction for address sanitizer 2019-10-04 13:39:52 -04:00
doc doc/reference/kernel: Add SMP archtecture doc 2019-10-04 13:24:40 -07:00
drivers drivers: sensor: Add TMP116 2019-10-04 15:31:56 -05:00
dts dts: bindings: sensor: Support TMP116 2019-10-04 15:31:56 -05:00
ext ext: hal: cmsis: add define for __PROGRAM_START 2019-09-26 16:35:50 +03:00
include x86: abstract toplevel page table pointer 2019-10-04 15:53:49 -07:00
kernel kernel: Introduce k_work_poll 2019-10-04 17:15:17 +02:00
lib coccinelle: standardize kernel API timeout arguments 2019-10-04 16:23:57 -04:00
misc
modules modules/hal_st: Drop newlib requirement. 2019-09-27 04:30:07 -07:00
samples samples: sensor: tmp116: Add sample for TMP116 2019-10-04 15:31:56 -05:00
scripts scripts/coccinelle: updates and improvements for integer timeout values 2019-10-04 16:23:57 -04:00
soc boards: mchp: Add option to switch GPIO bank voltage 2019-10-04 13:11:08 -07:00
subsys Bluetooth: controller: split: Fix central_hr sample compilation 2019-10-04 21:46:13 +02:00
tests x86: abstract toplevel page table pointer 2019-10-04 15:53:49 -07:00
.checkpatch.conf
.clang-format
.codecov.yml
.editorconfig
.gitattributes
.gitignore gitignore: ignore Emacs TAGS file 2019-06-27 07:18:35 -04:00
.gitlint
.mailmap mailmap: Fix entry needing both name and email replace 2019-06-26 13:54:03 -04:00
.shippable.yml ci: updates to fix pylint commit test 2019-09-13 10:00:16 -05:00
.uncrustify.cfg
CMakeLists.txt cmake: Move the invocation of 'project' earlier 2019-10-01 06:26:03 -05:00
CODE_OF_CONDUCT.md
CODEOWNERS drivers: clock_control: nrf: reimplementation including API updates 2019-10-04 17:15:39 +02:00
CONTRIBUTING.rst
Kconfig
Kconfig.zephyr kconfig: Convert device tree chosen properties to new kconfigfunctions 2019-09-13 11:42:34 -05:00
LICENSE
Makefile
README.rst doc: fix broken doc links 2019-09-06 16:14:39 +02:00
VERSION release: Post-release patch level update 2019-09-07 12:29:56 +02:00
version.h.in
west.yml modules: hal: nxp: update for LPC55S69 SDK update 2019-09-27 13:41:13 -07:00
zephyr-env.cmd
zephyr-env.sh

.. raw:: html

   <a href="https://www.zephyrproject.org">
     <p align="center">
       <img src="doc/images/Zephyr-Project.png">
     </p>
   </a>

   <a href="https://bestpractices.coreinfrastructure.org/projects/74"><img
   src="https://bestpractices.coreinfrastructure.org/projects/74/badge"></a>
   <img
   src="https://api.shippable.com/projects/58ffb2b8baa5e307002e1d79/badge?branch=master">


The Zephyr Project is a scalable real-time operating system (RTOS) supporting
multiple hardware architectures, optimized for resource constrained devices,
and built with security in mind.

The Zephyr OS is based on a small-footprint kernel designed for use on
resource-constrained systems: from simple embedded environmental sensors and
LED wearables to sophisticated smart watches and IoT wireless gateways.

The Zephyr kernel supports multiple architectures, including ARM Cortex-M,
Intel x86, ARC, Nios II, Tensilica Xtensa, and RISC-V, and a large number of
`supported boards`_.

.. below included in doc/introduction/introduction.rst

.. start_include_here

Getting Started
***************

Welcome to Zephyr! See the `Introduction to Zephyr`_ for a high-level overview,
and the documentation's `Getting Started Guide`_ to start developing.

Community Support
*****************

Community support is provided via mailing lists and Slack; see the Resources
below for details.

Resources
*********

Here's a quick summary of resources to help you find your way around:

* **Help**: `Asking for Help Tips`_
* **Documentation**: http://docs.zephyrproject.org (`Getting Started Guide`_)
* **Source Code**: https://github.com/zephyrproject-rtos/zephyr is the main
  repository; https://elixir.bootlin.com/zephyr/latest/source contains a
  searchable index
* **Releases**: https://zephyrproject.org/developers/#downloads
* **Samples and example code**: see `Sample and Demo Code Examples`_
* **Mailing Lists**: users@lists.zephyrproject.org and
  devel@lists.zephyrproject.org are the main user and developer mailing lists,
  respectively. You can join the developer's list and search its archives at
  `Zephyr Development mailing list`_. The other `Zephyr mailing list
  subgroups`_ have their own archives and sign-up pages.
* **Nightly CI Build Status**: https://lists.zephyrproject.org/g/builds
  The builds@lists.zephyrproject.org mailing list archives the CI
  (shippable) nightly build results.
* **Chat**: Zephyr's Slack workspace is https://zephyrproject.slack.com.  Use
  this `Slack Invite`_ to register.
* **Contributing**: see the `Contribution Guide`_
* **Wiki**: `Zephyr GitHub wiki`_
* **Issues**: https://github.com/zephyrproject-rtos/zephyr/issues
* **Security Issues**: Email vulnerabilities@zephyrproject.org to report
  security issues; also see our `Security`_ documentation. Security issues are
  tracked separately at https://zephyrprojectsec.atlassian.net.
* **Zephyr Project Website**: https://zephyrproject.org

.. _Slack Invite: https://tinyurl.com/y5glwylp
.. _supported boards: http://docs.zephyrproject.org/latest/boards/index.html
.. _Zephyr Documentation: http://docs.zephyrproject.org
.. _Introduction to Zephyr: http://docs.zephyrproject.org/latest/introduction/index.html
.. _Getting Started Guide: http://docs.zephyrproject.org/latest/getting_started/index.html
.. _Contribution Guide: http://docs.zephyrproject.org/latest/contribute/index.html
.. _Zephyr GitHub wiki: https://github.com/zephyrproject-rtos/zephyr/wiki
.. _Zephyr Development mailing list: https://lists.zephyrproject.org/g/devel
.. _Zephyr mailing list subgroups: https://lists.zephyrproject.org/g/main/subgroups
.. _Sample and Demo Code Examples: http://docs.zephyrproject.org/latest/samples/index.html
.. _Security: http://docs.zephyrproject.org/latest/security/index.html
.. _Asking for Help Tips: https://docs.zephyrproject.org/latest/guides/getting-help.html