mirror of
https://github.com/t-crest/rtems.git
synced 2026-03-27 13:39:59 +00:00
Fixed compile error in start.S with new IO device defines
This commit is contained in:
@@ -29,6 +29,11 @@ extern "C" {
|
||||
#define _shadow_stack_base 0x4000000
|
||||
#define _stack_cache_base 0x3000000
|
||||
|
||||
#define __PATMOS_CPUINFO_BASE 0xF0000000
|
||||
#define __PATMOS_UART_BASE 0xF0080000
|
||||
#define __PATMOS_TIMER_BASE 0xF0020000
|
||||
#define __PATMOS_EXCUNIT_BASE 0xF0010000
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#define _IODEV __attribute__((address_space(1)))
|
||||
@@ -39,7 +44,6 @@ typedef _IODEV unsigned int volatile * const _iodev_ptr_t;
|
||||
/*
|
||||
* CPU Info Management
|
||||
*/
|
||||
#define __PATMOS_CPUINFO_BASE 0xF0000000
|
||||
|
||||
/* Address to access the CPU id */
|
||||
#define __PATMOS_CPU_ID_ADDR (__PATMOS_CPUINFO_BASE + 0x00)
|
||||
@@ -61,7 +65,6 @@ typedef _IODEV unsigned int volatile * const _iodev_ptr_t;
|
||||
/*
|
||||
* UART Management
|
||||
*/
|
||||
#define __PATMOS_UART_BASE 0xF0080000
|
||||
|
||||
/*
|
||||
* The following defines the bits in the PASIM UART Status Registers.
|
||||
@@ -107,8 +110,6 @@ typedef _IODEV unsigned int volatile * const _iodev_ptr_t;
|
||||
/*
|
||||
* RTC Management
|
||||
*/
|
||||
#define __PATMOS_TIMER_BASE 0xF0020000
|
||||
#define __PATMOS_EXCUNIT_BASE 0xF0010000
|
||||
|
||||
extern uint64_t get_cpu_usecs (void);
|
||||
|
||||
|
||||
@@ -37,6 +37,11 @@ extern "C" {
|
||||
#define PROM_SIZE 0K
|
||||
#define PROM_END PROM_START + PROM_SIZE
|
||||
|
||||
#define __PATMOS_CPUINFO_BASE 0xF0000000
|
||||
#define __PATMOS_UART_BASE 0xF0080000
|
||||
#define __PATMOS_TIMER_BASE 0xF0020000
|
||||
#define __PATMOS_EXCUNIT_BASE 0xF0010000
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
@@ -29,6 +29,11 @@ extern "C" {
|
||||
#define _shadow_stack_base 0x00100000
|
||||
#define _stack_cache_base 0x000f0000
|
||||
|
||||
#define __PATMOS_CPUINFO_BASE 0xF0000000
|
||||
#define __PATMOS_UART_BASE 0xF0080000
|
||||
#define __PATMOS_TIMER_BASE 0xF0020000
|
||||
#define __PATMOS_EXCUNIT_BASE 0xF0010000
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#define _IODEV __attribute__((address_space(1)))
|
||||
@@ -55,8 +60,6 @@ typedef volatile int (*entrypoint_t)(void);
|
||||
/*
|
||||
* CPU Info Management
|
||||
*/
|
||||
#define __PATMOS_CPUINFO_BASE 0xF0000000
|
||||
|
||||
/* Address to access the CPU id */
|
||||
#define __PATMOS_CPU_ID_ADDR (__PATMOS_CPUINFO_BASE + 0x00)
|
||||
|
||||
@@ -77,7 +80,6 @@ typedef volatile int (*entrypoint_t)(void);
|
||||
/*
|
||||
* UART Management
|
||||
*/
|
||||
#define __PATMOS_UART_BASE 0xF0080000
|
||||
|
||||
/*
|
||||
* The following defines the bits in the TCREST UART Status Registers.
|
||||
@@ -123,8 +125,6 @@ typedef volatile int (*entrypoint_t)(void);
|
||||
/*
|
||||
* RTC Management
|
||||
*/
|
||||
#define __PATMOS_TIMER_BASE 0xF0020000
|
||||
#define __PATMOS_EXCUNIT_BASE 0xF0010000
|
||||
|
||||
extern uint64_t get_cpu_usecs (void);
|
||||
|
||||
|
||||
@@ -29,6 +29,11 @@ extern "C" {
|
||||
#define _shadow_stack_base 0x00200000
|
||||
#define _stack_cache_base 0x001f8000
|
||||
|
||||
#define __PATMOS_CPUINFO_BASE 0xF0000000
|
||||
#define __PATMOS_UART_BASE 0xF0080000
|
||||
#define __PATMOS_TIMER_BASE 0xF0020000
|
||||
#define __PATMOS_EXCUNIT_BASE 0xF0010000
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#define _IODEV __attribute__((address_space(1)))
|
||||
@@ -55,7 +60,6 @@ typedef volatile int (*entrypoint_t)(void);
|
||||
/*
|
||||
* CPU Info Management
|
||||
*/
|
||||
#define __PATMOS_CPUINFO_BASE 0xF0000000
|
||||
|
||||
/* Address to access the CPU id */
|
||||
#define __PATMOS_CPU_ID_ADDR (__PATMOS_CPUINFO_BASE + 0x00)
|
||||
@@ -77,7 +81,6 @@ typedef volatile int (*entrypoint_t)(void);
|
||||
/*
|
||||
* UART Management
|
||||
*/
|
||||
#define __PATMOS_UART_BASE 0xF0080000
|
||||
|
||||
/*
|
||||
* The following defines the bits in the TCREST UART Status Registers.
|
||||
@@ -124,8 +127,6 @@ typedef volatile int (*entrypoint_t)(void);
|
||||
* RTC Management
|
||||
*/
|
||||
|
||||
#define __PATMOS_TIMER_BASE 0xF0020000
|
||||
#define __PATMOS_EXCUNIT_BASE 0xF0010000
|
||||
|
||||
extern uint64_t get_cpu_usecs (void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user