Changeset 0fab6dde in rtems
- Timestamp:
- 11/05/99 17:49:56 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 7edb9281
- Parents:
- 968f7742
- 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 17 17 18 18 # C source names, if any, go here -- minus the .c 19 C_PIECES = c_clock19 C_PIECES = p_clock 20 20 C_FILES = $(C_PIECES:%=%.c) 21 21 C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) 22 22 23 H_FILES = 23 H_FILES = 24 24 25 25 SRCS = $(C_FILES) $(H_FILES) … … 62 62 $(make-rel) 63 63 64 preinstall: 65 @$(mkinstalldirs) $(PROJECT_INCLUDE)/bsp 66 @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)/bsp 67 68 all: ${ARCH} $(SRCS) preinstall $(PGM) 64 all: ${ARCH} $(SRCS) $(PGM) 69 65 70 66 # 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 17 17 18 18 # C source names, if any, go here -- minus the .c 19 C_PIECES = c_clock19 C_PIECES = p_clock 20 20 C_FILES = $(C_PIECES:%=%.c) 21 21 C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) 22 22 23 H_FILES = 23 H_FILES = 24 24 25 25 SRCS = $(C_FILES) $(H_FILES) … … 62 62 $(make-rel) 63 63 64 preinstall: 65 @$(mkinstalldirs) $(PROJECT_INCLUDE)/bsp 66 @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)/bsp 67 68 all: ${ARCH} $(SRCS) preinstall $(PGM) 64 all: ${ARCH} $(SRCS) $(PGM) 69 65 70 66 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libcpu/powerpc/mpc750/Makefile.in
r968f7742 r0fab6dde 21 21 # wrapup is the one that actually builds and installs the library 22 22 # from the individual .rel files built in other directories 23 # SUB_DIRS = exceptions mmu clock wrapup 24 SUB_DIRS = exceptions mmu wrapup 23 SUB_DIRS = exceptions mmu clock wrapup 25 24 26 25 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
c/src/lib/libcpu/powerpc/mpc750/clock/Makefile.in
r968f7742 r0fab6dde 19 19 C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) 20 20 21 H_FILES = 21 H_FILES = $(srcdir)/c_clock.h 22 22 23 23 # Assembly source names, if any, go here -- minus the .S … … 56 56 CLOBBER_ADDITIONS += 57 57 58 all: ${ARCH} $(SRCS) $(OBJS) 58 all: ${ARCH} $(SRCS) preinstall $(OBJS) 59 60 preinstall: $(INSTALLDIRS) $(H_FILES) 61 @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)/libcpu 59 62 60 63 # 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 21 21 */ 22 22 23 #include <bsp.h> 24 #include <bsp/irq.h> 23 #include <rtems.h> 25 24 #include <rtems/libio.h> 26 25 #include <stdlib.h> /* for atexit() */ 27 26 #include <assert.h> 28 27 #include <libcpu/cpu.h> 28 #include <libcpu/c_clock.h> 29 29 30 30 /* … … 47 47 rtems_device_minor_number rtems_clock_minor; 48 48 49 void clockOff( const rtems_irq_connect_data* unused)49 void clockOff(void* unused) 50 50 { 51 51 if (BSP_Configuration.ticks_per_timeslice) { … … 56 56 } 57 57 } 58 static void clockOn(const rtems_irq_connect_data* unused)58 void clockOn(void* unused) 59 59 { 60 60 PPC_Set_decrementer( Clock_Decrementer_value ); … … 91 91 } 92 92 93 int clockIsOn( const rtems_irq_connect_data* unused)93 int clockIsOn(void* unused) 94 94 { 95 95 unsigned32 msr_value; … … 100 100 } 101 101 102 static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,103 clockIsr,104 clockOn,105 clockOff,106 clockIsOn};107 108 102 109 103 /* … … 124 118 { 125 119 if ( BSP_Configuration.ticks_per_timeslice ) { 126 BSP_remove_rtems_irq_handler (&clockIrqData);120 (void) BSP_disconnect_clock_handler (); 127 121 } 128 122 } … … 153 147 (BSP_Configuration.microseconds_per_tick/1000); 154 148 155 if (!BSP_ install_rtems_irq_handler (&clockIrqData)) {149 if (!BSP_connect_clock_handler ()) { 156 150 printk("Unable to initialize system clock\n"); 157 151 rtems_fatal_error_occurred(1); … … 187 181 ) 188 182 { 189 rtems_unsigned32 isrlevel;190 183 rtems_libio_ioctl_args_t *args = pargp; 191 184 … … 200 193 else if (args->command == rtems_build_name('N', 'E', 'W', ' ')) 201 194 { 202 if (!BSP_ install_rtems_irq_handler (&clockIrqData)) {195 if (!BSP_connect_clock_handler ()) { 203 196 printk("Error installing clock interrupt handler!\n"); 204 197 rtems_fatal_error_occurred(1);
Note: See TracChangeset
for help on using the changeset viewer.