Changeset 0fab6dde in rtems


Ignore:
Timestamp:
Nov 5, 1999, 5:49:56 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
7edb9281
Parents:
968f7742
Message:

Patch from Eric Valette <valette@…> so this will build
independently of a BSP.

Location:
c/src/lib
Files:
2 added
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mcp750/clock/Makefile.in

    r968f7742 r0fab6dde  
    1717
    1818# C source names, if any, go here -- minus the .c
    19 C_PIECES = c_clock
     19C_PIECES = p_clock
    2020C_FILES = $(C_PIECES:%=%.c)
    2121C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
    2222
    23 H_FILES = 
     23H_FILES =
    2424
    2525SRCS = $(C_FILES) $(H_FILES)
     
    6262        $(make-rel)
    6363
    64 preinstall:
    65         @$(mkinstalldirs) $(PROJECT_INCLUDE)/bsp
    66         @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)/bsp
    67 
    68 all: ${ARCH} $(SRCS) preinstall $(PGM)
     64all: ${ARCH} $(SRCS) $(PGM)
    6965
    7066# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/powerpc/motorola_powerpc/clock/Makefile.in

    r968f7742 r0fab6dde  
    1717
    1818# C source names, if any, go here -- minus the .c
    19 C_PIECES = c_clock
     19C_PIECES = p_clock
    2020C_FILES = $(C_PIECES:%=%.c)
    2121C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
    2222
    23 H_FILES = 
     23H_FILES =
    2424
    2525SRCS = $(C_FILES) $(H_FILES)
     
    6262        $(make-rel)
    6363
    64 preinstall:
    65         @$(mkinstalldirs) $(PROJECT_INCLUDE)/bsp
    66         @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)/bsp
    67 
    68 all: ${ARCH} $(SRCS) preinstall $(PGM)
     64all: ${ARCH} $(SRCS) $(PGM)
    6965
    7066# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libcpu/powerpc/mpc750/Makefile.in

    r968f7742 r0fab6dde  
    2121# wrapup is the one that actually builds and installs the library
    2222#  from the individual .rel files built in other directories
    23 # SUB_DIRS = exceptions mmu clock wrapup
    24 SUB_DIRS = exceptions mmu wrapup
     23SUB_DIRS = exceptions mmu clock wrapup
    2524
    2625Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/lib/libcpu/powerpc/mpc750/clock/Makefile.in

    r968f7742 r0fab6dde  
    1919C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
    2020
    21 H_FILES =
     21H_FILES = $(srcdir)/c_clock.h
    2222
    2323# Assembly source names, if any, go here -- minus the .S
     
    5656CLOBBER_ADDITIONS +=
    5757
    58 all: ${ARCH} $(SRCS) $(OBJS)
     58all: ${ARCH} $(SRCS) preinstall $(OBJS)
     59
     60preinstall: $(INSTALLDIRS) $(H_FILES)
     61        @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)/libcpu
    5962
    6063# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libcpu/powerpc/mpc750/clock/c_clock.c

    r968f7742 r0fab6dde  
    2121 */
    2222
    23 #include <bsp.h>
    24 #include <bsp/irq.h>
     23#include <rtems.h>
    2524#include <rtems/libio.h>
    2625#include <stdlib.h>                     /* for atexit() */
    2726#include <assert.h>
    2827#include <libcpu/cpu.h>
     28#include <libcpu/c_clock.h>
    2929
    3030/*
     
    4747rtems_device_minor_number rtems_clock_minor;
    4848
    49 void clockOff(const rtems_irq_connect_data* unused)
     49void clockOff(void* unused)
    5050{
    5151  if (BSP_Configuration.ticks_per_timeslice)    {
     
    5656  }
    5757}
    58 static void clockOn(const rtems_irq_connect_data* unused)
     58void clockOn(void* unused)
    5959{
    6060  PPC_Set_decrementer( Clock_Decrementer_value );
     
    9191}
    9292
    93 int clockIsOn(const rtems_irq_connect_data* unused)
     93int clockIsOn(void* unused)
    9494{
    9595  unsigned32 msr_value;
     
    100100}
    101101
    102 static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
    103                                               clockIsr,
    104                                               clockOn,
    105                                               clockOff,
    106                                               clockIsOn};
    107                                              
    108102
    109103/*
     
    124118{
    125119  if ( BSP_Configuration.ticks_per_timeslice ) {
    126    BSP_remove_rtems_irq_handler (&clockIrqData);
     120   (void) BSP_disconnect_clock_handler ();
    127121  }
    128122}
     
    153147                            (BSP_Configuration.microseconds_per_tick/1000);
    154148
    155   if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
     149  if (!BSP_connect_clock_handler ()) {
    156150    printk("Unable to initialize system clock\n");
    157151    rtems_fatal_error_occurred(1);
     
    187181)
    188182{
    189     rtems_unsigned32 isrlevel;
    190183    rtems_libio_ioctl_args_t *args = pargp;
    191184 
     
    200193    else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    201194    {
    202       if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
     195      if (!BSP_connect_clock_handler ()) {
    203196        printk("Error installing clock interrupt handler!\n");
    204197        rtems_fatal_error_occurred(1);
Note: See TracChangeset for help on using the changeset viewer.