Moved include files to hppa1.1 subdirectory and put their sources

in the include directory.
This commit is contained in:
Joel Sherrill
1999-11-09 02:32:37 +00:00
parent bb11d7e540
commit 9af31a6e92
6 changed files with 65 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ include $(RTEMS_ROOT)/make/directory.cfg
INSTALL_CHANGE = @INSTALL_CHANGE@
SUB_DIRS = include milli runway clock timer semaphore
SUB_DIRS = include milli clock timer semaphore
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \

View File

@@ -1,5 +1,5 @@
#
# $Id$
# $Id$
#
@SET_MAKE@
@@ -13,13 +13,32 @@ PROJECT_ROOT = @PROJECT_ROOT@
VPATH = @srcdir@
H_FILES = $(srcdir)/runway.h $(srcdir)/semaphore.h
SRCS = $(H_FILES)
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(RTEMS_ROOT)/make/leaf.cfg
INSTALL_CHANGE = @INSTALL_CHANGE@
mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
all: FORCEIT
cd ../../../libbsp/$(RTEMS_CPU)/@RTEMS_BSP@/include; $(MAKE) all
INSTALLDIRS = $(PROJECT_INCLUDE)/hppa1.1
$(INSTALLDIRS):
@$(mkinstalldirs) $(INSTALLDIRS)
CLEAN_ADDITIONS +=
CLOBBER_ADDITIONS +=
all: install
# NOTE: Unlike other CPUS, we install into a subdirectory to avoid
# file name conflicts
install:
$(mkinstalldirs) $(PROJECT_INCLUDE)/hppa1.1
@$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)/hppa1.1
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \

View File

@@ -0,0 +1,37 @@
/*
* File: $RCSfile$
* Project: PixelFlow
* Created: 94/11/29
* RespEngr: tony bennett
* Revision: $Revision$
* Last Mod: $Date$
*
* Description:
* definitions specific to the runway bus
*
* TODO:
* Add lots more.
*
* $Id$
*/
#ifndef _INCLUDE_RUNWAY_H
#define _INCLUDE_RUNWAY_H
#ifdef __cplusplus
extern "C" {
#endif
#define HPPA_RUNWAY_PROC_HPA_BASE ((void *) 0xFFFA0000)
/* given a processor number, where is its HPA? */
#define HPPA_RUNWAY_HPA(cpu) \
((rtems_unsigned32) (HPPA_RUNWAY_PROC_HPA_BASE + ((cpu) * 0x2000)))
#define HPPA_RUNWAY_REG_IO_EIR_OFFSET 0x000
#ifdef __cplusplus
}
#endif
#endif /* ! _INCLUDE_RUNWAY_H */

View File

@@ -14,8 +14,8 @@
* $Id$
*/
#ifndef _INCLUDE_SEMAPHORE_H
#define _INCLUDE_SEMAPHORE_H
#ifndef _INCLUDE_HPPA1_1_SEMAPHORE_H
#define _INCLUDE_HPPA1_1_SEMAPHORE_H
#ifdef __cplusplus
extern "C" {

View File

@@ -20,7 +20,7 @@ C_PIECES = semaphore
C_FILES = $(C_PIECES:%=%.c)
C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
H_PIECES = semaphore
H_PIECES =
H_FILES = $(H_PIECES:%=$(srcdir)/%.h)
# Assembly source names, if any, go here -- minus the .S
@@ -37,7 +37,7 @@ include $(RTEMS_ROOT)/make/leaf.cfg
INSTALL_CHANGE = @INSTALL_CHANGE@
mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
INSTALLDIRS = $(PROJECT_INCLUDE)
INSTALLDIRS = $(PROJECT_INCLUDE)/hppa1.1
$(INSTALLDIRS):
@$(mkinstalldirs) $(INSTALLDIRS)
@@ -63,7 +63,6 @@ ${PGM}: ${SRCS} ${OBJS}
$(make-rel)
all: ${ARCH} $(SRCS) $(PGM)
@$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \

View File

@@ -18,7 +18,7 @@
#include <rtems.h>
#include "semaphore.h"
#include <hppa1.1/semaphore.h>
/*
* Report fatal semaphore error