2015-12-17 13:03:40 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2011-2015, Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-12-17 13:03:40 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief System/hardware module for the ia32 platform
|
|
|
|
*
|
|
|
|
* This module provides routines to initialize and support board-level hardware
|
|
|
|
* for the ia32 platform.
|
|
|
|
*/
|
|
|
|
|
2016-12-23 21:35:34 +08:00
|
|
|
#include <kernel.h>
|
2015-12-17 21:54:35 +08:00
|
|
|
#include "soc.h"
|
2015-12-17 13:03:40 +08:00
|
|
|
#include <uart.h>
|
|
|
|
#include <device.h>
|
|
|
|
#include <init.h>
|
2017-05-22 13:55:47 +08:00
|
|
|
#include <mmustructs.h>
|
2017-07-12 00:59:30 +08:00
|
|
|
#include <linker/linker-defs.h>
|
2017-05-22 13:55:47 +08:00
|
|
|
|
|
|
|
#ifdef CONFIG_X86_MMU
|
2017-07-12 00:59:30 +08:00
|
|
|
MMU_BOOT_REGION(CONFIG_LOAPIC_BASE_ADDRESS, KB(4), MMU_ENTRY_WRITE);
|
|
|
|
MMU_BOOT_REGION(CONFIG_IOAPIC_BASE_ADDRESS, MB(1), MMU_ENTRY_WRITE);
|
2017-10-12 04:55:06 +08:00
|
|
|
#ifdef CONFIG_HPET_TIMER
|
2017-07-12 00:59:30 +08:00
|
|
|
MMU_BOOT_REGION(CONFIG_HPET_TIMER_BASE_ADDRESS, KB(4), MMU_ENTRY_WRITE);
|
2017-10-12 04:55:06 +08:00
|
|
|
#endif
|
2017-05-22 13:55:47 +08:00
|
|
|
#endif /* CONFIG_X86_MMU*/
|