mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 20:05:17 +08:00
sparc64 niagara, usiii: Remove -D options from cfg file and move to bspopts.h
Updates #3425.
This commit is contained in:
@@ -37,10 +37,14 @@
|
||||
#ifndef KERN_sparc64_ARCH_H_
|
||||
#define KERN_sparc64_ARCH_H_
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
#if defined (SUN4U)
|
||||
#include <arch/sun4u/arch.h>
|
||||
#elif defined (SUN4V)
|
||||
#include <arch/sun4v/arch.h>
|
||||
#else
|
||||
#error "No SUN model defined"
|
||||
#endif
|
||||
|
||||
#define ASI_AIUP 0x10 /** Access to primary context with user privileges. */
|
||||
|
||||
@@ -35,10 +35,14 @@
|
||||
#ifndef KERN_sparc64_FRAME_H_
|
||||
#define KERN_sparc64_FRAME_H_
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
#if defined (SUN4U)
|
||||
#include <arch/mm/sun4u/frame.h>
|
||||
#elif defined (SUN4V)
|
||||
#include <arch/mm/sun4v/frame.h>
|
||||
#else
|
||||
#error "No SUN model defined"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -35,10 +35,14 @@
|
||||
#ifndef KERN_sparc64_MMU_H_
|
||||
#define KERN_sparc64_MMU_H_
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
#if defined (SUN4U)
|
||||
#include <arch/mm/sun4u/mmu.h>
|
||||
#elif defined (SUN4V)
|
||||
#include <arch/mm/sun4v/mmu.h>
|
||||
#else
|
||||
#error "No SUN model defined"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -35,11 +35,14 @@
|
||||
#ifndef KERN_sparc64_TLB_H_
|
||||
#define KERN_sparc64_TLB_H_
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
#if defined (SUN4U)
|
||||
#include <arch/mm/sun4u/tlb.h>
|
||||
#elif defined (SUN4V)
|
||||
#include <arch/mm/sun4v/tlb.h>
|
||||
#else
|
||||
#error "No SUN model defined"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -35,10 +35,14 @@
|
||||
#ifndef KERN_sparc64_TTE_H_
|
||||
#define KERN_sparc64_TTE_H_
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
#if defined (SUN4U)
|
||||
#include <arch/mm/sun4u/tte.h>
|
||||
#elif defined (SUN4V)
|
||||
#include <arch/mm/sun4v/tte.h>
|
||||
#else
|
||||
#error "No SUN model defined"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -7,7 +7,7 @@ RTEMS_CPU=sparc64
|
||||
|
||||
# This contains the compiler options necessary to select the CPU model
|
||||
# and (hopefully) optimize for it.
|
||||
CPU_CFLAGS = -mcpu=niagara -DSUN4V
|
||||
CPU_CFLAGS = -mcpu=niagara
|
||||
|
||||
# optimize flag: typically -g -O2
|
||||
CFLAGS_OPTIMIZE_V = -g -O2
|
||||
|
||||
@@ -7,7 +7,7 @@ RTEMS_CPU=sparc64
|
||||
|
||||
# This contains the compiler options necessary to select the CPU model
|
||||
# and (hopefully) optimize for it.
|
||||
CPU_CFLAGS = -mcpu=ultrasparc3 -DUS3 -DSUN4U
|
||||
CPU_CFLAGS = -mcpu=ultrasparc3
|
||||
|
||||
# optimize flag: typically -g -O2
|
||||
CFLAGS_OPTIMIZE_V = -g -O2
|
||||
|
||||
@@ -10,6 +10,10 @@ RTEMS_CANONICAL_TARGET_CPU
|
||||
AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
|
||||
RTEMS_BSP_CONFIGURE
|
||||
|
||||
RTEMS_BSPOPTS_SET([SUN4V],[niagara],[1])
|
||||
RTEMS_BSPOPTS_SET([SUN4V],[*],[])
|
||||
RTEMS_BSPOPTS_HELP([SUN4V],
|
||||
[If defined, enable SUN model optons for the Niagara model.])
|
||||
|
||||
RTEMS_BSP_CLEANUP_OPTIONS
|
||||
|
||||
|
||||
@@ -10,13 +10,21 @@ RTEMS_CANONICAL_TARGET_CPU
|
||||
AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
|
||||
RTEMS_BSP_CONFIGURE
|
||||
|
||||
|
||||
RTEMS_BSPOPTS_SET([SIMSPARC_FAST_IDLE],[*],[])
|
||||
RTEMS_BSPOPTS_HELP([SIMSPARC_FAST_IDLE],
|
||||
[If defined, speed up the clock ticks while the idle task is running so
|
||||
time spent in the idle task is minimized. This significantly reduces
|
||||
the wall time required to execute the RTEMS test suites.])
|
||||
|
||||
RTEMS_BSPOPTS_SET([US3],[usiii],[1])
|
||||
RTEMS_BSPOPTS_SET([US3],[*],[])
|
||||
RTEMS_BSPOPTS_HELP([US3],
|
||||
[If defined, enable UltraSPARC optons for the USIII BSP.])
|
||||
|
||||
RTEMS_BSPOPTS_SET([SUN4U],[usiii],[1])
|
||||
RTEMS_BSPOPTS_SET([SUN4U],[*],[])
|
||||
RTEMS_BSPOPTS_HELP([SUN4U],
|
||||
[If defined, enable SUN model optons for the USIII BSP.])
|
||||
|
||||
RTEMS_BSP_CLEANUP_OPTIONS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user