summaryrefslogtreecommitdiffstats
path: root/c/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib')
-rw-r--r--c/src/lib/libbsp/arm/arm_bare_bsp/clock/clockdrv.c1
-rw-r--r--c/src/lib/libbsp/arm/arm_bare_bsp/include/bsp.h1
-rw-r--r--c/src/lib/libbsp/arm/arm_bare_bsp/include/registers.h4
-rw-r--r--c/src/lib/libbsp/arm/arm_bare_bsp/irq/bsp_irq_init.c1
-rw-r--r--c/src/lib/libbsp/arm/arm_bare_bsp/irq/irq.c4
-rw-r--r--c/src/lib/libbsp/arm/arm_bare_bsp/irq/irq.h2
-rw-r--r--c/src/lib/libbsp/arm/arm_bare_bsp/start/start.S4
-rw-r--r--c/src/lib/libbsp/arm/arm_bare_bsp/startup/bspstart.c3
-rw-r--r--c/src/lib/libbsp/arm/arm_bare_bsp/startup/exit.c1
-rw-r--r--c/src/lib/libbsp/arm/armulator/clock/clockdrv.c1
-rw-r--r--c/src/lib/libbsp/arm/armulator/console/mon-syscalls.S2
-rw-r--r--c/src/lib/libbsp/arm/armulator/start/start.S1
-rw-r--r--c/src/lib/libbsp/arm/armulator/startup/libcfunc.c1
-rw-r--r--c/src/lib/libbsp/arm/armulator/startup/swi.h1
-rw-r--r--c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c3
-rw-r--r--c/src/lib/libbsp/arm/edb7312/console/uart.c3
-rw-r--r--c/src/lib/libbsp/arm/edb7312/include/bsp.h5
-rw-r--r--c/src/lib/libbsp/arm/edb7312/irq/irq.h3
-rw-r--r--c/src/lib/libbsp/arm/edb7312/start/start.S3
-rw-r--r--c/src/lib/libbsp/arm/edb7312/startup/bspstart.c6
-rw-r--r--c/src/lib/libbsp/arm/shared/comm/console.c9
-rw-r--r--c/src/lib/libbsp/arm/shared/comm/uart.c5
-rw-r--r--c/src/lib/libbsp/arm/shared/irq/irq_asm.S4
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/clock/clockdrv.c1
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/include/bsp.h1
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/include/registers.h31
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/irq/bsp_irq_init.c1
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/irq/irq.c4
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/irq/irq.h2
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/start/start.S4
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/startup/bspstart.c3
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/startup/exit.c1
-rw-r--r--c/src/lib/libbsp/c4x/c4xsim/clock/clock.c1
-rw-r--r--c/src/lib/libbsp/c4x/c4xsim/console/console.c1
-rw-r--r--c/src/lib/libbsp/c4x/c4xsim/include/bsp.h3
-rw-r--r--c/src/lib/libbsp/c4x/c4xsim/timer/timer.c1
-rw-r--r--c/src/lib/libbsp/i386/i386ex/clock/ckinit.c1
-rw-r--r--c/src/lib/libbsp/i386/i386ex/console/console.c6
-rw-r--r--c/src/lib/libbsp/i386/i386ex/include/bsp.h2
-rw-r--r--c/src/lib/libbsp/i386/i386ex/network/network.c47
-rw-r--r--c/src/lib/libbsp/i386/i386ex/network/uti596.h10
-rw-r--r--c/src/lib/libbsp/i386/i386ex/start/80386ex.h1
-rw-r--r--c/src/lib/libbsp/i386/i386ex/start/start.S9
-rw-r--r--c/src/lib/libbsp/i386/i386ex/startup/bspstart.c1
-rw-r--r--c/src/lib/libbsp/i386/i386ex/timer/timer.c1
-rw-r--r--c/src/lib/libbsp/i386/pc386/3c509/3c509.c31
-rw-r--r--c/src/lib/libbsp/i386/pc386/3c509/elink.c1
-rw-r--r--c/src/lib/libbsp/i386/pc386/clock/ckinit.c6
-rw-r--r--c/src/lib/libbsp/i386/pc386/clock/rtc.c5
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/console.c8
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/fb_vga.c12
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/fb_vga.h4
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/i386kbd.h4
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/inch.c4
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/kd.h4
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/keyboard.c14
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/keyboard.h6
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/mouse_parser.c3
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/mouse_parser.h1
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/outch.c6
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/pc_keyb.c8
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/ps2_drv.h4
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c13
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/ps2_mouse.h2
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/serial_mouse.c9
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/serial_mouse.h8
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/vgainit.c8
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/vt.c2
-rw-r--r--c/src/lib/libbsp/i386/pc386/ide/idecfg.c1
-rw-r--r--c/src/lib/libbsp/i386/pc386/include/bsp.h2
-rw-r--r--c/src/lib/libbsp/i386/pc386/include/crt.h2
-rw-r--r--c/src/lib/libbsp/i386/pc386/start/start.S1
-rw-r--r--c/src/lib/libbsp/i386/pc386/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/i386/pc386/startup/exit.c1
-rw-r--r--c/src/lib/libbsp/i386/pc386/startup/ldsegs.S2
-rw-r--r--c/src/lib/libbsp/i386/pc386/timer/timer.c10
-rw-r--r--c/src/lib/libbsp/i386/pc386/timer/timerisr.S1
-rw-r--r--c/src/lib/libbsp/i386/pc386/tools/bin2boot.c5
-rw-r--r--c/src/lib/libbsp/i386/pc386/wd8003/wd8003.c3
-rw-r--r--c/src/lib/libbsp/i386/shared/comm/gdb_glue.c1
-rw-r--r--c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c3
-rw-r--r--c/src/lib/libbsp/i386/shared/comm/i386-stub.c2
-rw-r--r--c/src/lib/libbsp/i386/shared/comm/tty_drv.c14
-rw-r--r--c/src/lib/libbsp/i386/shared/comm/tty_drv.h13
-rw-r--r--c/src/lib/libbsp/i386/shared/comm/uart.c8
-rw-r--r--c/src/lib/libbsp/i386/shared/comm/uart.h1
-rw-r--r--c/src/lib/libbsp/i386/shared/irq/idt.c2
-rw-r--r--c/src/lib/libbsp/i386/shared/irq/irq.c4
-rw-r--r--c/src/lib/libbsp/i386/shared/irq/irq.h6
-rw-r--r--c/src/lib/libbsp/i386/shared/irq/irq_asm.S3
-rw-r--r--c/src/lib/libbsp/i386/shared/irq/irq_asm.h1
-rw-r--r--c/src/lib/libbsp/i386/shared/irq/irq_init.c4
-rw-r--r--c/src/lib/libbsp/i386/shared/pci/pcibios.c15
-rw-r--r--c/src/lib/libbsp/i386/ts_386ex/clock/ckinit.c1
-rw-r--r--c/src/lib/libbsp/i386/ts_386ex/clock/rtc.c5
-rw-r--r--c/src/lib/libbsp/i386/ts_386ex/console/console.c5
-rw-r--r--c/src/lib/libbsp/i386/ts_386ex/include/bsp.h3
-rw-r--r--c/src/lib/libbsp/i386/ts_386ex/start/80386ex.h1
-rw-r--r--c/src/lib/libbsp/i386/ts_386ex/start/start.S4
-rw-r--r--c/src/lib/libbsp/i386/ts_386ex/startup/bspstart.c1
-rw-r--r--c/src/lib/libbsp/i386/ts_386ex/timer/timer.c2
-rw-r--r--c/src/lib/libbsp/i386/ts_386ex/tools/debug_c/serial_gdb.c2
-rw-r--r--c/src/lib/libbsp/i960/cvme961/clock/ckinit.c1
-rw-r--r--c/src/lib/libbsp/i960/cvme961/console/console.c1
-rw-r--r--c/src/lib/libbsp/i960/cvme961/shmsupp/getcfg.c1
-rw-r--r--c/src/lib/libbsp/i960/cvme961/timer/timer.c1
-rw-r--r--c/src/lib/libbsp/i960/i960sim/clock/clockdrv.c1
-rw-r--r--c/src/lib/libbsp/i960/i960sim/console/mon-syscalls.S2
-rw-r--r--c/src/lib/libbsp/i960/i960sim/start/start.c1
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c1
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/console/console.c3
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/console/serial.c11
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/start/rxgen_romld.S3
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/startup/asmstub.S1
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/startup/bspstart.c3
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/startup/cntrltbl.c3
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/startup/cntrltbl.h4
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/startup/intrtbl.c1
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/startup/prcb.c1
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/startup/rom_cntrltbl.c3
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/startup/rom_ibr.c1
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/startup/rom_prcb.c1
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/startup/setvec.c1
-rw-r--r--c/src/lib/libbsp/i960/rxgen960/timer/timer.c5
-rw-r--r--c/src/lib/libbsp/m68k/dmv152/configure.ac1
-rw-r--r--c/src/lib/libbsp/m68k/dmv152/console/console.c1
-rw-r--r--c/src/lib/libbsp/m68k/dmv152/timer/timer.c1
-rw-r--r--c/src/lib/libbsp/m68k/gen68302/console/console.c2
-rw-r--r--c/src/lib/libbsp/m68k/gen68302/include/m302_int.h9
-rw-r--r--c/src/lib/libbsp/m68k/gen68302/network/network.c13
-rw-r--r--c/src/lib/libbsp/m68k/gen68302/start/start.S3
-rw-r--r--c/src/lib/libbsp/m68k/gen68302/timer/timer.c3
-rw-r--r--c/src/lib/libbsp/m68k/gen68340/console/Modif_cpu_asm.S3
-rw-r--r--c/src/lib/libbsp/m68k/gen68340/include/m340timer.h1
-rw-r--r--c/src/lib/libbsp/m68k/gen68340/start/start.S3
-rw-r--r--c/src/lib/libbsp/m68k/gen68340/start/startfor340only.S1
-rw-r--r--c/src/lib/libbsp/m68k/gen68360/network/network.c1
-rw-r--r--c/src/lib/libbsp/m68k/gen68360/startup/bspstart.c1
-rw-r--r--c/src/lib/libbsp/m68k/idp/clock/ckinit.c1
-rw-r--r--c/src/lib/libbsp/m68k/idp/console/console.c2
-rw-r--r--c/src/lib/libbsp/m68k/idp/console/duart.c3
-rw-r--r--c/src/lib/libbsp/m68k/idp/startup/bspstart.c1
-rw-r--r--c/src/lib/libbsp/m68k/idp/timer/timer.c1
-rw-r--r--c/src/lib/libbsp/m68k/mcf5206elite/console/console.c1
-rw-r--r--c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2c.c1
-rw-r--r--c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2cdrv.c3
-rw-r--r--c/src/lib/libbsp/m68k/mcf5206elite/include/bsp.h1
-rw-r--r--c/src/lib/libbsp/m68k/mcf5206elite/nvram/nvram.c1
-rw-r--r--c/src/lib/libbsp/m68k/mcf5206elite/start/start.S1
-rw-r--r--c/src/lib/libbsp/m68k/mcf5206elite/startup/init5206e.c1
-rw-r--r--c/src/lib/libbsp/m68k/mrm332/console/console.c2
-rw-r--r--c/src/lib/libbsp/m68k/mrm332/console/sci.c35
-rw-r--r--c/src/lib/libbsp/m68k/mrm332/console/sci.h12
-rw-r--r--c/src/lib/libbsp/m68k/mrm332/include/mrm332.h5
-rw-r--r--c/src/lib/libbsp/m68k/mrm332/start/start.S1
-rw-r--r--c/src/lib/libbsp/m68k/mrm332/startup/except_vect_332_ROM.S1
-rw-r--r--c/src/lib/libbsp/m68k/mrm332/timer/timer.c2
-rw-r--r--c/src/lib/libbsp/m68k/mvme136/console/console.c2
-rw-r--r--c/src/lib/libbsp/m68k/mvme136/include/bsp.h1
-rw-r--r--c/src/lib/libbsp/m68k/mvme136/timer/timer.c1
-rw-r--r--c/src/lib/libbsp/m68k/mvme147/clock/ckinit.c1
-rw-r--r--c/src/lib/libbsp/m68k/mvme147/console/console.c1
-rw-r--r--c/src/lib/libbsp/m68k/mvme147/include/bsp.h4
-rw-r--r--c/src/lib/libbsp/m68k/mvme147s/include/bsp.h7
-rw-r--r--c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c1
-rw-r--r--c/src/lib/libbsp/m68k/mvme162/clock/ckinit.c1
-rw-r--r--c/src/lib/libbsp/m68k/mvme162/include/bsp.h1
-rw-r--r--c/src/lib/libbsp/m68k/mvme162/include/tod.h1
-rw-r--r--c/src/lib/libbsp/m68k/mvme162/startup/page_table.c2
-rw-r--r--c/src/lib/libbsp/m68k/mvme162/timer/timer.c1
-rw-r--r--c/src/lib/libbsp/m68k/mvme162/tools/sload.c1
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/clock/ckinit.c8
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/console/console-recording.h19
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/console/console.c28
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/fatal/bspfatal.c1
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/include/bsp.h8
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/network/network.c55
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/network/uti596.h1
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/startup/bspstart.c2
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/startup/page_table.c1
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/timer/timer.c3
-rw-r--r--c/src/lib/libbsp/m68k/ods68302/console/console.c2
-rw-r--r--c/src/lib/libbsp/m68k/ods68302/start/reset.S1
-rw-r--r--c/src/lib/libbsp/m68k/ods68302/startup/gdb-hooks.c1
-rw-r--r--c/src/lib/libbsp/m68k/ods68302/startup/m68302scc.c1
-rw-r--r--c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c3
-rw-r--r--c/src/lib/libbsp/m68k/ods68302/timer/timer.c3
-rw-r--r--c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h8
-rw-r--r--c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c11
-rw-r--r--c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c1
-rw-r--r--c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h3
-rw-r--r--c/src/lib/libbsp/m68k/sim68000/clock/clockdrv.c2
-rw-r--r--c/src/lib/libbsp/m68k/sim68000/console/conscfg.c2
-rw-r--r--c/src/lib/libbsp/m68k/sim68000/start/start.S1
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/clock/clockdrv.c4
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/console/conscfg.c2
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/include/bsp.h12
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/include/lr333x0.h1
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/start/mg5.h24
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/start/start.S49
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c13
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c15
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/timer/timer.c1
-rw-r--r--c/src/lib/libbsp/mips/jmr3904/clock/clockdrv.c1
-rw-r--r--c/src/lib/libbsp/mips/jmr3904/console/console-io.c1
-rw-r--r--c/src/lib/libbsp/mips/jmr3904/start/start.S1
-rw-r--r--c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c1
-rw-r--r--c/src/lib/libbsp/mips/p4000/console/console.c6
-rw-r--r--c/src/lib/libbsp/mips/p4000/console/led.S2
-rw-r--r--c/src/lib/libbsp/mips/p4000/start/start.S10
-rw-r--r--c/src/lib/libbsp/mips/p4000/startup/bspclean.c2
-rw-r--r--c/src/lib/libbsp/mips/p4000/startup/idtmem.S13
-rw-r--r--c/src/lib/libbsp/mips/p4000/startup/idttlb.S3
-rw-r--r--c/src/lib/libbsp/mips/p4000/startup/setvec.c1
-rw-r--r--c/src/lib/libbsp/mips/shared/gdbstub/gdb_if.h9
-rw-r--r--c/src/lib/libbsp/mips/shared/gdbstub/memlimits.h1
-rw-r--r--c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c90
-rw-r--r--c/src/lib/libbsp/no_cpu/no_bsp/clock/ckinit.c2
-rw-r--r--c/src/lib/libbsp/no_cpu/no_bsp/console/console.c2
-rw-r--r--c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/getcfg.c1
-rw-r--r--c/src/lib/libbsp/or32/orp/clock/clockdrv.c1
-rw-r--r--c/src/lib/libbsp/or32/orp/console/console.c3
-rw-r--r--c/src/lib/libbsp/or32/orp/start/start.S3
-rw-r--r--c/src/lib/libbsp/powerpc/dmv177/clock/clock.c1
-rw-r--r--c/src/lib/libbsp/powerpc/dmv177/configure.ac1
-rw-r--r--c/src/lib/libbsp/powerpc/dmv177/include/bsp.h6
-rw-r--r--c/src/lib/libbsp/powerpc/dmv177/include/dmv170.h4
-rw-r--r--c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c1
-rw-r--r--c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c2
-rw-r--r--c/src/lib/libbsp/powerpc/dmv177/timer/timer.c2
-rw-r--r--c/src/lib/libbsp/powerpc/eth_comm/canbus/canbus.c10
-rw-r--r--c/src/lib/libbsp/powerpc/eth_comm/include/canbus.h2
-rw-r--r--c/src/lib/libbsp/powerpc/eth_comm/include/info.h2
-rw-r--r--c/src/lib/libbsp/powerpc/eth_comm/irq/irq.c4
-rw-r--r--c/src/lib/libbsp/powerpc/eth_comm/irq/irq.h5
-rw-r--r--c/src/lib/libbsp/powerpc/eth_comm/irq/irq_asm.S1
-rw-r--r--c/src/lib/libbsp/powerpc/eth_comm/network/network.c7
-rw-r--r--c/src/lib/libbsp/powerpc/eth_comm/start/start.S3
-rw-r--r--c/src/lib/libbsp/powerpc/eth_comm/startup/bspstart.c2
-rw-r--r--c/src/lib/libbsp/powerpc/eth_comm/vectors/vectors.S3
-rw-r--r--c/src/lib/libbsp/powerpc/eth_comm/vectors/vectors.h1
-rw-r--r--c/src/lib/libbsp/powerpc/gen405/configure.ac1
-rw-r--r--c/src/lib/libbsp/powerpc/gen405/include/bsp.h2
-rw-r--r--c/src/lib/libbsp/powerpc/gen405/startup/bspstart.c2
-rw-r--r--c/src/lib/libbsp/powerpc/helas403/configure.ac1
-rw-r--r--c/src/lib/libbsp/powerpc/helas403/flashentry/flashentry.S3
-rw-r--r--c/src/lib/libbsp/powerpc/helas403/include/bsp.h2
-rw-r--r--c/src/lib/libbsp/powerpc/helas403/startup/bspstart.c1
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/configure.ac3
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/console/console.c12
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/ide/idecfg.c1
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h2
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c4
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.h5
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/irq/irq_asm.S1
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/network/network.c24
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c3
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/vectors/vectors.S3
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/vectors/vectors.h1
-rw-r--r--c/src/lib/libbsp/powerpc/motorola_powerpc/include/bsp.h4
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/configure.ac1
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/console/console.c19
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/include/bsp.h3
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c11
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.h9
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq_asm.S4
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq_init.c2
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c5
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.h3
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/network/network.c28
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/start/start.S17
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c21
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors.S3
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors.h1
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors_init.c1
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/clock/clock.c1
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/configure.ac1
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/console/vga.c8
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/include/bsp.h4
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/include/nvram.h1
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/include/tod.h1
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/network/amd79c970.h2
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/startup/genpvec.c1
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/startup/setvec.c1
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c2
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/tod/tod.c3
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/universe/universe.c1
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/vectors/align_h.S1
-rw-r--r--c/src/lib/libbsp/powerpc/psim/configure.ac1
-rw-r--r--c/src/lib/libbsp/powerpc/psim/include/bsp.h3
-rw-r--r--c/src/lib/libbsp/powerpc/psim/shmsupp/mpisr.c1
-rw-r--r--c/src/lib/libbsp/powerpc/psim/vectors/align_h.S1
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c2
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/PCI_bus/universe.c3
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/clock/clock.c1
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/configure.ac1
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/console/85c30.c6
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/console/console.c7
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/console/consolebsp.h4
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/console/tbl85c30.c1
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/include/bsp.h4
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/include/gen2.h5
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/include/tod.h1
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c1
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c4
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c3
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c2
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/setvec.c2
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/bootldr.h1
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/em86.c5
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/em86real.S5
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/head.S9
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/lib.c1
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/misc.c6
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/mm.c3
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/pci.c134
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/pci.h1
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/zlib.c39
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/zlib.h2
-rw-r--r--c/src/lib/libbsp/powerpc/shared/clock/p_clock.c1
-rw-r--r--c/src/lib/libbsp/powerpc/shared/console/console.c6
-rw-r--r--c/src/lib/libbsp/powerpc/shared/console/consoleIo.h2
-rw-r--r--c/src/lib/libbsp/powerpc/shared/console/inch.c3
-rw-r--r--c/src/lib/libbsp/powerpc/shared/console/keyboard.h1
-rw-r--r--c/src/lib/libbsp/powerpc/shared/console/polled_io.c9
-rw-r--r--c/src/lib/libbsp/powerpc/shared/console/uart.c4
-rw-r--r--c/src/lib/libbsp/powerpc/shared/include/bsp.h4
-rw-r--r--c/src/lib/libbsp/powerpc/shared/include/nvram.h1
-rw-r--r--c/src/lib/libbsp/powerpc/shared/irq/i8259.c1
-rw-r--r--c/src/lib/libbsp/powerpc/shared/irq/irq.c9
-rw-r--r--c/src/lib/libbsp/powerpc/shared/irq/irq.h8
-rw-r--r--c/src/lib/libbsp/powerpc/shared/irq/irq_asm.S1
-rw-r--r--c/src/lib/libbsp/powerpc/shared/motorola/motorola.c28
-rw-r--r--c/src/lib/libbsp/powerpc/shared/motorola/motorola.h8
-rw-r--r--c/src/lib/libbsp/powerpc/shared/openpic/openpic.c25
-rw-r--r--c/src/lib/libbsp/powerpc/shared/openpic/openpic.h14
-rw-r--r--c/src/lib/libbsp/powerpc/shared/pci/pci.c40
-rw-r--r--c/src/lib/libbsp/powerpc/shared/pci/pci.h2
-rw-r--r--c/src/lib/libbsp/powerpc/shared/residual/residual.c1
-rw-r--r--c/src/lib/libbsp/powerpc/shared/start/start.S3
-rw-r--r--c/src/lib/libbsp/powerpc/shared/startup/bspstart.c5
-rw-r--r--c/src/lib/libbsp/powerpc/shared/startup/pgtbl_setup.c2
-rw-r--r--c/src/lib/libbsp/powerpc/shared/vectors/vectors.S3
-rw-r--r--c/src/lib/libbsp/powerpc/shared/vectors/vectors.h1
-rw-r--r--c/src/lib/libbsp/powerpc/ss555/console/console.c9
-rw-r--r--c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c2
-rw-r--r--c/src/lib/libbsp/powerpc/ss555/startup/iss555.c1
-rw-r--r--c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.c3
-rw-r--r--c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu_asm.S1
-rw-r--r--c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c3
-rw-r--r--c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu_asm.S1
-rw-r--r--c/src/lib/libbsp/powerpc/support/old_exception_processing/ppccache.c1
-rw-r--r--c/src/lib/libbsp/sh/gensh1/include/bsp.h1
-rw-r--r--c/src/lib/libbsp/sh/gensh1/startup/bspstart.c1
-rw-r--r--c/src/lib/libbsp/sh/gensh2/console/config.c3
-rw-r--r--c/src/lib/libbsp/sh/gensh2/include/bsp.h2
-rw-r--r--c/src/lib/libbsp/sh/gensh2/startup/bspstart.c1
-rw-r--r--c/src/lib/libbsp/sh/gensh4/include/bsp.h3
-rw-r--r--c/src/lib/libbsp/sh/gensh4/start/start.S2
-rw-r--r--c/src/lib/libbsp/sh/gensh4/startup/bspstart.c1
-rw-r--r--c/src/lib/libbsp/sh/shared/console.c1
-rw-r--r--c/src/lib/libbsp/sh/shsim/clock/clockdrv.c1
-rw-r--r--c/src/lib/libbsp/sh/shsim/gdbsci/gdbsci.c1
-rw-r--r--c/src/lib/libbsp/sh/shsim/include/bsp.h1
-rw-r--r--c/src/lib/libbsp/sh/shsim/startup/bspstart.c1
-rw-r--r--c/src/lib/libbsp/sh/shsim/trap34/console-io.c1
-rw-r--r--c/src/lib/libbsp/sh/simsh4/clock/ckinit.c5
-rw-r--r--c/src/lib/libbsp/sh/simsh4/console/console.c2
-rw-r--r--c/src/lib/libbsp/sh/simsh4/include/bsp.h3
-rw-r--r--c/src/lib/libbsp/sh/simsh4/include/ramdisk.h1
-rw-r--r--c/src/lib/libbsp/sh/simsh4/include/syscall.h1
-rw-r--r--c/src/lib/libbsp/sh/simsh4/start/start.S2
-rw-r--r--c/src/lib/libbsp/sh/simsh4/startup/bspstart.c1
-rw-r--r--c/src/lib/libbsp/sh/simsh4/timer/timer.c2
-rw-r--r--c/src/lib/libbsp/shared/bootcard.c2
-rw-r--r--c/src/lib/libbsp/shared/clock_driver_stub.c1
-rw-r--r--c/src/lib/libbsp/shared/console-polled.c1
-rw-r--r--c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c91
-rw-r--r--c/src/lib/libbsp/shared/tod.c2
-rw-r--r--c/src/lib/libbsp/shared/tod.h1
-rw-r--r--c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c9
-rw-r--r--c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.h3
-rw-r--r--c/src/lib/libbsp/sparc/erc32/include/bsp.h1
-rw-r--r--c/src/lib/libbsp/sparc/erc32/include/erc32.h2
-rw-r--r--c/src/lib/libbsp/sparc/erc32/startup/boardinit.S1
-rw-r--r--c/src/lib/libbsp/sparc/erc32/timer/timer.c1
-rw-r--r--c/src/lib/libbsp/sparc/leon/console/console.c1
-rw-r--r--c/src/lib/libbsp/sparc/leon/include/bsp.h2
-rw-r--r--c/src/lib/libbsp/sparc/leon/include/leon.h2
-rw-r--r--c/src/lib/libbsp/sparc/leon/leon_open_eth/leon_open_eth.c1
-rw-r--r--c/src/lib/libbsp/sparc/leon/startup/boardinit.S1
-rw-r--r--c/src/lib/libbsp/sparc/leon/timer/timer.c1
-rw-r--r--c/src/lib/libbsp/sparc/shared/bspclean.c1
-rw-r--r--c/src/lib/libbsp/sparc/shared/bspstart.c1
-rw-r--r--c/src/lib/libbsp/sparc/shared/start.S5
-rw-r--r--c/src/lib/libbsp/unix/posix/console/console.c1
-rw-r--r--c/src/lib/libbsp/unix/posix/startup/bspstart.c1
-rw-r--r--c/src/lib/libcpu/powerpc/new-exceptions/cpu.c3
-rw-r--r--c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S1
-rw-r--r--c/src/lib/libcpu/powerpc/old-exceptions/cpu.c3
-rw-r--r--c/src/lib/libcpu/powerpc/old-exceptions/cpu_asm.S1
-rw-r--r--c/src/lib/libcpu/powerpc/old-exceptions/ppccache.c1
403 files changed, 33 insertions, 2026 deletions
diff --git a/c/src/lib/libbsp/arm/arm_bare_bsp/clock/clockdrv.c b/c/src/lib/libbsp/arm/arm_bare_bsp/clock/clockdrv.c
index c49150fba6..f61b66e42d 100644
--- a/c/src/lib/libbsp/arm/arm_bare_bsp/clock/clockdrv.c
+++ b/c/src/lib/libbsp/arm/arm_bare_bsp/clock/clockdrv.c
@@ -14,7 +14,6 @@
#define Clock_driver_support_install_isr( _new, _old ) \
do { _old = 0; } while(0)
-
#define Clock_driver_support_initialize_hardware()
#define Clock_driver_support_shutdown_hardware()
diff --git a/c/src/lib/libbsp/arm/arm_bare_bsp/include/bsp.h b/c/src/lib/libbsp/arm/arm_bare_bsp/include/bsp.h
index 761b5f3604..abefa5502b 100644
--- a/c/src/lib/libbsp/arm/arm_bare_bsp/include/bsp.h
+++ b/c/src/lib/libbsp/arm/arm_bare_bsp/include/bsp.h
@@ -14,7 +14,6 @@
| $Id$
+--------------------------------------------------------------------------*/
-
#ifndef __BSP_H_
#define __BSP_H_
diff --git a/c/src/lib/libbsp/arm/arm_bare_bsp/include/registers.h b/c/src/lib/libbsp/arm/arm_bare_bsp/include/registers.h
index 3b11c3856f..9c1c8369bb 100644
--- a/c/src/lib/libbsp/arm/arm_bare_bsp/include/registers.h
+++ b/c/src/lib/libbsp/arm/arm_bare_bsp/include/registers.h
@@ -10,7 +10,6 @@
*
*/
-
#ifndef __REGS_H__
#define __REGS_H__
@@ -22,8 +21,6 @@
extern volatile unsigned long *Regs; /* Chip registers */
#endif
-
-
/*
* Here must be "defined" each register, to use with Regs as
* LM_Regs[REGISTER1] = value
@@ -32,7 +29,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define REGISTER1 1
#define REGISTER2 2
-
/*
* define for UART registers to be able
* to compile and link arm_bare_bsp
diff --git a/c/src/lib/libbsp/arm/arm_bare_bsp/irq/bsp_irq_init.c b/c/src/lib/libbsp/arm/arm_bare_bsp/irq/bsp_irq_init.c
index f307a4171c..c96df8f6e2 100644
--- a/c/src/lib/libbsp/arm/arm_bare_bsp/irq/bsp_irq_init.c
+++ b/c/src/lib/libbsp/arm/arm_bare_bsp/irq/bsp_irq_init.c
@@ -16,7 +16,6 @@
#include <bsp.h>
#include <registers.h>
-
void BSP_rtems_irq_mngt_init() {
/*
diff --git a/c/src/lib/libbsp/arm/arm_bare_bsp/irq/irq.c b/c/src/lib/libbsp/arm/arm_bare_bsp/irq/irq.c
index 7a0c222110..3e1f17f488 100644
--- a/c/src/lib/libbsp/arm/arm_bare_bsp/irq/irq.c
+++ b/c/src/lib/libbsp/arm/arm_bare_bsp/irq/irq.c
@@ -12,14 +12,12 @@
* $Id$
*/
-
#include <bsp.h>
#include <irq.h>
#include <registers.h>
#include <rtems/score/thread.h>
#include <rtems/score/apiext.h>
-
/*
* This function check that the value given for the irq line
* is valid.
@@ -103,8 +101,6 @@ int BSP_remove_rtems_irq_handler (const rtems_irq_connect_data* irq)
return 1;
}
-
-
void _ThreadProcessSignalsFromIrq (CPU_Exception_frame* ctx)
{
/*
diff --git a/c/src/lib/libbsp/arm/arm_bare_bsp/irq/irq.h b/c/src/lib/libbsp/arm/arm_bare_bsp/irq/irq.h
index d773e43161..2d536d871b 100644
--- a/c/src/lib/libbsp/arm/arm_bare_bsp/irq/irq.h
+++ b/c/src/lib/libbsp/arm/arm_bare_bsp/irq/irq.h
@@ -110,7 +110,6 @@ typedef struct __rtems_irq_connect_data__ {
*/
void BSP_rtems_irq_mngt_init();
-
/*
* function to connect a particular irq handler. This hanlder will NOT be called
* directly as the result of the corresponding interrupt. Instead, a RTEMS
@@ -159,7 +158,6 @@ int BSP_get_current_rtems_irq_handler (rtems_irq_connect_data* ptr);
*/
int BSP_remove_rtems_irq_handler (const rtems_irq_connect_data*);
-
#ifdef __cplusplus
}
#endif
diff --git a/c/src/lib/libbsp/arm/arm_bare_bsp/start/start.S b/c/src/lib/libbsp/arm/arm_bare_bsp/start/start.S
index 6e9db56afe..7352d30123 100644
--- a/c/src/lib/libbsp/arm/arm_bare_bsp/start/start.S
+++ b/c/src/lib/libbsp/arm/arm_bare_bsp/start/start.S
@@ -29,18 +29,15 @@
.equ I_Bit, 0x80
.equ F_Bit, 0x40
-
.text
.globl _start
-
_start:
/*
* Here is the code to initialize the low-level BSP environment
* (Chip Select, PLL, ....?)
-
/* Copy data from FLASH to RAM */
LDR r0, =_initdata /* load address of region */
LDR r1, =0x400000 /* execution address of region */
@@ -61,7 +58,6 @@ zi_init:
STRLOT r2, [r0], #4
BLO zi_init
-
/* Load basic ARM7 interrupt table */
VectorInit:
MOV R8, #0
diff --git a/c/src/lib/libbsp/arm/arm_bare_bsp/startup/bspstart.c b/c/src/lib/libbsp/arm/arm_bare_bsp/startup/bspstart.c
index ecef2a0d96..416552d80c 100644
--- a/c/src/lib/libbsp/arm/arm_bare_bsp/startup/bspstart.c
+++ b/c/src/lib/libbsp/arm/arm_bare_bsp/startup/bspstart.c
@@ -13,7 +13,6 @@
|
+--------------------------------------------------------------------------*/
-
#include <bsp.h>
#include <rtems/libcsupport.h>
#include <rtems/libio.h>
@@ -81,7 +80,6 @@ void bsp_pretasking_hook(void)
rtemsFreeMemStart += _heap_size; /* HEAP_SIZE in KBytes */
-
#ifdef RTEMS_DEBUG
rtems_debug_enable(RTEMS_DEBUG_ALL_MASK);
@@ -90,7 +88,6 @@ void bsp_pretasking_hook(void)
} /* bsp_pretasking_hook */
-
/*-------------------------------------------------------------------------+
| Function: bsp_start
| Description: Called before main is invoked.
diff --git a/c/src/lib/libbsp/arm/arm_bare_bsp/startup/exit.c b/c/src/lib/libbsp/arm/arm_bare_bsp/startup/exit.c
index a99faeb9ba..03e240cc33 100644
--- a/c/src/lib/libbsp/arm/arm_bare_bsp/startup/exit.c
+++ b/c/src/lib/libbsp/arm/arm_bare_bsp/startup/exit.c
@@ -13,7 +13,6 @@
|
+--------------------------------------------------------------------------*/
-
#include <stdio.h>
#include <bsp.h>
#include <rtems/bspIo.h>
diff --git a/c/src/lib/libbsp/arm/armulator/clock/clockdrv.c b/c/src/lib/libbsp/arm/armulator/clock/clockdrv.c
index c49150fba6..f61b66e42d 100644
--- a/c/src/lib/libbsp/arm/armulator/clock/clockdrv.c
+++ b/c/src/lib/libbsp/arm/armulator/clock/clockdrv.c
@@ -14,7 +14,6 @@
#define Clock_driver_support_install_isr( _new, _old ) \
do { _old = 0; } while(0)
-
#define Clock_driver_support_initialize_hardware()
#define Clock_driver_support_shutdown_hardware()
diff --git a/c/src/lib/libbsp/arm/armulator/console/mon-syscalls.S b/c/src/lib/libbsp/arm/armulator/console/mon-syscalls.S
index e844274fc8..0c6dc97f66 100644
--- a/c/src/lib/libbsp/arm/armulator/console/mon-syscalls.S
+++ b/c/src/lib/libbsp/arm/armulator/console/mon-syscalls.S
@@ -11,8 +11,6 @@
#define ENTRY(name) \
_ENTRY(_C_LABEL(name))
-
-
ENTRY(_sys_exit)
lda 257,g13
calls g13
diff --git a/c/src/lib/libbsp/arm/armulator/start/start.S b/c/src/lib/libbsp/arm/armulator/start/start.S
index bd725115f1..25caf689bb 100644
--- a/c/src/lib/libbsp/arm/armulator/start/start.S
+++ b/c/src/lib/libbsp/arm/armulator/start/start.S
@@ -64,7 +64,6 @@ _mainCRTStartup:
ldr a3, .LC2
sub a3, a3, a1 /* Third arg: length of block */
-
#ifdef __thumb__ /* Enter Thumb mode.... */
add a4, pc, #1 /* Get the address of the Thumb block */
diff --git a/c/src/lib/libbsp/arm/armulator/startup/libcfunc.c b/c/src/lib/libbsp/arm/armulator/startup/libcfunc.c
index 09714436dd..82b4758257 100644
--- a/c/src/lib/libbsp/arm/armulator/startup/libcfunc.c
+++ b/c/src/lib/libbsp/arm/armulator/startup/libcfunc.c
@@ -25,7 +25,6 @@ do_AngelSWI (int reason, void * arg)
}
#endif /* ARM_RDI_MONITOR */
-
void
abort_program (void)
{
diff --git a/c/src/lib/libbsp/arm/armulator/startup/swi.h b/c/src/lib/libbsp/arm/armulator/startup/swi.h
index 91fad59121..2dae9925bd 100644
--- a/c/src/lib/libbsp/arm/armulator/startup/swi.h
+++ b/c/src/lib/libbsp/arm/armulator/startup/swi.h
@@ -30,7 +30,6 @@
#define SWI_InstallHandler 0x70
#define SWI_GenerateError 0x71
-
/* Now the SWI numbers and reason codes for RDI (Angel) monitors */
#define AngelSWI_ARM (0x123456)
#ifdef __thumb__
diff --git a/c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c b/c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c
index 5850436de3..5f2adf0cb5 100644
--- a/c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c
+++ b/c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c
@@ -16,7 +16,6 @@
#include <bsp.h>
#include <irq.h>
-
rtems_isr clock_isr(rtems_vector_number vector);
rtems_isr Clock_isr(rtems_vector_number vector);
static void clock_isr_on(const rtems_irq_connect_data *unused);
@@ -43,7 +42,6 @@ rtems_irq_connect_data clock_isr_data = {BSP_TC1OI,
BSP_install_rtems_irq_handler(&clock_isr_data); \
} while(0)
-
/*
* Set up the clock hardware
*/
@@ -74,5 +72,4 @@ static int clock_isr_is_on(const rtems_irq_connect_data *irq)
return 1;
}
-
#include "../../../shared/clockdrv_shell.c"
diff --git a/c/src/lib/libbsp/arm/edb7312/console/uart.c b/c/src/lib/libbsp/arm/edb7312/console/uart.c
index c2628756e0..381eae680b 100644
--- a/c/src/lib/libbsp/arm/edb7312/console/uart.c
+++ b/c/src/lib/libbsp/arm/edb7312/console/uart.c
@@ -100,8 +100,6 @@ int uart_poll_read(int minor)
return -1;
}
-
-
err = *data_reg;
c = err & 0xff;
err &= (EP7312_UART_FRMERR | EP7312_UART_PARERR | EP7312_UART_OVERR);
@@ -157,5 +155,4 @@ static void uart_init(int minor)
EP7312_UART_FIFOEN |
0x17); /* 9600 baud */
-
}
diff --git a/c/src/lib/libbsp/arm/edb7312/include/bsp.h b/c/src/lib/libbsp/arm/edb7312/include/bsp.h
index 1c86164ced..c08ebcf72b 100644
--- a/c/src/lib/libbsp/arm/edb7312/include/bsp.h
+++ b/c/src/lib/libbsp/arm/edb7312/include/bsp.h
@@ -50,17 +50,12 @@ extern rtems_configuration_table BSP_Configuration;
#define Lower_tm27_intr()
-
-
/*
* Network driver configuration
*/
#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0"
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH cs8900_driver_attach
-
-
-
#ifdef __cplusplus
}
#endif
diff --git a/c/src/lib/libbsp/arm/edb7312/irq/irq.h b/c/src/lib/libbsp/arm/edb7312/irq/irq.h
index b87586f459..2a2a26a673 100644
--- a/c/src/lib/libbsp/arm/edb7312/irq/irq.h
+++ b/c/src/lib/libbsp/arm/edb7312/irq/irq.h
@@ -67,8 +67,6 @@ typedef enum {
BSP_MAX_INT,
} rtems_irq_symbolic_name;
-
-
/*
* Type definition for RTEMS managed interrupts
*/
@@ -137,7 +135,6 @@ typedef struct __rtems_irq_connect_data__ {
*/
void BSP_rtems_irq_mngt_init();
-
/*
* function to connect a particular irq handler. This hanlder will NOT be called
* directly as the result of the corresponding interrupt. Instead, a RTEMS
diff --git a/c/src/lib/libbsp/arm/edb7312/start/start.S b/c/src/lib/libbsp/arm/edb7312/start/start.S
index 95b3bc88fa..2964116fc8 100644
--- a/c/src/lib/libbsp/arm/edb7312/start/start.S
+++ b/c/src/lib/libbsp/arm/edb7312/start/start.S
@@ -14,7 +14,6 @@
* $Id$
*/
-
/* Some standard definitions...*/
.equ Mode_USR, 0x10
@@ -29,11 +28,9 @@
.equ I_Bit, 0x80
.equ F_Bit, 0x40
-
.text
.globl _start
-
_start:
/* store the sp */
mov r12, sp
diff --git a/c/src/lib/libbsp/arm/edb7312/startup/bspstart.c b/c/src/lib/libbsp/arm/edb7312/startup/bspstart.c
index 714a134d26..e84b8d08c9 100644
--- a/c/src/lib/libbsp/arm/edb7312/startup/bspstart.c
+++ b/c/src/lib/libbsp/arm/edb7312/startup/bspstart.c
@@ -78,7 +78,6 @@ void bsp_pretasking_hook(void)
uint32_t heap_start;
uint32_t heap_size;
-
/*
* Set up the heap. It uses all free SDRAM except that reserved
* for non-cached uses.
@@ -98,7 +97,6 @@ void bsp_pretasking_hook(void)
} /* bsp_pretasking_hook */
-
/**************************************************************************/
/* */
/* NAME: bsp_start_default - BSP initialization function */
@@ -152,7 +150,6 @@ void bsp_start_default( void )
*/
rtems_irq_mngt_init();
-
/*
* The following information is very useful when debugging.
*/
@@ -175,9 +172,6 @@ void bsp_start_default( void )
#endif
} /* bsp_start */
-
-
-
/*
* By making this a weak alias for bsp_start_default, a brave soul
* can override the actual bsp_start routine used.
diff --git a/c/src/lib/libbsp/arm/shared/comm/console.c b/c/src/lib/libbsp/arm/shared/comm/console.c
index fc6cec3f31..2af1359051 100644
--- a/c/src/lib/libbsp/arm/shared/comm/console.c
+++ b/c/src/lib/libbsp/arm/shared/comm/console.c
@@ -47,7 +47,6 @@ int BSPPrintkPort = BSP_UART_COM1;
int BSPBaseBaud = 115200;
-
/*-------------------------------------------------------------------------+
| External Prototypes
+--------------------------------------------------------------------------*/
@@ -70,7 +69,6 @@ BSP_output_char_function_type BSP_output_char =
BSP_polling_getchar_function_type BSP_poll_char =
(BSP_polling_getchar_function_type) BSP_poll_char_via_serial;
-
static rtems_irq_connect_data console_isr_data = {BSP_UART,
BSP_uart_termios_isr_com1,
isr_on,
@@ -125,7 +123,6 @@ void __assert (const char *file, int line, const char *msg)
}
-
/*-------------------------------------------------------------------------+
| Console device driver INITIALIZE entry point.
+--------------------------------------------------------------------------+
@@ -150,7 +147,6 @@ console_initialize(rtems_device_major_number major,
/* 38400-8-N-1 */
BSP_uart_init(BSPConsolePort, 38400, 0);
-
/* Set interrupt handler */
console_isr_data.name = BSP_UART;
console_isr_data.hdl = BSP_uart_termios_isr_com1;
@@ -179,7 +175,6 @@ console_initialize(rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
} /* console_initialize */
-
static int console_last_close(int major, int minor, void *arg)
{
BSP_remove_rtems_irq_handler (&console_isr_data);
@@ -243,7 +238,6 @@ console_close(rtems_device_major_number major,
return res;
} /* console_close */
-
/*-------------------------------------------------------------------------+
| Console device driver READ entry point.
+--------------------------------------------------------------------------+
@@ -259,7 +253,6 @@ console_read(rtems_device_major_number major,
} /* console_read */
-
/*-------------------------------------------------------------------------+
| Console device driver WRITE entry point.
+--------------------------------------------------------------------------+
@@ -275,8 +268,6 @@ console_write(rtems_device_major_number major,
} /* console_write */
-
-
/*
* Handle ioctl request.
*/
diff --git a/c/src/lib/libbsp/arm/shared/comm/uart.c b/c/src/lib/libbsp/arm/shared/comm/uart.c
index 21ba31dcdf..6b21395ce8 100644
--- a/c/src/lib/libbsp/arm/shared/comm/uart.c
+++ b/c/src/lib/libbsp/arm/shared/comm/uart.c
@@ -222,7 +222,6 @@ BSP_uart_intr_ctrl(int uart, int cmd)
return;
}
-
/*
* Status function, -1 if error
* detected, 0 if no received chars available,
@@ -269,7 +268,6 @@ BSP_uart_polled_status(int uart)
return BSP_UART_STATUS_ERROR;
}
-
/*
* Polled mode write function
*/
@@ -330,7 +328,6 @@ BSP_poll_char_via_serial()
return BSP_uart_polled_read(BSPConsolePort);
}
-
/* ================ Termios support =================*/
static volatile int termios_stopped_com1 = 0;
@@ -422,7 +419,6 @@ BSP_uart_termios_write_com2(int minor, const char *buf, int len)
return 0;
}
-
/* If there TX buffer is busy - something is royally screwed up */
assert((uread(BSP_UART_COM2, LSR) & THRE) != 0);
@@ -453,7 +449,6 @@ BSP_uart_termios_write_com2(int minor, const char *buf, int len)
return 0;
}
-
void
BSP_uart_termios_isr_com1(void)
{
diff --git a/c/src/lib/libbsp/arm/shared/irq/irq_asm.S b/c/src/lib/libbsp/arm/shared/irq/irq_asm.S
index 52a1692819..8bc5680205 100644
--- a/c/src/lib/libbsp/arm/shared/irq/irq_asm.S
+++ b/c/src/lib/libbsp/arm/shared/irq/irq_asm.S
@@ -26,7 +26,6 @@ _ISR_Handler:
stmdb sp!, {r0, r1, r2, r3, r12} /* save regs on INT stack */
stmdb sp!, {lr} /* now safe to call C funcs */
-
/* one nest level deeper */
ldr r0, =_ISR_Nest_level
ldr r1, [r0]
@@ -111,7 +110,6 @@ bframe:
ldmia sp!, {r1} /* out with the old */
stmdb sp!, {lr} /* in with the new (lr) */
-
orr r0, r0, #0xc0
msr spsr, r0
@@ -120,8 +118,6 @@ exitit:
ldmia sp!, {r0, r1, r2, r3, r12} /* restore regs from INT stack */
subs pc, lr, #4 /* return */
-
-
/* on entry to _ISR_Dispatch, we're in SVC mode */
.globl _ISR_Dispatch
_ISR_Dispatch:
diff --git a/c/src/lib/libbsp/arm/vegaplus/clock/clockdrv.c b/c/src/lib/libbsp/arm/vegaplus/clock/clockdrv.c
index c49150fba6..f61b66e42d 100644
--- a/c/src/lib/libbsp/arm/vegaplus/clock/clockdrv.c
+++ b/c/src/lib/libbsp/arm/vegaplus/clock/clockdrv.c
@@ -14,7 +14,6 @@
#define Clock_driver_support_install_isr( _new, _old ) \
do { _old = 0; } while(0)
-
#define Clock_driver_support_initialize_hardware()
#define Clock_driver_support_shutdown_hardware()
diff --git a/c/src/lib/libbsp/arm/vegaplus/include/bsp.h b/c/src/lib/libbsp/arm/vegaplus/include/bsp.h
index 761b5f3604..abefa5502b 100644
--- a/c/src/lib/libbsp/arm/vegaplus/include/bsp.h
+++ b/c/src/lib/libbsp/arm/vegaplus/include/bsp.h
@@ -14,7 +14,6 @@
| $Id$
+--------------------------------------------------------------------------*/
-
#ifndef __BSP_H_
#define __BSP_H_
diff --git a/c/src/lib/libbsp/arm/vegaplus/include/registers.h b/c/src/lib/libbsp/arm/vegaplus/include/registers.h
index 2a153fd8d9..c11fc851c3 100644
--- a/c/src/lib/libbsp/arm/vegaplus/include/registers.h
+++ b/c/src/lib/libbsp/arm/vegaplus/include/registers.h
@@ -10,7 +10,6 @@
*
*/
-
#ifndef __LMREGS_H__
#define __LMREGS_H__
@@ -28,8 +27,6 @@
extern volatile unsigned long *Regs; /* Chip registers */
#endif
-
-
/******************************************************************************
* RADIO CONTROLLER BLOCK 0x0C00 - 0x0FFF *
******************************************************************************
@@ -71,7 +68,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define ADCPERIOD ((RC_BASE+0x7C)/4)
#define SYNTIOCNTL ((RC_BASE+0x80)/4) /* added 30/08/99 */
-
/* modified 30/08/99 by LHT */
#define SHAPE0 ((RC_BASE+0x100)/4) /* previously 0x80 */
#define SHAPE1 ((RC_BASE+0x104)/4)
@@ -121,7 +117,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define TSTRXD ((PLP_BASE+0x78)/4)
#define PLPID ((PLP_BASE+0x7C)/4)
-
/** ENCRYPTION ENGINE 0x1800 - 0x1BFF */
#define EE_BASE 0x1800
@@ -250,7 +245,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define RSCNT ((UART_BASE+0x20)/4)
/*PRODUCT_VERSION*/
-
/** THUMB and INTERFACES BLOCK 0x3400 - 0x4FFF */
#define TIM_BASE 0x3400
@@ -333,8 +327,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define SLEEPTIMER ((TI_BASE+0x204)/4)
#define SLEEPCNTL ((TI_BASE+0x208)/4)
-
-
/******************************************************************************
* BIT MASKS for Chip registers
******************************************************************************
@@ -358,8 +350,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define MSK_TADCMD 0x0F /* Mask on TADCMD */
#define CONTINUE 0x10
-
-
/** RADIO CONTROLER BLOCK (RC3) */
/* SLICECNTL register */
@@ -461,7 +451,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
/* RCCNTL register */
#define RCCNTL_ENABLE 0x80
-
/* ADCCNTL1 register */
#define ADCSTART 0x80
#define SCAN 0x40
@@ -474,8 +463,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define ADCDWN1 0x04
#define ADCDWN2 0x08
-
-
/** PLP BLOCK */
/* DCNTL0 register */
@@ -511,7 +498,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define MSK_PRES 0x0F /* mask on PRES field */
-
/* PLPALIN register */
#define SYNM 0x08
#define BITSLIP 0x10
@@ -537,7 +523,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
/* Bit ENABLE already defined */
#define EECNTL_ENABLE 0x80
-
/** PAINT+ BLOCK */
/* PAINTCNTL register */
@@ -555,7 +540,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define FORCE13 0x4000
#define PAINTENB 0x8000
-
/* PAINTPLLCNTL register */
#define MSK_MC 0x001F /* Mask on MC field */
#define MCSIGN 0x0020
@@ -649,7 +633,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define G726ENB0 0x0001
#define G726ENB1 0x0003
-
/** GENERAL REGISTERS BLOCK */
/* RINGCNTL register */
@@ -730,7 +713,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define PWM0_PADENB 0x20
#define MIRROR 0x10
-
/* LCDEECNTL1 register */
/* Bit ENABLE already defined */
#define LCDEE_ENABLE 0x80
@@ -788,7 +770,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define CSMODE_16_WHWL 0x0002
#define CSMODE_16_BHBL 0x0003
-
/* MUXADCNTL register */
#define MSK_AHOLD 0x0007
#define MSK_ALEWIDTH 0x0070
@@ -815,11 +796,9 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define ADDRESS_1M 0x3000
#define ADDRESS_2M 0x4000
-
/* CSGCNTL register */
#define CSSWITCH 0x0040
-
/* SLEEPCNTL register */
#define EXPIRED 0x01
#define SLEEP_ENABLE 0x80
@@ -828,12 +807,10 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define WDSTROKE 0x80
#define WDFLAG 0x80 /* same bit */
-
/* DCC register */
/* bit ENABLE=0x80 already defined */
#define DCC_ENABLE 0x80
-
/* TIMERCNTL[0:1] register */
/* bit ENABLE=0x80 already defined */
#define TIMER_ENABLE 0x80
@@ -844,7 +821,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define TIMER_216kHz 0x0001
#define TIMER_27kHz 0x0000
-
/* INTMASKALL register */
#define MASKIRQ 0x80
#define MASKFIQ 0x40
@@ -880,7 +856,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
/* INTHPAI register */
#define AUTOACK 0x0080
-
/******************************************************************************
* Memory Mapping definition
******************************************************************************
@@ -899,7 +874,6 @@ extern volatile unsigned long *Regs; /* Chip registers */
#define REGS_BASE_ADR 0x000F0000 /* Base Address of registers */
#define RADRAM_BASE_ADR 0x000F0000 /* Base Address of registers */
-
/******************************************************************************
* Slot Control bloc
******************************************************************************
@@ -1067,10 +1041,6 @@ typedef LM_SCB *LM_SCB_P; /* pointer to Slot Control Block */
#define LM_WIN_OPEN 0x3F /* wide open window size */
#define MSK_WINSZ 0x3F
-
-
-
-
/*
* Some macros to mask the VEGA+ interrupt sources
******************************************************************************
@@ -1085,7 +1055,6 @@ typedef LM_SCB *LM_SCB_P; /* pointer to Slot Control Block */
#define LM_MaskSTX() (LM_Regs[RSIER] &= ~TX_INT_ENABLE)
#define LM_MaskUARTStatus() (LM_Regs[RSIER] &= ~LINE_STATUS_ENABLE)
-
#define LM_MaskTMR0() (LM_Regs[INTMASK] |= TMR0)
#define LM_MaskTMR1() (LM_Regs[INTMASK] |= TMR1)
#define LM_MaskLCDEE() (LM_Regs[INTMASK] |= LCDEE)
diff --git a/c/src/lib/libbsp/arm/vegaplus/irq/bsp_irq_init.c b/c/src/lib/libbsp/arm/vegaplus/irq/bsp_irq_init.c
index 7807d89181..a8bb04bd8a 100644
--- a/c/src/lib/libbsp/arm/vegaplus/irq/bsp_irq_init.c
+++ b/c/src/lib/libbsp/arm/vegaplus/irq/bsp_irq_init.c
@@ -16,7 +16,6 @@
#include <bsp.h>
#include <registers.h>
-
void BSP_rtems_irq_mngt_init() {
/* Initialize the vector table address in internal RAM */
diff --git a/c/src/lib/libbsp/arm/vegaplus/irq/irq.c b/c/src/lib/libbsp/arm/vegaplus/irq/irq.c
index 55c1590bdf..9a529346dc 100644
--- a/c/src/lib/libbsp/arm/vegaplus/irq/irq.c
+++ b/c/src/lib/libbsp/arm/vegaplus/irq/irq.c
@@ -12,14 +12,12 @@
* $Id$
*/
-
#include <bsp.h>
#include <irq.h>
#include <registers.h>
#include <rtems/score/thread.h>
#include <rtems/score/apiext.h>
-
/*
* This function check that the value given for the irq line
* is valid.
@@ -121,8 +119,6 @@ int BSP_remove_rtems_irq_handler (const rtems_irq_connect_data* irq)
return 1;
}
-
-
void _ThreadProcessSignalsFromIrq (CPU_Exception_frame* ctx)
{
/*
diff --git a/c/src/lib/libbsp/arm/vegaplus/irq/irq.h b/c/src/lib/libbsp/arm/vegaplus/irq/irq.h
index 5857792ebe..0483849bd6 100644
--- a/c/src/lib/libbsp/arm/vegaplus/irq/irq.h
+++ b/c/src/lib/libbsp/arm/vegaplus/irq/irq.h
@@ -135,7 +135,6 @@ typedef struct __rtems_irq_connect_data__ {
*/
void BSP_rtems_irq_mngt_init();
-
/*
* function to connect a particular irq handler. This hanlder will NOT be called
* directly as the result of the corresponding interrupt. Instead, a RTEMS
@@ -184,7 +183,6 @@ int BSP_get_current_rtems_irq_handler (rtems_irq_connect_data* ptr);
*/
int BSP_remove_rtems_irq_handler (const rtems_irq_connect_data*);
-
#ifdef __cplusplus
}
#endif
diff --git a/c/src/lib/libbsp/arm/vegaplus/start/start.S b/c/src/lib/libbsp/arm/vegaplus/start/start.S
index 6c3c2ab141..49c216150c 100644
--- a/c/src/lib/libbsp/arm/vegaplus/start/start.S
+++ b/c/src/lib/libbsp/arm/vegaplus/start/start.S
@@ -40,12 +40,10 @@
.equ I_Bit, 0x80
.equ F_Bit, 0x40
-
.equ Mode_SVC_MIRQ, Mode_SVC | I_Bit | F_Bit
.equ Mode_SVC_UIRQ, Mode_SVC
.equ Mode_IRQ_MIRQ, Mode_SVC | I_Bit | F_Bit
-
.equ MARK_STACK, 0 /*Fill every stack with a pattern for debug (0 or 1)*/
/*-----------------------------------------------------------------------------
@@ -129,7 +127,6 @@ Real_start:
LDR r1, =0xA2
STR r1, [r0,#CSCNTL1_2]
-
MOV r0,#CNTL_CLK_ADR
/* Load clock mode 55 MHz */
LDR r1, =0x0010
@@ -155,7 +152,6 @@ zi_init:
STRLOT r2, [r0], #4
BLO zi_init
-
/* Load basic ARM7 interrupt table */
VectorInit:
MOV R8, #0
diff --git a/c/src/lib/libbsp/arm/vegaplus/startup/bspstart.c b/c/src/lib/libbsp/arm/vegaplus/startup/bspstart.c
index 3af8289599..5b1749d7cf 100644
--- a/c/src/lib/libbsp/arm/vegaplus/startup/bspstart.c
+++ b/c/src/lib/libbsp/arm/vegaplus/startup/bspstart.c
@@ -13,7 +13,6 @@
|
+--------------------------------------------------------------------------*/
-
#include <bsp.h>
#include <rtems/libcsupport.h>
#include <rtems/libio.h>
@@ -77,7 +76,6 @@ void bsp_pretasking_hook(void)
rtemsFreeMemStart += _heap_size; /* HEAP_SIZE in KBytes */
-
#ifdef RTEMS_DEBUG
rtems_debug_enable(RTEMS_DEBUG_ALL_MASK);
@@ -86,7 +84,6 @@ void bsp_pretasking_hook(void)
} /* bsp_pretasking_hook */
-
/*-------------------------------------------------------------------------+
| Function: bsp_start
| Description: Called before main is invoked.
diff --git a/c/src/lib/libbsp/arm/vegaplus/startup/exit.c b/c/src/lib/libbsp/arm/vegaplus/startup/exit.c
index a99faeb9ba..03e240cc33 100644
--- a/c/src/lib/libbsp/arm/vegaplus/startup/exit.c
+++ b/c/src/lib/libbsp/arm/vegaplus/startup/exit.c
@@ -13,7 +13,6 @@
|
+--------------------------------------------------------------------------*/
-
#include <stdio.h>
#include <bsp.h>
#include <rtems/bspIo.h>
diff --git a/c/src/lib/libbsp/c4x/c4xsim/clock/clock.c b/c/src/lib/libbsp/c4x/c4xsim/clock/clock.c
index c17716953b..aff23c800a 100644
--- a/c/src/lib/libbsp/c4x/c4xsim/clock/clock.c
+++ b/c/src/lib/libbsp/c4x/c4xsim/clock/clock.c
@@ -53,7 +53,6 @@ rtems_isr_entry Old_ticker;
void Clock_exit( void );
-
/*
* Isr Handler
*/
diff --git a/c/src/lib/libbsp/c4x/c4xsim/console/console.c b/c/src/lib/libbsp/c4x/c4xsim/console/console.c
index 00272b8576..1bca6379e1 100644
--- a/c/src/lib/libbsp/c4x/c4xsim/console/console.c
+++ b/c/src/lib/libbsp/c4x/c4xsim/console/console.c
@@ -107,7 +107,6 @@ rtems_device_driver console_open(
0 /* outputUsesInterrupts */
};
-
assert( minor <= 1 );
if ( minor > 2 )
return RTEMS_INVALID_NUMBER;
diff --git a/c/src/lib/libbsp/c4x/c4xsim/include/bsp.h b/c/src/lib/libbsp/c4x/c4xsim/include/bsp.h
index b021d2be01..049cf85664 100644
--- a/c/src/lib/libbsp/c4x/c4xsim/include/bsp.h
+++ b/c/src/lib/libbsp/c4x/c4xsim/include/bsp.h
@@ -30,7 +30,6 @@ extern "C" {
#include <rtems/console.h>
#include <rtems/iosupp.h>
-
/*
* Define the time limits for RTEMS Test Suite test durations.
* Long test and short test duration limits are provided. These
@@ -42,7 +41,6 @@ extern "C" {
#define MAX_LONG_TEST_DURATION 300 /* 5 minutes = 300 seconds */
#define MAX_SHORT_TEST_DURATION 3 /* 3 seconds */
-
/*
* Stuff for Time Test 27
*/
@@ -83,7 +81,6 @@ extern "C" {
* NOTE: Use the standard Clock driver entry
*/
-
/*
* Information placed in the linkcmds file.
*/
diff --git a/c/src/lib/libbsp/c4x/c4xsim/timer/timer.c b/c/src/lib/libbsp/c4x/c4xsim/timer/timer.c
index d1b5925644..7ede7bfbe0 100644
--- a/c/src/lib/libbsp/c4x/c4xsim/timer/timer.c
+++ b/c/src/lib/libbsp/c4x/c4xsim/timer/timer.c
@@ -35,7 +35,6 @@ void Timer_initialize( void )
* implemenations of timer but ....
*/
-
c4x_timer_stop(C4X_TIMER_0);
c4x_timer_set_period(C4X_TIMER_0, 0xffffffff); /* so no interupts */
c4x_timer_start(C4X_TIMER_0);
diff --git a/c/src/lib/libbsp/i386/i386ex/clock/ckinit.c b/c/src/lib/libbsp/i386/i386ex/clock/ckinit.c
index 20d50a35e0..21600b37f4 100644
--- a/c/src/lib/libbsp/i386/i386ex/clock/ckinit.c
+++ b/c/src/lib/libbsp/i386/i386ex/clock/ckinit.c
@@ -82,7 +82,6 @@ static rtems_irq_connect_data clockIrqData = {BSP_PERIODIC_TIMER,
ClockOff,
ClockIsOn};
-
rtems_device_driver Clock_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor,
diff --git a/c/src/lib/libbsp/i386/i386ex/console/console.c b/c/src/lib/libbsp/i386/i386ex/console/console.c
index 628f0027b5..d8dce2c2a1 100644
--- a/c/src/lib/libbsp/i386/i386ex/console/console.c
+++ b/c/src/lib/libbsp/i386/i386ex/console/console.c
@@ -116,7 +116,6 @@ console_initialize(rtems_device_major_number major,
/* 9600-8-N-1, no hardware flow control */
BSP_uart_init(BSPConsolePort, 9600, CHR_8_BITS, 0, 0, 0);
-
/* Set interrupt handler */
if(BSPConsolePort == BSP_UART_COM1)
{
@@ -159,7 +158,6 @@ console_initialize(rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
} /* console_initialize */
-
static int console_last_close(int major, int minor, void *arg)
{
BSP_remove_rtems_irq_handler (&console_isr_data);
@@ -226,7 +224,6 @@ console_close(rtems_device_major_number major,
} /* console_close */
-
/*-------------------------------------------------------------------------+
| Console device driver READ entry point.
+--------------------------------------------------------------------------+
@@ -249,7 +246,6 @@ console_read(rtems_device_major_number major,
} /* console_read */
-
/*-------------------------------------------------------------------------+
| Console device driver WRITE entry point.
+--------------------------------------------------------------------------+
@@ -264,8 +260,6 @@ console_write(rtems_device_major_number major,
} /* console_write */
-
-
/*
* Handle ioctl request.
*/
diff --git a/c/src/lib/libbsp/i386/i386ex/include/bsp.h b/c/src/lib/libbsp/i386/i386ex/include/bsp.h
index 535bc1f3bd..c58ed45a9a 100644
--- a/c/src/lib/libbsp/i386/i386ex/include/bsp.h
+++ b/c/src/lib/libbsp/i386/i386ex/include/bsp.h
@@ -56,7 +56,6 @@ extern "C" {
#define MUST_WAIT_FOR_INTERRUTPT 0
-
#define Install_tm27_vector(handler) \
{ \
rtems_isr_entry dummy; \
@@ -104,7 +103,6 @@ extern "C" {
#define Is_tx_ready( _status ) ( (_status) & 0x40 )
-
#define Is_rx_ready( _status ) ( (_status) & 0x01 )
/* Structures */
diff --git a/c/src/lib/libbsp/i386/i386ex/network/network.c b/c/src/lib/libbsp/i386/i386ex/network/network.c
index f15873928d..00c4af76d4 100644
--- a/c/src/lib/libbsp/i386/i386ex/network/network.c
+++ b/c/src/lib/libbsp/i386/i386ex/network/network.c
@@ -14,7 +14,6 @@ void printk_time(void);
#define KERNEL
-
/*
EII: Oct 16 : Version 0.0
@@ -62,12 +61,10 @@ int count_rx = 0;
#include <rtems/asm.h>
#include <string.h>
-
/* #include "../misc/utils.h" */
static struct uti596_softc uti596_softc;
-
static int scbStatus;
static struct i596_cmd *pIsrCmd;
static struct i596_rfd *pIsrRfd;
@@ -103,7 +100,6 @@ char uti596initSetup[] = {
#define RBUF_SIZE 1520
-
/*
* Local Routines
*/
@@ -177,8 +173,6 @@ uti596_request_reset(void){
rtems_panic ("Can't notify resetDaemon: %s\n", rtems_status_text (sc));
}
-
-
static void uti596_maskOn(const rtems_irq_connect_data* irq)
{
/*
@@ -202,7 +196,6 @@ static int uti596_isOn(const rtems_irq_connect_data* irq)
return BSP_irq_enabled_at_i8259s (irq->name);
}
-
/***********************************************************************
* Function: uti596initRFA(int num) ( New )
*
@@ -214,13 +207,11 @@ static int uti596_isOn(const rtems_irq_connect_data* irq)
*
***********************************************************************/
-
int uti596_initRFA(int num)
{
struct i596_rfd *pRfd;
int i = 0;
-
#ifdef DBG_596
printf ("%s: uti596_initRFA %d.\n", num);
#endif
@@ -285,7 +276,6 @@ int uti596_initRFA(int num)
printf ( "Head of RFA is buffer @ %p \n", uti596_softc.pBeginRFA );
#endif
-
uti596_softc.pSavedRfdQueue =
uti596_softc.pEndSavedQueue = I596_NULL; /* initially empty */
@@ -309,7 +299,6 @@ void uti596supplyFD(struct i596_rfd * pRfd )
{
struct i596_rfd *pLastRfd;
-
UTI_596_ASSERT(pRfd != I596_NULL, "Supplying NULL RFD!\n");
pRfd -> cmd = CMD_EOL;
pRfd -> pRbd = I596_NULL;
@@ -406,7 +395,6 @@ void uti596supplyFD(struct i596_rfd * pRfd )
uti596_softc.pEndSavedQueue = pRfd; /* reset end of saved queue */
uti596_softc.savedCount++;
-
return;
}
}
@@ -520,7 +508,6 @@ uti596_reset_hardware(struct uti596_softc *sc)
rtems_status_code status_code;
struct i596_cmd *pCmd;
-
printf("uti596_reset_hardware\n");
pCmd = sc->pCmdHead; /* This is a tx command for sure (99.99999%) */
@@ -543,7 +530,6 @@ uti596_reset_hardware(struct uti596_softc *sc)
printf("reset_hardware:change scp address to : %p\n",sc->pScp);
#endif
-
/* change the scp address */
#ifdef DBG_RESET
printf("Change the SCP address\n");
@@ -625,7 +611,6 @@ uti596_reset_hardware(struct uti596_softc *sc)
*
***********************************************************************/
-
void
uti596_initMem(struct uti596_softc * sc)
{
@@ -736,7 +721,6 @@ uti596_initMem(struct uti596_softc * sc)
}
-
/***********************************************************************
* Function: uti596dump
@@ -751,7 +735,6 @@ uti596dump(char * pDumpArea)
struct i596_dump dumpCmd;
int boguscnt = 25000000; /* over a second! */
-
#ifdef DBG_596
printf("uti596dump:\n");
#endif
@@ -771,7 +754,6 @@ printf("uti596dump:\n");
return 1; /* successful completion */
}
-
}
/***********************************************************************
@@ -852,7 +834,6 @@ uti596_rxDaemon(void *arg)
#endif
frames++;
-
/*
* Allocate an mbuf to give to the stack
* The format of the data portion of the RFD is:
@@ -1044,7 +1025,6 @@ void uti596reset(void)
#endif
-
/* restore the RFA */
/*dumpQ();*/
@@ -1149,8 +1129,6 @@ void uti596reset(void)
#endif
-
-
pCmd->status = 0;
pCmd->command |= (CMD_EOL | CMD_INTR ); /* all commands last in list & return an interrupt */
@@ -1181,7 +1159,6 @@ void uti596reset(void)
_ISR_Enable(level);
}
-
#ifdef DBG_596
printf("Scb status & command 0x%x 0x%x\n",
uti596_softc.scb.status,
@@ -1398,14 +1375,12 @@ void send_packet(struct ifnet *ifp, struct mbuf *m)
}
} while( m != NULL && ++bd_count < 16 );
-
/* This should never happen */
if ( bd_count == 16 ) {
printf("TX ERROR:Too many mbufs in the packet!!!\n");
printf("Must coalesce!\n");
}
-
if ( length < UTI_596_ETH_MIN_SIZE ) {
pTbd->data = sc->zeroes; /* add padding to pTbd */
pTbd->size = UTI_596_ETH_MIN_SIZE - length; /* zeroes have no effect on the CRC */
@@ -1431,7 +1406,6 @@ void send_packet(struct ifnet *ifp, struct mbuf *m)
/* Sending Zero length packet: shouldn't happen */
if (pTbd->size <= 0) return ;
-
#ifdef DEBUG_INIT_2
printf("\nTransmitter adds packet\n");
print_hdr ( sc->pTxCmd->pTbd->data ); /* print the first part */
@@ -1442,7 +1416,6 @@ void send_packet(struct ifnet *ifp, struct mbuf *m)
BREAKPOINT();
#endif
-
/* add the command to the output command queue */
uti596addCmd ( (struct i596_cmd *) sc->pTxCmd );
@@ -1502,7 +1475,6 @@ void send_packet(struct ifnet *ifp, struct mbuf *m)
m = n;
}
-
}
/***********************************************************************
@@ -1608,7 +1580,6 @@ void send_packet(struct ifnet *ifp, struct mbuf *m)
*/
}
-
}
#ifdef DEBUG_INIT
@@ -1647,7 +1618,6 @@ void send_packet(struct ifnet *ifp, struct mbuf *m)
printf ("frame type %2.2X%2.2X\n", add[12], add[13]);
-
}
/***********************************************************************
* Function: print_pkt
@@ -1735,7 +1705,6 @@ void send_packet(struct ifnet *ifp, struct mbuf *m)
printf("ICMP sequence nbr: %2.2x %2.2x\n", add[40], add[41]);
}
-
}
/***********************************************************************
* Function: print_echo
@@ -1827,7 +1796,6 @@ void send_packet(struct ifnet *ifp, struct mbuf *m)
*
***********************************************************************/
-
int uti596_attach(struct rtems_bsdnet_ifconfig * pConfig )
{
struct uti596_softc *sc = &uti596_softc; /* soft config */
@@ -1838,7 +1806,6 @@ int uti596_attach(struct rtems_bsdnet_ifconfig * pConfig )
printf("attach");
#endif
-
sc->started = 0; /* The NIC is not started yet */
sc->ioAddr = IO_ADDR;
@@ -1895,7 +1862,6 @@ int uti596_attach(struct rtems_bsdnet_ifconfig * pConfig )
sc->started = 1;
sc->pInboundFrameQueue = I596_NULL;
-
ifp->if_ioctl = uti596_ioctl;
ifp->if_init = uti596_init;
ifp->if_start = uti596_start;
@@ -2221,7 +2187,6 @@ int uti596_attach(struct rtems_bsdnet_ifconfig * pConfig )
}
} /* end if command complete */
-
/* if the receiver has stopped,
* check if this is a No Resources scenario,
* Try to add more RFD's ( no RBDs are used )
@@ -2320,7 +2285,6 @@ int uti596_attach(struct rtems_bsdnet_ifconfig * pConfig )
uti596_softc.savedCount = 0;
}
-
#ifdef DBG_596_RFD
printk("The list starts here %p\n",uti596_softc.pBeginRFA );
#endif
@@ -2363,7 +2327,6 @@ int uti596_attach(struct rtems_bsdnet_ifconfig * pConfig )
printk("Frame @ %x, status: %x, cmd: %x\n",
pISR_Rfd, pISR_Rfd->stat, pISR_Rfd->cmd);
-
printk("\nSaved: \n");
for ( pISR_Rfd = uti596_softc.pSavedRfdQueue;
pISR_Rfd != I596_NULL;
@@ -2396,7 +2359,6 @@ int uti596_attach(struct rtems_bsdnet_ifconfig * pConfig )
return;
}
-
/***********************************************************************
* Function: void uti596dequeue
*
@@ -2424,7 +2386,6 @@ struct i596_rfd * uti596dequeue( struct i596_rfd ** ppQ )
*ppQ = pRfd->next; /* advance the queue pointer */
pRfd->next = I596_NULL; /* unlink the rfd being returned */
-
_ISR_Enable(level);
return pRfd;
}
@@ -2485,7 +2446,6 @@ void uti596append( struct i596_rfd ** ppQ , struct i596_rfd * pRfd )
*
***********************************************************************/
-
/* static */
void uti596_stop(struct uti596_softc *sc)
{
@@ -2502,7 +2462,6 @@ void uti596_stop(struct uti596_softc *sc)
}
-
static int
uti596_ioctl (struct ifnet *ifp, int command, caddr_t data)
{
@@ -2570,7 +2529,6 @@ uti596_ioctl (struct ifnet *ifp, int command, caddr_t data)
*
***********************************************************************/
-
void
uti596_stats(struct uti596_softc *sc)
{
@@ -2669,7 +2627,6 @@ void show_buffers (void)
printf("Frame @ %p, status: %2.2x, cmd: %2.2x\n",
pRfd, pRfd->stat, pRfd->cmd);
-
printf("\nSaved: \n");
for ( pRfd = uti596_softc.pSavedRfdQueue;
pRfd != I596_NULL;
@@ -2683,7 +2640,6 @@ void show_queues(void)
{
struct i596_rfd *pRfd;
-
printf("CMD: 0x%x, Status: 0x%x\n",
uti596_softc.scb.command,
uti596_softc.scb.status);
@@ -2707,13 +2663,11 @@ void show_queues(void)
printf("uti596_softc.pEndRFA: %p\n",uti596_softc.pEndRFA);
}
-
void uti596_init(void * arg){
struct uti596_softc *sc = arg;
struct ifnet *ifp = &sc->arpcom.ac_if;
-
if (sc->txDaemonTid == 0) {
uti596_initialize_hardware(sc);
@@ -2727,7 +2681,6 @@ void uti596_init(void * arg){
sc->resetDaemonTid = rtems_bsdnet_newproc ("UTrt", 2*4096,
uti596_resetDaemon, sc);
-
#ifdef DBG_INIT
printf("After attach, status of board = 0x%x\n", sc->scb.status );
#endif
diff --git a/c/src/lib/libbsp/i386/i386ex/network/uti596.h b/c/src/lib/libbsp/i386/i386ex/network/uti596.h
index 8dc43cf86e..1238d2ea41 100644
--- a/c/src/lib/libbsp/i386/i386ex/network/uti596.h
+++ b/c/src/lib/libbsp/i386/i386ex/network/uti596.h
@@ -55,8 +55,6 @@ struct enet_statistics{
int nic_reset_count; /* The number of times uti596reset() has been called. */
};
-
-
enum commands {
CmdNOp = 0,
CmdSASetup = 1,
@@ -68,10 +66,8 @@ enum commands {
CmdDiagnose = 7
};
-
#define UTI596_MUTEX 1
-
#define CMD_EOL 0x8000 /* The last command of the list, stop. */
#define CMD_SUSP 0x4000 /* Suspend after doing cmd. */
#define CMD_INTR 0x2000 /* Interrupt after doing cmd. */
@@ -86,7 +82,6 @@ enum commands {
#define SCB_CUS_SUSPENDED 0x0100
#define SCB_CUS_ACTIVE 0x0200
-
#define STAT_C 0x8000 /* Set to 1 after execution */
#define STAT_B 0x4000 /* 1 : Cmd being executed, 0 : Cmd done. */
#define STAT_OK 0x2000 /* 1: Command executed ok 0 : Error */
@@ -101,7 +96,6 @@ enum commands {
#define STAT_S5 0x0020
#define STAT_MAX_COLLS 0x000F
-
#define RBD_STAT_P 0x4000 /* prefetch */
#define RBD_STAT_F 0x4000 /* used */
@@ -118,7 +112,6 @@ enum commands {
#define RU_NO_RESOURCES 0x0020
#define RU_READY 0x0040
-
#define IO_ADDR 0x360
#define PORT_ADDR IO_ADDR
#define CHAN_ATTN PORT_ADDR + 4
@@ -168,7 +161,6 @@ struct tx_cmd {
unsigned short pad;
} ;
-
/*
* Receive Frame Descriptor
*/
@@ -182,7 +174,6 @@ struct i596_rfd {
char data [1532 ];
} ;
-
struct i596_dump {
struct i596_cmd cmd;
char * pData;
@@ -227,7 +218,6 @@ struct i596_scb {
volatile unsigned short t_off;
};
-
/*
* Intermediate System Control Block
*/
diff --git a/c/src/lib/libbsp/i386/i386ex/start/80386ex.h b/c/src/lib/libbsp/i386/i386ex/start/80386ex.h
index a62f08f425..430491c240 100644
--- a/c/src/lib/libbsp/i386/i386ex/start/80386ex.h
+++ b/c/src/lib/libbsp/i386/i386ex/start/80386ex.h
@@ -47,7 +47,6 @@
#define OCW3MDOS 0x0020
#define OCW3SDOS 0x00A0
-
/* CONFIGURATION Registers */
#define DMACFG 0xF830
#define INTCFG 0xF832
diff --git a/c/src/lib/libbsp/i386/i386ex/start/start.S b/c/src/lib/libbsp/i386/i386ex/start/start.S
index 999c161b9b..6f515243de 100644
--- a/c/src/lib/libbsp/i386/i386ex/start/start.S
+++ b/c/src/lib/libbsp/i386/i386ex/start/start.S
@@ -28,19 +28,16 @@
*
* $Id$
-
changes:
SetExRegByte(ICW3S , 0x02 ) # MUST be 0x02 according to intel
SetExRegByte(ICW3M , 0x04 ) # IR2 is cascaded internally: was 0x02 => IR1 is cascaded
*/
-
#include <rtems/asm.h>
#include "macros.inc"
#include "80386ex.inc"
-
/*
* NEW_GAS Needed for binutils 2.9.1.0.7 and higher
*/
@@ -76,7 +73,6 @@ SYM(GDT_END):
END_DATA
-
/* This section is the section that is used by the interrupt
descriptor table. It is used to provide the IDT with the
correct vector offsets. It is for symbol definition only.
@@ -131,7 +127,6 @@ SYM(A20):
orb $0x02 , al # Bit 1 Fast A20 = 0 (always 0) else enabled.
outb al , dx
-
SYM(Watchdog):
movw $WDTSTATUS , dx # address the WDT status port
inb dx , al # get the WDT status
@@ -284,7 +279,6 @@ SYM(InitTimer):
SetExRegByte(TMR0 , 0x00 ) # sfa
SetExRegByte(TMR0 , 0x00 ) # sfa
-
SetExRegByte(TMRCON , 0x70 ) # mode 0 disables on Gate= Vcc
SetExRegByte(TMR1 , 0x00 ) # sfa
SetExRegByte(TMR1 , 0x00 ) # sfa
@@ -342,7 +336,6 @@ SYM(InitInt):
# for IR0 and IR2 use 0xfa
SetExRegByte(INTCFG , 0x00 )
-
SYM(SetCS4):
SetExRegWord(CS4ADL , 0x702) #Configure chip select 4
SetExRegWord(CS4ADH , 0x00)
@@ -383,7 +376,6 @@ SYM(SetUCS1):
lgdt SYM(GDTR) # location of GDT
#endif
-
SYM(SetUCS):
SetExRegWord(UCSADL, 0x0702) # now 512K starting at 0x3f80000.
SetExRegWord(UCSADH, 0x03f8)
@@ -472,7 +464,6 @@ SYM (zero_bss):
repne # while ecx != 0
stosl # clear a long in the bss
-
/*
* Transfer control to User's Board Support Package
*/
diff --git a/c/src/lib/libbsp/i386/i386ex/startup/bspstart.c b/c/src/lib/libbsp/i386/i386ex/startup/bspstart.c
index bfb7b9cf99..bae7d70151 100644
--- a/c/src/lib/libbsp/i386/i386ex/startup/bspstart.c
+++ b/c/src/lib/libbsp/i386/i386ex/startup/bspstart.c
@@ -80,7 +80,6 @@ void bsp_pretasking_hook(void)
heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */
bsp_libc_init((void *) heap_start, heap_size, 0);
-
#ifdef RTEMS_DEBUG
rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
#endif
diff --git a/c/src/lib/libbsp/i386/i386ex/timer/timer.c b/c/src/lib/libbsp/i386/i386ex/timer/timer.c
index cf6e87d144..c3a3661fb9 100644
--- a/c/src/lib/libbsp/i386/i386ex/timer/timer.c
+++ b/c/src/lib/libbsp/i386/i386ex/timer/timer.c
@@ -23,7 +23,6 @@
* $Id$
*/
-
#include <rtems.h>
#include <bsp.h>
#include <stdlib.h>
diff --git a/c/src/lib/libbsp/i386/pc386/3c509/3c509.c b/c/src/lib/libbsp/i386/pc386/3c509/3c509.c
index cf06a85916..09ed6e0da1 100644
--- a/c/src/lib/libbsp/i386/pc386/3c509/3c509.c
+++ b/c/src/lib/libbsp/i386/pc386/3c509/3c509.c
@@ -58,6 +58,9 @@
*
* MODIFICATION/HISTORY:
* $Log$
+ * Revision 1.3 2004/04/21 10:42:43 ralf
+ * Remove stray white spaces.
+ *
* Revision 1.2 1999/12/13 21:21:31 joel
* Warning removal patch from Philip A. Prindeville <philipp@zembu.com>.
*
@@ -151,7 +154,6 @@ struct isa_device
u_int id_irq; /* interrupt request */
};
-
struct ep_board
{
int epb_addr; /* address of this board */
@@ -162,7 +164,6 @@ struct ep_board
u_short res_cfg; /* resource configuration */
};
-
/*
* Ethernet software status per interface.
*/
@@ -192,7 +193,6 @@ struct ep_softc
short rx_overrunl;
};
-
/* static unsigned long loopc; */
static volatile unsigned long overrun;
static volatile unsigned long resend;
@@ -216,7 +216,6 @@ static char *ep_conn_type[] = {"UTP", "AUI", "???", "BNC"};
#define ep_fset(f) (sc->stat|=(f))
#define ep_frst(f) (sc->stat&=~(f))
-
/* forward declarations for functions */
static int ep_attach( struct ep_softc *sc );
static int ep_isa_probe( struct isa_device *is );
@@ -231,7 +230,6 @@ static void ep_intr( struct ep_softc *sc );
/* external functions */
extern void Wait_X_ms( unsigned int timeToWait ); /* timer.c ??? */
-
/**********************************************************************************
*
* DESCRIPTION: Writes a buffer of data to the I/O port. The data is sent to the
@@ -285,7 +283,6 @@ static __inline void outsb( unsigned short io_addr, unsigned char *out_data, int
}
}
-
/**********************************************************************************
*
* DESCRIPTION: Read a buffer of data from an I/O port. The data is read as 16 bits
@@ -338,7 +335,6 @@ static __inline void insb( unsigned short io_addr, unsigned char *in_data, int l
}
}
-
/**********************************************************************************
*
* DESCRIPTION: Writes a word to the I/O port.
@@ -354,7 +350,6 @@ static __inline void outw( unsigned short io_addr, unsigned short out_data )
outport_word( io_addr, out_data );
}
-
/**********************************************************************************
*
* DESCRIPTION: Routine to read a word as defined in FreeBSD.
@@ -395,7 +390,6 @@ static __inline unsigned char inb( unsigned short io_addr )
return in_data;
}
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -423,7 +417,6 @@ static int get_eeprom_data( int id_port, int offset )
return( data );
}
-
/**********************************************************************************
*
* DESCRIPTION: Waits until the EEPROM of the card is ready to be accessed.
@@ -464,7 +457,6 @@ u_short get_e( struct ep_softc *sc, int offset )
return( inw( BASE + EP_W0_EEPROM_DATA ) );
}
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -485,7 +477,6 @@ static rtems_isr ap_interrupt_handler( rtems_vector_number v )
rtems_event_send( sc->rxDaemonTid, INTERRUPT_EVENT );
}
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -510,7 +501,6 @@ static int _3c509_IsOn(const rtems_irq_connect_data* irq)
return BSP_irq_enabled_at_i8259s (irq->name);
}
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -568,7 +558,6 @@ static void _3c509_rxDaemon (void *arg)
printf ("3C509: RX Daemon is finishing.\n");
}
-
/**********************************************************************************
*
* DESCRIPTION: Driver transmit daemon
@@ -601,7 +590,6 @@ static void _3c509_txDaemon (void *arg)
printf ("3C509: TX Daemon is finishing.\n");
}
-
/**********************************************************************************
*
* DESCRIPTION: Activates the trabsmitter task...
@@ -680,7 +668,6 @@ static void _3c509_stop (struct ep_softc *sc)
outw(BASE + EP_COMMAND, SET_RX_FILTER);
}
-
/**********************************************************************************
*
* DESCRIPTION: Show interface statistics
@@ -857,7 +844,6 @@ int rtems_3c509_driver_attach (struct rtems_bsdnet_ifconfig *config )
return 1;
}
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -971,8 +957,6 @@ static struct ep_board *ep_look_for_board_at( struct isa_device *is )
}
}
-
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -1039,8 +1023,6 @@ static int ep_isa_probe( struct isa_device *is )
return (EP_IOSIZE); /* 16 bytes of I/O space used. */
}
-
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -1127,7 +1109,6 @@ static int ep_attach( struct ep_softc *sc )
return 0;
}
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -1255,7 +1236,6 @@ static void epinit( struct ep_softc *sc )
ifp->if_flags |= IFF_RUNNING;
ifp->if_flags &= ~IFF_OACTIVE; /* just in case */
-
sc->rx_no_first = sc->rx_no_mbuf =
sc->rx_bpf_disc = sc->rx_overrunf = sc->rx_overrunl =
sc->tx_underrun = 0;
@@ -1278,7 +1258,6 @@ static void epinit( struct ep_softc *sc )
GO_WINDOW(1);
}
-
static const char padmap[] = {0, 3, 2, 1};
/**********************************************************************************
@@ -1386,8 +1365,6 @@ readcheck:
goto startagain;
}
-
-
/**********************************************************************************
*
* DESCRIPTION: Routine to read frames from the card.
@@ -1530,8 +1507,6 @@ out:
outw(BASE + EP_COMMAND, SET_RX_EARLY_THRESH | RX_INIT_EARLY_THRESH);
}
-
-
/**********************************************************************************
*
* DESCRIPTION:
diff --git a/c/src/lib/libbsp/i386/pc386/3c509/elink.c b/c/src/lib/libbsp/i386/pc386/3c509/elink.c
index 064d747143..0664df1c35 100644
--- a/c/src/lib/libbsp/i386/pc386/3c509/elink.c
+++ b/c/src/lib/libbsp/i386/pc386/3c509/elink.c
@@ -37,7 +37,6 @@
#include "elink.h"
-
extern void outb( unsigned short io_addr, unsigned char out_data );
/*
diff --git a/c/src/lib/libbsp/i386/pc386/clock/ckinit.c b/c/src/lib/libbsp/i386/pc386/clock/ckinit.c
index a1b1899dc9..a4ed222b91 100644
--- a/c/src/lib/libbsp/i386/pc386/clock/ckinit.c
+++ b/c/src/lib/libbsp/i386/pc386/clock/ckinit.c
@@ -30,7 +30,6 @@
| $Id$
+--------------------------------------------------------------------------*/
-
#include <stdlib.h>
#include <bsp.h>
@@ -109,7 +108,6 @@ void clockOff(const rtems_irq_connect_data* unused)
outport_byte(TIMER_CNTR0, 0);
} /* Clock_exit */
-
/*-------------------------------------------------------------------------+
| Function: Install_clock
| Description: Initialize and install clock interrupt handler.
@@ -177,8 +175,6 @@ static rtems_irq_connect_data clockIrqData = {BSP_PERIODIC_TIMER,
clockOff,
clockIsOn};
-
-
/*-------------------------------------------------------------------------+
| Clock device driver INITIALIZE entry point.
+--------------------------------------------------------------------------+
@@ -202,7 +198,6 @@ Clock_initialize(rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
} /* Clock_initialize */
-
/*-------------------------------------------------------------------------+
| Console device driver CONTROL entry point
+--------------------------------------------------------------------------*/
@@ -245,7 +240,6 @@ void Clock_exit()
| to be correctly integrated with the rest of the code!!!
+--------------------------------------------------------------------------*/
-
#if 0 && defined(pentium)
/* This can be used to get extremely accurate timing on a pentium. */
diff --git a/c/src/lib/libbsp/i386/pc386/clock/rtc.c b/c/src/lib/libbsp/i386/pc386/clock/rtc.c
index 26c4c2056d..a6330fa929 100644
--- a/c/src/lib/libbsp/i386/pc386/clock/rtc.c
+++ b/c/src/lib/libbsp/i386/pc386/clock/rtc.c
@@ -31,7 +31,6 @@
| $Id$
+--------------------------------------------------------------------------*/
-
#include <string.h>
#include <bsp.h>
@@ -70,7 +69,6 @@
#define RTC_CENTURY 0x32 /* current century - increment in Dec99 */
-
/*-------------------------------------------------------------------------+
| Auxiliary Functions
+--------------------------------------------------------------------------*/
@@ -107,7 +105,6 @@ ytos(uint16_t y)
return ((y - 1970) * SECS_PER_REG_YEAR + (y - 1970 + 1) / 4 * SECS_PER_DAY);
} /* ytos */
-
/*-------------------------------------------------------------------------+
| Function: mtos
| Description: Convert months to seconds since January.
@@ -144,7 +141,6 @@ rtcin(uint8_t what)
return r;
} /* rtcin */
-
/*-------------------------------------------------------------------------+
| Functions
+--------------------------------------------------------------------------*/
@@ -175,7 +171,6 @@ init_rtc(void)
printf("RTC BIOS diagnostic error %b\n", s, RTCDG_BITS); */
} /* init_rtc */
-
/*-------------------------------------------------------------------------+
| Function: rtc_read
| Description: Read present time from RTC and return it.
diff --git a/c/src/lib/libbsp/i386/pc386/console/console.c b/c/src/lib/libbsp/i386/pc386/console/console.c
index a0b468e52b..a4010f568e 100644
--- a/c/src/lib/libbsp/i386/pc386/console/console.c
+++ b/c/src/lib/libbsp/i386/pc386/console/console.c
@@ -125,7 +125,6 @@ ibmpc_console_write(int minor, const char *buf, int len)
return 0;
}
-
int kbd_poll_read( int minor )
{
if( rtems_kbpoll() )
@@ -174,7 +173,6 @@ void __assert (const char *file, int line, const char *msg)
}
-
/*-------------------------------------------------------------------------+
| Console device driver INITIALIZE entry point.
+--------------------------------------------------------------------------+
@@ -187,7 +185,6 @@ console_initialize(rtems_device_major_number major,
{
rtems_status_code status;
-
/* Initialize the KBD interface */
kbd_init();
@@ -241,7 +238,6 @@ console_initialize(rtems_device_major_number major,
/* 9600-8-N-1 */
BSP_uart_init(BSPConsolePort, 9600, CHR_8_BITS, 0, 0, 0);
-
/* Set interrupt handler */
if(BSPConsolePort == BSP_UART_COM1)
{
@@ -303,7 +299,6 @@ console_initialize(rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
} /* console_initialize */
-
static int console_open_count = 0;
static int console_last_close(int major, int minor, void *arg)
@@ -391,7 +386,6 @@ console_close(rtems_device_major_number major,
return rtems_termios_close (arg);
} /* console_close */
-
/*-------------------------------------------------------------------------+
| Console device driver READ entry point.
+--------------------------------------------------------------------------+
@@ -405,7 +399,6 @@ console_read(rtems_device_major_number major,
return rtems_termios_read( arg );
} /* console_read */
-
/*-------------------------------------------------------------------------+
| Console device driver WRITE entry point.
+--------------------------------------------------------------------------+
@@ -431,7 +424,6 @@ console_write(rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
} /* console_write */
-
extern int vt_ioctl( unsigned int cmd, unsigned long arg);
/*
diff --git a/c/src/lib/libbsp/i386/pc386/console/fb_vga.c b/c/src/lib/libbsp/i386/pc386/console/fb_vga.c
index 8c678b8081..57e45097f5 100644
--- a/c/src/lib/libbsp/i386/pc386/console/fb_vga.c
+++ b/c/src/lib/libbsp/i386/pc386/console/fb_vga.c
@@ -11,6 +11,9 @@
// MODIFICATION/HISTORY:
//
// $Log$
+// Revision 1.2 2004/04/21 10:42:44 ralf
+// Remove stray white spaces.
+//
// Revision 1.1 2000/08/30 08:15:30 joel
// 2000-08-26 Rosimildo da Silva <rdasilva@connecttel.com>
//
@@ -66,7 +69,6 @@
extern void ega_hwinit( void );
extern void ega_hwterm( void );
-
/* screen information for the VGA driver */
static struct fb_screeninfo fb_info =
{
@@ -79,7 +81,6 @@ static struct fb_screeninfo fb_info =
FB_VISUAL_PSEUDOCOLOR /* color scheme used */
};
-
static __u16 red16[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0xaaaa, 0xaaaa, 0xaaaa, 0xaaaa,
0x5555, 0x5555, 0x5555, 0x5555, 0xffff, 0xffff, 0xffff, 0xffff
@@ -116,7 +117,6 @@ fbvga_initialize( rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
}
-
/*
* fbvga device driver OPEN entry point
*/
@@ -142,7 +142,6 @@ fbvga_close(rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
}
-
/*
* fbvga device driver READ entry point.
* Read characters from the PS/2 mouse.
@@ -158,7 +157,6 @@ fbvga_read( rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
}
-
/*
* fbvga device driver WRITE entry point.
* Write characters to the PS/2 mouse.
@@ -174,14 +172,12 @@ fbvga_write( rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
}
-
static int get_screen_info( struct fb_screeninfo *info )
{
*info = fb_info;
return 0;
}
-
static int get_palette( struct fb_cmap *cmap )
{
__u32 i;
@@ -198,7 +194,6 @@ static int get_palette( struct fb_cmap *cmap )
return 0;
}
-
static int set_palette( struct fb_cmap *cmap )
{
__u32 i;
@@ -215,7 +210,6 @@ static int set_palette( struct fb_cmap *cmap )
return 0;
}
-
/*
* IOCTL entry point -- This method is called to carry
* all services of this interface.
diff --git a/c/src/lib/libbsp/i386/pc386/console/fb_vga.h b/c/src/lib/libbsp/i386/pc386/console/fb_vga.h
index 643c892949..9030f13b4b 100644
--- a/c/src/lib/libbsp/i386/pc386/console/fb_vga.h
+++ b/c/src/lib/libbsp/i386/pc386/console/fb_vga.h
@@ -16,6 +16,9 @@
* MODIFICATION/HISTORY:
*
* $Log$
+ * Revision 1.3 2004/04/21 10:42:44 ralf
+ * Remove stray white spaces.
+ *
* Revision 1.2 2004/04/15 13:26:12 ralf
* Remove stray white spaces.
*
@@ -84,7 +87,6 @@ rtems_device_driver fbvga_close(
void *
);
-
rtems_device_driver fbvga_read(
rtems_device_major_number,
rtems_device_minor_number,
diff --git a/c/src/lib/libbsp/i386/pc386/console/i386kbd.h b/c/src/lib/libbsp/i386/pc386/console/i386kbd.h
index c3fe9463a6..b6fa0bea8b 100644
--- a/c/src/lib/libbsp/i386/pc386/console/i386kbd.h
+++ b/c/src/lib/libbsp/i386/pc386/console/i386kbd.h
@@ -58,8 +58,6 @@ extern unsigned char pckbd_sysrq_xlate[128];
#define aux_free_irq(dev_id) /* free_irq(AUX_IRQ, dev_id) */
-
-
/*
* include/linux/pc_keyb.h
*
@@ -78,8 +76,6 @@ extern unsigned char pckbd_sysrq_xlate[128];
#undef KBD_IS_FOCUS_9000 /* We have the brain-damaged FOCUS-9000 keyboard */
#undef INITIALIZE_MOUSE /* Define if your PS/2 mouse needs initialization. */
-
-
#define KBD_INIT_TIMEOUT 1000 /* Timeout in ms for initializing the keyboard */
#define KBC_TIMEOUT 250 /* Timeout in ms for sending to keyboard controller */
#define KBD_TIMEOUT 1000 /* Timeout in ms for keyboard command acknowledge */
diff --git a/c/src/lib/libbsp/i386/pc386/console/inch.c b/c/src/lib/libbsp/i386/pc386/console/inch.c
index 264b0ae0a4..e7d7e1c5ec 100644
--- a/c/src/lib/libbsp/i386/pc386/console/inch.c
+++ b/c/src/lib/libbsp/i386/pc386/console/inch.c
@@ -66,7 +66,6 @@ static char shift_map[] =
'1','2','3','0',177
}; /* Keyboard scancode -> character map with SHIFT key modifier. */
-
static unsigned short kbd_buffer[KBD_BUF_SIZE];
static uint16_t kbd_first = 0;
static uint16_t kbd_last = 0;
@@ -85,7 +84,6 @@ void rtemsReboot(void)
outport_byte(0x64, 0xFE); /* use keyboard controler to do the job... */
} /* rtemsReboot */
-
/*-------------------------------------------------------------------------+
| Function: _IBMPC_scankey
| Description: This function can be called during a poll for input, or by
@@ -238,7 +236,6 @@ _IBMPC_chrdy(char *c)
return FALSE;
} /* _IBMPC_chrdy */
-
/*-------------------------------------------------------------------------+
| Function: _IBMPC_inch
| Description: Poll keyboard until a character is ready and return it.
@@ -256,7 +253,6 @@ _IBMPC_inch(void)
return c;
} /* _IBMPC_inch */
-
/*
* Routine that can be used before interrupt management is initialized.
*/
diff --git a/c/src/lib/libbsp/i386/pc386/console/kd.h b/c/src/lib/libbsp/i386/pc386/console/kd.h
index 963c8cc935..1e4bc4ffeb 100644
--- a/c/src/lib/libbsp/i386/pc386/console/kd.h
+++ b/c/src/lib/libbsp/i386/pc386/console/kd.h
@@ -10,6 +10,9 @@
//
// MODIFICATION/HISTORY:
// $Log$
+// Revision 1.2 2004/04/21 10:42:44 ralf
+// Remove stray white spaces.
+//
// Revision 1.1 2000/08/30 08:15:30 joel
// 2000-08-26 Rosimildo da Silva <rdasilva@connecttel.com>
//
@@ -110,7 +113,6 @@ struct kbsentry {
unsigned char kb_string[512];
};
-
struct kbdiacr {
unsigned char diacr, base, result;
};
diff --git a/c/src/lib/libbsp/i386/pc386/console/keyboard.c b/c/src/lib/libbsp/i386/pc386/console/keyboard.c
index 0be2ef4e15..8327334ebb 100644
--- a/c/src/lib/libbsp/i386/pc386/console/keyboard.c
+++ b/c/src/lib/libbsp/i386/pc386/console/keyboard.c
@@ -56,8 +56,6 @@
extern void add_to_queue( unsigned short );
extern void rtemsReboot( void );
-
-
int set_bit(int nr, unsigned long * addr)
{
int mask, retval,level;
@@ -96,7 +94,6 @@ int test_bit(int nr, unsigned long * addr)
#define test_and_set_bit(x,y) set_bit(x,y)
#define test_and_clear_bit(x,y) clear_bit(x,y)
-
/*
* global state includes the following, and various static variables
* in this module: prev_scancode, shift_state, diacr, npadch, dead_key_next.
@@ -123,7 +120,6 @@ static char rep = 0; /* flag telling character repeat */
/* default console for RTEMS */
static int fg_console = 0;
-
struct kbd_struct kbd_table[MAX_NR_CONSOLES];
static struct kbd_struct * kbd = kbd_table;
@@ -150,7 +146,6 @@ static k_hand key_handler[16] = {
typedef void (*void_fnp)(void);
typedef void (void_fn)(void);
-
static void show_mem(void)
{
}
@@ -211,7 +206,6 @@ void to_utf8(ushort c) {
but we need only 16 bits here */
}
-
/*
* Translation of escaped scancodes to keycodes.
* This is now user-settable (for machines were it makes sense).
@@ -277,7 +271,6 @@ void handle_scancode(unsigned char scancode, int down)
} else
rep = test_and_set_bit(keycode, key_down);
-
#ifdef CONFIG_MAGIC_SYSRQ /* Handle the SysRq Hack */
if (keycode == SYSRQ_KEY) {
sysrq_pressed = !up_flag;
@@ -289,7 +282,6 @@ void handle_scancode(unsigned char scancode, int down)
}
#endif
-
if (kbd->kbdmode == VC_MEDIUMRAW) {
/* soon keycodes will require more than one byte */
put_queue(keycode + up_flag);
@@ -320,7 +312,6 @@ void handle_scancode(unsigned char scancode, int down)
int shift_final = shift_state ^ kbd->lockstate ^ kbd->slockstate;
ushort *key_map = key_maps[shift_final];
-
if (key_map != NULL) {
keysym = key_map[keycode];
type = KTYP(keysym);
@@ -383,7 +374,6 @@ static void put_queue(int ch)
}
}
-
static void puts_queue(char *cp)
{
while (*cp) {
@@ -578,7 +568,6 @@ static void do_dead2(unsigned char value, char up_flag)
diacr = (diacr ? handle_diacr(value) : value);
}
-
/*
* We have a combining character DIACR here, followed by the character CH.
* If the combination occurs in the table, return the corresponding value.
@@ -846,7 +835,6 @@ void register_leds(int console, unsigned int led,
static inline unsigned char getleds(void){
-
struct kbd_struct *kbd = kbd_table + fg_console;
unsigned char leds;
@@ -899,13 +887,11 @@ static void kbd_bh(void)
}
}
-
void set_leds(void)
{
kbd_bh();
}
-
int kbd_init(void)
{
diff --git a/c/src/lib/libbsp/i386/pc386/console/keyboard.h b/c/src/lib/libbsp/i386/pc386/console/keyboard.h
index 2946235039..77476baf06 100644
--- a/c/src/lib/libbsp/i386/pc386/console/keyboard.h
+++ b/c/src/lib/libbsp/i386/pc386/console/keyboard.h
@@ -10,6 +10,9 @@
//
// MODIFICATION/HISTORY:
// $Log$
+// Revision 1.3 2004/04/21 10:42:44 ralf
+// Remove stray white spaces.
+//
// Revision 1.2 2000/08/30 17:06:23 joel
// 2000-08-30 Joel Sherrill <joel@OARcorp.com>
//
@@ -82,7 +85,6 @@ extern unsigned char keyboard_type;
#define MAX_NR_FUNC 256 /* max nr of strings assigned to keys */
#define MAX_NR_CONSOLES 1
-
extern char *func_table[MAX_NR_FUNC];
#define KT_LATIN 0 /* we depend on this being zero */
@@ -360,7 +362,6 @@ extern char *func_table[MAX_NR_FUNC];
#define K_F245 K(KT_FN,254)
#define K_UNDO K(KT_FN,255)
-
#define K_HOLE K(KT_SPEC,0)
#define K_ENTER K(KT_SPEC,1)
#define K_SH_REGS K(KT_SPEC,2)
@@ -623,5 +624,4 @@ void compute_shiftstate(void);
extern unsigned int keymap_count;
-
#endif
diff --git a/c/src/lib/libbsp/i386/pc386/console/mouse_parser.c b/c/src/lib/libbsp/i386/pc386/console/mouse_parser.c
index 308ace335f..bd68efd568 100644
--- a/c/src/lib/libbsp/i386/pc386/console/mouse_parser.c
+++ b/c/src/lib/libbsp/i386/pc386/console/mouse_parser.c
@@ -30,7 +30,6 @@
#include "mouse_parser.h"
#include "serial_mouse.h"
-
/* NOTE NOTE NOTE NOTE:
Select here the mouse type !!!!!
*/
@@ -225,7 +224,6 @@ static int ParsePC(int byte)
return 0;
}
-
/*
* Input routine for Microsoft mouse.
* Returns nonzero when a new mouse state has been completed.
@@ -394,7 +392,6 @@ void register_kbd_msg_queue( char *q_name, int port )
kbd_set_driver_handler( kbd_parser );
}
-
void unregister_kbd_msg_queue( int port )
{
kbd_set_driver_handler( NULL );
diff --git a/c/src/lib/libbsp/i386/pc386/console/mouse_parser.h b/c/src/lib/libbsp/i386/pc386/console/mouse_parser.h
index 40d491f2c4..5746e365f4 100644
--- a/c/src/lib/libbsp/i386/pc386/console/mouse_parser.h
+++ b/c/src/lib/libbsp/i386/pc386/console/mouse_parser.h
@@ -31,5 +31,4 @@ void unregister_kbd_msg_queue( int port );
}
#endif
-
#endif /* __mouse_parser_h__ */
diff --git a/c/src/lib/libbsp/i386/pc386/console/outch.c b/c/src/lib/libbsp/i386/pc386/console/outch.c
index ae6cb6d288..ecf08ae2ca 100644
--- a/c/src/lib/libbsp/i386/pc386/console/outch.c
+++ b/c/src/lib/libbsp/i386/pc386/console/outch.c
@@ -17,7 +17,6 @@
* $Id$
*/
-
#include <bsp.h>
#include <stdlib.h>
@@ -76,7 +75,6 @@ doCRNL(int cr, int nl)
wr_cursor(row * maxCol + column, ioCrtBaseAddr);
}
-
int (*videoHook)(char, int *)=0;
static void
@@ -101,7 +99,6 @@ gotorc(int r, int c)
/* erase current location without moving the cursor */
#define BLANK ((char)0x7f)
-
static void
videoPutChar(char car)
{
@@ -273,7 +270,6 @@ static int escaped = 0;
videoPutChar(c);
} /* _IBMPC_outch */
-
/*-------------------------------------------------------------------------+
| Function: _IBMPC_initVideo
| Description: Video system initialization. Hook for any early setup.
@@ -309,14 +305,12 @@ _IBMPC_initVideo(void)
#endif
} /* _IBMPC_initVideo */
-
/* for old DOS compatibility n-curses type of applications */
void gotoxy( int x, int y )
{
gotorc(y,x);
}
-
int whereX( void )
{
return row;
diff --git a/c/src/lib/libbsp/i386/pc386/console/pc_keyb.c b/c/src/lib/libbsp/i386/pc386/console/pc_keyb.c
index 074d84e38a..90dc6ed86c 100644
--- a/c/src/lib/libbsp/i386/pc386/console/pc_keyb.c
+++ b/c/src/lib/libbsp/i386/pc386/console/pc_keyb.c
@@ -165,7 +165,6 @@ static unsigned char e0_keys[128] = {
0, 0, 0, 0, 0, 0, 0, 0 /* 0x78-0x7f */
};
-
static void mdelay( unsigned long t )
{
Wait_X_ms( t );
@@ -218,7 +217,6 @@ int pckbd_translate(unsigned char scancode, unsigned char *keycode,
{
static int prev_scancode = 0;
-
/* special prefix scancodes.. */
if (scancode == 0xe0 || scancode == 0xe1) {
prev_scancode = scancode;
@@ -318,8 +316,6 @@ char pckbd_unexpected_up(unsigned char keycode)
return 0200;
}
-
-
static void kb_wait(void)
{
unsigned long timeout = KBC_TIMEOUT;
@@ -341,7 +337,6 @@ static void kb_wait(void)
#endif
}
-
/*
* This reads the keyboard status port, and does the
* appropriate action.
@@ -389,7 +384,6 @@ static unsigned char handle_kbd_event(void)
return status;
}
-
void keyboard_interrupt( void )
{
handle_kbd_event();
@@ -595,7 +589,6 @@ static char * initialize_kbd(void)
kbd_wait_for_input();
}
-
kbd_write_output_w(KBD_CMD_ENABLE);
if (kbd_wait_for_input() != KBD_REPLY_ACK)
return "Enable keyboard: no ACK";
@@ -611,7 +604,6 @@ static char * initialize_kbd(void)
return NULL;
}
-
void pckbd_init_hw(void)
{
/* kbd_request_region(); */
diff --git a/c/src/lib/libbsp/i386/pc386/console/ps2_drv.h b/c/src/lib/libbsp/i386/pc386/console/ps2_drv.h
index bfa9c2a32a..2f55272d64 100644
--- a/c/src/lib/libbsp/i386/pc386/console/ps2_drv.h
+++ b/c/src/lib/libbsp/i386/pc386/console/ps2_drv.h
@@ -15,6 +15,9 @@
* MODIFICATION/HISTORY:
*
* $Log$
+ * Revision 1.3 2004/04/21 10:42:44 ralf
+ * Remove stray white spaces.
+ *
* Revision 1.2 2004/04/15 13:26:12 ralf
* Remove stray white spaces.
*
@@ -83,7 +86,6 @@ rtems_device_driver paux_close(
void *
);
-
rtems_device_driver paux_read(
rtems_device_major_number,
rtems_device_minor_number,
diff --git a/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c b/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c
index 5149822229..2cd69e4f42 100644
--- a/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c
+++ b/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c
@@ -74,7 +74,6 @@ static void mdelay( unsigned long t )
Wait_X_ms( t );
}
-
static void* termios_ttyp_paux = NULL;
static void
@@ -94,11 +93,9 @@ static int isr_is_on(const rtems_irq_connect_data *irq)
return BSP_irq_enabled_at_i8259s( irq->name );
}
-
static rtems_irq_connect_data ps2_isr_data = { AUX_IRQ,
ps2_mouse_interrupt, isr_on, isr_off, isr_is_on };
-
/*
* Wait for keyboard controller input buffer to drain.
*
@@ -161,7 +158,6 @@ static int do_acknowledge(unsigned char scancode)
return 1;
}
-
static inline void handle_mouse_event(unsigned char scancode)
{
if (mouse_reply_expected) {
@@ -228,7 +224,6 @@ static unsigned char handle_kbd_event(void)
return status;
}
-
static void ps2_mouse_interrupt()
{
handle_kbd_event();
@@ -404,7 +399,6 @@ static unsigned char get_from_queue(void)
return result;
}
-
static int queue_empty(void)
{
return queue->head == queue->tail;
@@ -439,7 +433,6 @@ static int open_aux()
}
queue->head = queue->tail = 0; /* Flush input queue */
-
status = BSP_install_rtems_irq_handler( &ps2_isr_data );
if( !status )
{
@@ -578,7 +571,6 @@ paux_initialize( rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
} /* tty_initialize */
-
static int paux_last_close(int major, int minor, void *arg)
{
release_aux();
@@ -595,7 +587,6 @@ static int write_aux_echo( int minor, const char * buffer, int count )
return 0;
}
-
/*
* Some initialization if necessary
*/
@@ -607,7 +598,6 @@ paux_first_open( rtems_device_minor_number major,
return RTEMS_SUCCESSFUL;
}
-
/*
* paux device driver OPEN entry point
*/
@@ -645,7 +635,6 @@ paux_close(rtems_device_major_number major,
return (rtems_termios_close (arg));
}
-
/*
* paux device driver READ entry point.
* Read characters from the PS/2 mouse.
@@ -658,7 +647,6 @@ paux_read(rtems_device_major_number major,
return rtems_termios_read (arg);
} /* tty_read */
-
/*
* paux device driver WRITE entry point.
* Write characters to the PS/2 mouse.
@@ -675,7 +663,6 @@ paux_write(rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
} /* tty_write */
-
/*
* Handle ioctl request.
*/
diff --git a/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.h b/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.h
index 4a3d083f1c..adb39c114f 100644
--- a/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.h
+++ b/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.h
@@ -19,8 +19,6 @@
#undef KBD_IS_FOCUS_9000 /* We have the brain-damaged FOCUS-9000 keyboard */
#undef INITIALIZE_MOUSE /* Define if your PS/2 mouse needs initialization. */
-
-
#define KBD_INIT_TIMEOUT 1000 /* Timeout in ms for initializing the keyboard */
#define KBC_TIMEOUT 250 /* Timeout in ms for sending to keyboard controller */
#define KBD_TIMEOUT 1000 /* Timeout in ms for keyboard command acknowledge */
diff --git a/c/src/lib/libbsp/i386/pc386/console/serial_mouse.c b/c/src/lib/libbsp/i386/pc386/console/serial_mouse.c
index b34d13b41c..5eb9c5500a 100644
--- a/c/src/lib/libbsp/i386/pc386/console/serial_mouse.c
+++ b/c/src/lib/libbsp/i386/pc386/console/serial_mouse.c
@@ -18,6 +18,9 @@
* MODIFICATION/HISTORY:
*
* $Log$
+ * Revision 1.6 2004/04/21 10:42:44 ralf
+ * Remove stray white spaces.
+ *
* Revision 1.5 2000/12/05 16:37:38 joel
* 2000-12-01 Joel Sherrill <joel@OARcorp.com>
*
@@ -59,7 +62,6 @@ static void isr_on(const rtems_irq_connect_data *);
static void isr_off(const rtems_irq_connect_data *);
static int isr_is_on(const rtems_irq_connect_data *);
-
extern BSP_polling_getchar_function_type BSP_poll_char;
extern int BSPConsolePort;
@@ -162,7 +164,6 @@ serial_mouse_initialize(rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
} /* tty_initialize */
-
static int serial_mouse_last_close(int major, int minor, void *arg)
{
BSP_remove_rtems_irq_handler( &serial_mouse_isr_data );
@@ -220,7 +221,6 @@ serial_mouse_close(rtems_device_major_number major,
} /* tty_close */
-
/*
* TTY device driver READ entry point.
* Read characters from the tty device.
@@ -233,7 +233,6 @@ serial_mouse_read(rtems_device_major_number major,
return rtems_termios_read (arg);
} /* tty_read */
-
/*
* TTY device driver WRITE entry point.
* Write characters to the tty device.
@@ -286,8 +285,6 @@ serial_mouse_control(rtems_device_major_number major,
return serial_mouse_control_internal( BSP_UART_PORT, arg );
}
-
-
static int
conSetAttr(int port, int minor, const struct termios *t)
{
diff --git a/c/src/lib/libbsp/i386/pc386/console/serial_mouse.h b/c/src/lib/libbsp/i386/pc386/console/serial_mouse.h
index 2a7385d453..b5642f19d6 100644
--- a/c/src/lib/libbsp/i386/pc386/console/serial_mouse.h
+++ b/c/src/lib/libbsp/i386/pc386/console/serial_mouse.h
@@ -15,6 +15,9 @@
* MODIFICATION/HISTORY:
*
* $Log$
+ * Revision 1.3 2004/04/21 10:42:44 ralf
+ * Remove stray white spaces.
+ *
* Revision 1.2 2004/04/15 13:26:12 ralf
* Remove stray white spaces.
*
@@ -58,7 +61,6 @@
extern "C" {
#endif
-
/* ttyS1 entry points */
rtems_device_driver serial_mouse_initialize(
rtems_device_major_number,
@@ -78,7 +80,6 @@ rtems_device_driver serial_mouse_control(
void *
);
-
/* serial_mouse entry points */
rtems_device_driver serial_mouse_close(
rtems_device_major_number,
@@ -86,7 +87,6 @@ rtems_device_driver serial_mouse_close(
void *
);
-
rtems_device_driver serial_mouse_read(
rtems_device_major_number,
rtems_device_minor_number,
@@ -99,7 +99,6 @@ rtems_device_driver serial_mouse_write(
void *
);
-
/* Select the mouse type: "ms","pc","ps2" */
#define MOUSE_TYPE "ms"
@@ -107,7 +106,6 @@ rtems_device_driver serial_mouse_write(
#define SERIAL_MOUSE_COM1 1
/* #define SERIAL_MOUSE_COM2 1 */
-
#define SERIAL_MOUSE_DRIVER_TABLE_ENTRY \
{ serial_mouse_initialize, serial_mouse_open, serial_mouse_close, \
serial_mouse_read, serial_mouse_write, serial_mouse_control }
diff --git a/c/src/lib/libbsp/i386/pc386/console/vgainit.c b/c/src/lib/libbsp/i386/pc386/console/vgainit.c
index 124689f327..2dc89906dc 100644
--- a/c/src/lib/libbsp/i386/pc386/console/vgainit.c
+++ b/c/src/lib/libbsp/i386/pc386/console/vgainit.c
@@ -22,7 +22,6 @@
#define MODE_MAX 3
typedef int MODE; /* drawing mode*/
-
/* Define one and only one of the following to be nonzero*/
#define VGA_ET4000 0 /* TSENG LABS ET4000 chip 800x600*/
#define VGA_STANDARD 1 /* standard VGA 640x480*/
@@ -150,7 +149,6 @@ out_word(unsigned int p,unsigned int d)
outp(p + 1, (d >> 8) & 0xff);
}
-
/* Values for the data rotate register to implement drawing modes. */
static unsigned char mode_table[MODE_MAX + 1] = {
0x00, 0x18, 0x10, 0x08
@@ -168,7 +166,6 @@ setmode(MODE mode)
outp(GRVAL, mode_table[mode]);
}
-
#if VGA_ET4000
/* VGA 800x600 16-color graphics (BIOS mode 0x29).
@@ -268,7 +265,6 @@ static REGIO graphics_on[] = {
DONE, 0, 0, 0, 0
};
-
/* VGA 80x25 text (BIOS mode 3).
*/
static REGIO graph_off[] = {
@@ -368,7 +364,6 @@ static REGIO graph_off[] = {
#endif
-
#if VGA_STANDARD
/* VGA 640x480 16-color graphics (BIOS mode 0x12).
@@ -468,7 +463,6 @@ static REGIO graphics_on[] = {
{ DONE, 0, 0, 0, 0 }
};
-
/* VGA 80x25 text (BIOS mode 3).
*/
static REGIO graph_off[] = {
@@ -568,7 +562,6 @@ static REGIO graph_off[] = {
#endif
-
#if EGA_STANDARD
/* EGA 640x350 16-color graphics (BIOS mode 0x10).
@@ -668,7 +661,6 @@ static REGIO graphics_on[] = {
DONE, 0, 0, 0, 0
};
-
/* EGA 80x25 text (BIOS mode 3).
*/
static REGIO graph_off[] = {
diff --git a/c/src/lib/libbsp/i386/pc386/console/vt.c b/c/src/lib/libbsp/i386/pc386/console/vt.c
index 631a7d532f..fdca7c8619 100644
--- a/c/src/lib/libbsp/i386/pc386/console/vt.c
+++ b/c/src/lib/libbsp/i386/pc386/console/vt.c
@@ -109,7 +109,6 @@ _kd_mksound(unsigned int hz, unsigned int ticks)
void (*kd_mksound)(unsigned int hz, unsigned int ticks) = _kd_mksound;
-
#define i (tmp.kb_index)
#define s (tmp.kb_table)
#define v (tmp.kb_value)
@@ -144,7 +143,6 @@ do_kdsk_ioctl(int cmd, struct kbentry *user_kbe, int perm, struct kbd_struct *kb
#undef s
#undef v
-
#define HZ 100
static inline int
diff --git a/c/src/lib/libbsp/i386/pc386/ide/idecfg.c b/c/src/lib/libbsp/i386/pc386/ide/idecfg.c
index b84855a7b8..4d1ef8a473 100644
--- a/c/src/lib/libbsp/i386/pc386/ide/idecfg.c
+++ b/c/src/lib/libbsp/i386/pc386/ide/idecfg.c
@@ -23,7 +23,6 @@
#include <libchip/ide_ctrl_cfg.h>
#include <libchip/ide_ctrl_io.h>
-
/*
* The following table configures the functions used for IDE drivers
* in this BSP.
diff --git a/c/src/lib/libbsp/i386/pc386/include/bsp.h b/c/src/lib/libbsp/i386/pc386/include/bsp.h
index ef5d43ea84..c76c5e454e 100644
--- a/c/src/lib/libbsp/i386/pc386/include/bsp.h
+++ b/c/src/lib/libbsp/i386/pc386/include/bsp.h
@@ -38,7 +38,6 @@
| $Id$
+--------------------------------------------------------------------------*/
-
#ifndef __BSP_H_
#define __BSP_H_
@@ -211,7 +210,6 @@ void rtemsReboot(void); /* from 'exit.c' */
void Wait_X_ms(unsigned int timeToWait); /* from 'timer.c' */
-
/* Definitions for BSPConsolePort */
#define BSP_CONSOLE_PORT_CONSOLE (-1)
#define BSP_CONSOLE_PORT_COM1 (BSP_UART_COM1)
diff --git a/c/src/lib/libbsp/i386/pc386/include/crt.h b/c/src/lib/libbsp/i386/pc386/include/crt.h
index c750777cfb..e1537b899a 100644
--- a/c/src/lib/libbsp/i386/pc386/include/crt.h
+++ b/c/src/lib/libbsp/i386/pc386/include/crt.h
@@ -25,7 +25,6 @@
/* In color */
#define V_COLOR 0xb8000
-
/*
* Video Option Byte location. It must be maintained
* by the BIOS.
@@ -72,7 +71,6 @@
#define OFF 0
#define ON 1
-
/*
* CRT Controller register offset definitions
*/
diff --git a/c/src/lib/libbsp/i386/pc386/start/start.S b/c/src/lib/libbsp/i386/pc386/start/start.S
index bef9448bc8..c09903e807 100644
--- a/c/src/lib/libbsp/i386/pc386/start/start.S
+++ b/c/src/lib/libbsp/i386/pc386/start/start.S
@@ -64,7 +64,6 @@ BEGIN_CODE
EXTERN (debugPollingGetChar)
EXTERN (checkCPUtypeSetCr0)
-
/*
* In case this crashes on your machine and this is not due
* to video mode set by the loader, you may try to define
diff --git a/c/src/lib/libbsp/i386/pc386/startup/bspstart.c b/c/src/lib/libbsp/i386/pc386/startup/bspstart.c
index 56a4e3ad60..1162de1b88 100644
--- a/c/src/lib/libbsp/i386/pc386/startup/bspstart.c
+++ b/c/src/lib/libbsp/i386/pc386/startup/bspstart.c
@@ -30,7 +30,6 @@
| $Id$
+--------------------------------------------------------------------------*/
-
#include <bsp.h>
#include <rtems/libio.h>
#include <rtems/libcsupport.h>
@@ -84,7 +83,6 @@ void bsp_pretasking_hook(void)
uint32_t topAddr, val;
int i;
-
if (rtemsFreeMemStart & (CPU_ALIGNMENT - 1)) /* not aligned => align it */
rtemsFreeMemStart = (rtemsFreeMemStart+CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
@@ -119,7 +117,6 @@ void bsp_pretasking_hook(void)
bsp_libc_init((void *)rtemsFreeMemStart, _heap_size, 0);
rtemsFreeMemStart += _heap_size; /* HEAP_SIZE in KBytes */
-
#ifdef RTEMS_DEBUG
rtems_debug_enable(RTEMS_DEBUG_ALL_MASK);
@@ -127,7 +124,6 @@ void bsp_pretasking_hook(void)
#endif /* RTEMS_DEBUG */
} /* bsp_pretasking_hook */
-
/*-------------------------------------------------------------------------+
| Function: bsp_start
| Description: Called before main is invoked.
diff --git a/c/src/lib/libbsp/i386/pc386/startup/exit.c b/c/src/lib/libbsp/i386/pc386/startup/exit.c
index 4364f0544f..052eeff68f 100644
--- a/c/src/lib/libbsp/i386/pc386/startup/exit.c
+++ b/c/src/lib/libbsp/i386/pc386/startup/exit.c
@@ -30,7 +30,6 @@
| $Id$
+--------------------------------------------------------------------------*/
-
#include <stdio.h>
#include <bsp.h>
#include <rtems/libio.h>
diff --git a/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S b/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S
index f9279c292b..d3cc96ecaf 100644
--- a/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S
+++ b/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S
@@ -204,7 +204,6 @@ SYM (_Global_descriptor_table):
.word 0xffff, 0
.byte 0, 0x92, 0xcf, 0
-
/*---------------------------------------------------------------------------+
| Descriptor of GDT
+--------------------------------------------------------------------------*/
@@ -212,7 +211,6 @@ SYM (gdtdesc):
.word (3*8 - 1)
.long SYM (_Global_descriptor_table)
-
/*---------------------------------------------------------------------------+
| IDT itself
+---------------------------------------------------------------------------*/
diff --git a/c/src/lib/libbsp/i386/pc386/timer/timer.c b/c/src/lib/libbsp/i386/pc386/timer/timer.c
index 3024ac70c7..210dd7f6f2 100644
--- a/c/src/lib/libbsp/i386/pc386/timer/timer.c
+++ b/c/src/lib/libbsp/i386/pc386/timer/timer.c
@@ -38,7 +38,6 @@
| $Id$
+--------------------------------------------------------------------------*/
-
#include <stdlib.h>
#include <bsp.h>
@@ -90,7 +89,6 @@ rdtsc(void)
return result;
} /* rdtsc */
-
/*-------------------------------------------------------------------------+
| Function: Timer_exit
| Description: Timer cleanup routine at RTEMS exit. NOTE: This routine is
@@ -104,7 +102,6 @@ Timer_exit(void)
{
} /* Timer_exit */
-
/*-------------------------------------------------------------------------+
| Function: Timer_initialize
| Description: Timer initialization routine.
@@ -126,7 +123,6 @@ Timer_initialize(void)
Ttimer_val = rdtsc(); /* read starting time */
} /* Timer_initialize */
-
/*-------------------------------------------------------------------------+
| Function: Read_timer
| Description: Read hardware timer value.
@@ -156,7 +152,6 @@ Read_timer(void)
+--------------------------------------------------------------------------*/
#define US_PER_ISR 250 /* Number of micro-seconds per timer interruption */
-
/*-------------------------------------------------------------------------+
| Function: Timer_exit
| Description: Timer cleanup routine at RTEMS exit. NOTE: This routine is
@@ -178,7 +173,6 @@ timerOff(const rtems_raw_irq_connect_data* used)
outport_byte(TIMER_CNTR0, 0);
} /* Timer_exit */
-
static void
timerOn(const rtems_raw_irq_connect_data* used)
{
@@ -248,7 +242,6 @@ Timer_initialize(void)
Ttimer_val = 0;
} /* Timer_initialize */
-
/*-------------------------------------------------------------------------+
| Function: Read_timer
| Description: Read hardware timer value.
@@ -278,7 +271,6 @@ Read_timer(void)
#endif /* pentium */
-
/*-------------------------------------------------------------------------+
| Function: Empty_function
| Description: Empty function used in time tests.
@@ -291,7 +283,6 @@ rtems_status_code Empty_function(void)
return RTEMS_SUCCESSFUL;
} /* Empty function */
-
/*-------------------------------------------------------------------------+
| Function: Set_find_average_overhead
| Description: Set internal Timer_driver_Find_average_overhead flag value.
@@ -319,7 +310,6 @@ void loadTimerValue( unsigned short loadedValue )
outport_byte(TIMER_CNTR0, (loadedValue >> 8) & 0xff);
}
-
/*-------------------------------------------------------------------------+
| Description: Reads the current value of the timer, and converts the
| number of ticks to micro-seconds.
diff --git a/c/src/lib/libbsp/i386/pc386/timer/timerisr.S b/c/src/lib/libbsp/i386/pc386/timer/timerisr.S
index b7afdfefee..a4b922567b 100644
--- a/c/src/lib/libbsp/i386/pc386/timer/timerisr.S
+++ b/c/src/lib/libbsp/i386/pc386/timer/timerisr.S
@@ -30,7 +30,6 @@
| $Id$
+--------------------------------------------------------------------------*/
-
#include <rtems/asm.h>
BEGIN_CODE
diff --git a/c/src/lib/libbsp/i386/pc386/tools/bin2boot.c b/c/src/lib/libbsp/i386/pc386/tools/bin2boot.c
index fed169eac8..087d1e8ded 100644
--- a/c/src/lib/libbsp/i386/pc386/tools/bin2boot.c
+++ b/c/src/lib/libbsp/i386/pc386/tools/bin2boot.c
@@ -32,7 +32,6 @@ static void usage(void)
return;
}
-
int main(int argc, char* argv[])
{
int c, verbose;
@@ -130,7 +129,6 @@ int main(int argc, char* argv[])
return 1;
}
-
/* Copy first image out and remember its length */
cnt = 0;
for(;;)
@@ -177,7 +175,6 @@ int main(int argc, char* argv[])
size1 = cnt;
}
-
/* Let us check agains overlapping */
if(!(addr1 >= (headerAddr + sizeof(buf)) || (headerAddr >= addr1+size1)))
{
@@ -199,7 +196,6 @@ int main(int argc, char* argv[])
return 1;
}
-
if(optind == (argc - 1))
{
imageCnt = 1;
@@ -364,7 +360,6 @@ writeHeader:
buf[0x23] = 4;
-
/* Load address */
buf[0x24] = addr2 & 0xff;
buf[0x25] = (addr2 >> 8) & 0xff;
diff --git a/c/src/lib/libbsp/i386/pc386/wd8003/wd8003.c b/c/src/lib/libbsp/i386/pc386/wd8003/wd8003.c
index 1e336f6f4f..820a2bf9c8 100644
--- a/c/src/lib/libbsp/i386/pc386/wd8003/wd8003.c
+++ b/c/src/lib/libbsp/i386/pc386/wd8003/wd8003.c
@@ -287,7 +287,6 @@ wd_rxDaemon (void *arg)
for (;;){
-
rtems_bsdnet_event_receive (INTERRUPT_EVENT,
RTEMS_WAIT|RTEMS_EVENT_ANY,
RTEMS_NO_TIMEOUT,
@@ -490,7 +489,6 @@ wd_stop (struct wd_softc *sc)
}
-
/*
* Show interface statistics
*/
@@ -606,7 +604,6 @@ rtems_wd_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
else
mtu = ETHERMTU;
-
if (config->irno)
sc->irqInfo.name = config->irno;
else
diff --git a/c/src/lib/libbsp/i386/shared/comm/gdb_glue.c b/c/src/lib/libbsp/i386/shared/comm/gdb_glue.c
index 78ec77ae06..0df2373372 100644
--- a/c/src/lib/libbsp/i386/shared/comm/gdb_glue.c
+++ b/c/src/lib/libbsp/i386/shared/comm/gdb_glue.c
@@ -45,7 +45,6 @@ void init_remote_gdb( void )
/* Init GDB stub itself */
set_debug_traps();
-
printf( "Remote GDB: waiting remote connection....\n" );
/*
diff --git a/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c b/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c
index e36f5e2ea4..d5b7ace66c 100644
--- a/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c
+++ b/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c
@@ -14,7 +14,6 @@
#include <uart.h>
#include <assert.h>
-
int putDebugChar(int ch); /* write a single character */
int getDebugChar(void); /* read and return a single char */
@@ -55,7 +54,6 @@ int BSP_uart_isOn(const rtems_raw_irq_connect_data* used)
return BSP_irq_enabled_at_i8259s(used->idtIndex - BSP_IRQ_VECTOR_BASE);
}
-
/*
* In order to have a possibility to break into
* running program, one has to call this function
@@ -115,7 +113,6 @@ void i386_stub_glue_init_breakin(void)
return;
}
-
int
putDebugChar(int ch)
{
diff --git a/c/src/lib/libbsp/i386/shared/comm/i386-stub.c b/c/src/lib/libbsp/i386/shared/comm/i386-stub.c
index b55d5302fb..172c992e38 100644
--- a/c/src/lib/libbsp/i386/shared/comm/i386-stub.c
+++ b/c/src/lib/libbsp/i386/shared/comm/i386-stub.c
@@ -464,7 +464,6 @@ hex (char ch)
return (-1);
}
-
/* scan for the sequence $<data>#<checksum> */
void
getpacket (char *buffer)
@@ -530,7 +529,6 @@ getpacket (char *buffer)
/* send the packet in buffer. */
-
void
putpacket (char *buffer)
{
diff --git a/c/src/lib/libbsp/i386/shared/comm/tty_drv.c b/c/src/lib/libbsp/i386/shared/comm/tty_drv.c
index cb219d5f87..53092d59bc 100644
--- a/c/src/lib/libbsp/i386/shared/comm/tty_drv.c
+++ b/c/src/lib/libbsp/i386/shared/comm/tty_drv.c
@@ -18,6 +18,9 @@
* MODIFICATION/HISTORY:
*
* $Log$
+ * Revision 1.6 2004/04/21 10:42:44 ralf
+ * Remove stray white spaces.
+ *
* Revision 1.5 2001/08/16 20:52:05 joel
* 2001-08-16 Mike Siers <mikes@poliac.com>
*
@@ -84,12 +87,10 @@ static void isr_on(const rtems_irq_connect_data *);
static void isr_off(const rtems_irq_connect_data *);
static int isr_is_on(const rtems_irq_connect_data *);
-
extern BSP_polling_getchar_function_type BSP_poll_char;
extern int BSPConsolePort;
extern void rtems_set_waiting_id_comx( int port, rtems_id id, rtems_event_set event );
-
/*
* Interrupt structure for tty1
*/
@@ -183,7 +184,6 @@ tty1_initialize(rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
} /* tty_initialize */
-
static int tty1_last_close(int major, int minor, void *arg)
{
BSP_remove_rtems_irq_handler( &tty1_isr_data );
@@ -255,7 +255,6 @@ tty_close(rtems_device_major_number major,
} /* tty_close */
-
/*
* TTY device driver READ entry point.
* Read characters from the tty device.
@@ -268,7 +267,6 @@ tty_read(rtems_device_major_number major,
return rtems_termios_read (arg);
} /* tty_read */
-
/*
* TTY device driver WRITE entry point.
* Write characters to the tty device.
@@ -299,8 +297,6 @@ static rtems_device_driver tty_control( int port, void *arg )
return RTEMS_SUCCESSFUL;
}
-
-
/*
* Handle ioctl request for ttyS1.
*/
@@ -313,7 +309,6 @@ tty1_control(rtems_device_major_number major,
return tty_control( BSP_UART_COM1, arg );
}
-
static int
conSetAttr(int port, int minor, const struct termios *t)
{
@@ -424,8 +419,6 @@ tty1_conSetAttr( int minor, const struct termios *t)
return conSetAttr( BSP_UART_COM1, minor, t );
}
-
-
/*
* TTY2 device driver INITIALIZE entry point.
*/
@@ -473,7 +466,6 @@ tty2_initialize(rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
} /* tty_initialize */
-
static int tty2_last_close(int major, int minor, void *arg)
{
BSP_remove_rtems_irq_handler( &tty2_isr_data );
diff --git a/c/src/lib/libbsp/i386/shared/comm/tty_drv.h b/c/src/lib/libbsp/i386/shared/comm/tty_drv.h
index d84dd4d3a1..82319b3aa5 100644
--- a/c/src/lib/libbsp/i386/shared/comm/tty_drv.h
+++ b/c/src/lib/libbsp/i386/shared/comm/tty_drv.h
@@ -15,6 +15,9 @@
* MODIFICATION/HISTORY:
*
* $Log$
+ * Revision 1.3 2004/04/21 10:42:44 ralf
+ * Remove stray white spaces.
+ *
* Revision 1.2 2004/04/15 13:26:12 ralf
* Remove stray white spaces.
*
@@ -38,7 +41,6 @@
extern "C" {
#endif
-
/* ttyS1 entry points */
rtems_device_driver tty1_initialize(
rtems_device_major_number,
@@ -58,7 +60,6 @@ rtems_device_driver tty1_control(
void *
);
-
/* tty1 & tty2 shared entry points */
rtems_device_driver tty_close(
rtems_device_major_number,
@@ -66,7 +67,6 @@ rtems_device_driver tty_close(
void *
);
-
rtems_device_driver tty_read(
rtems_device_major_number,
rtems_device_minor_number,
@@ -79,8 +79,6 @@ rtems_device_driver tty_write(
void *
);
-
-
/* tty2 entry points */
rtems_device_driver tty2_initialize(
rtems_device_major_number,
@@ -100,19 +98,14 @@ rtems_device_driver tty2_control(
void *
);
-
-
#define TTY1_DRIVER_TABLE_ENTRY \
{ tty1_initialize, tty1_open, tty_close, \
tty_read, tty_write, tty1_control }
-
#define TTY2_DRIVER_TABLE_ENTRY \
{ tty2_initialize, tty2_open, tty_close, \
tty_read, tty_write, tty2_control }
-
-
#ifdef __cplusplus
}
#endif
diff --git a/c/src/lib/libbsp/i386/shared/comm/uart.c b/c/src/lib/libbsp/i386/shared/comm/uart.c
index bc5e805c4e..78b4f70cb5 100644
--- a/c/src/lib/libbsp/i386/shared/comm/uart.c
+++ b/c/src/lib/libbsp/i386/shared/comm/uart.c
@@ -146,7 +146,6 @@ BSP_uart_init
/* 8-bit, no parity , 1 stop */
uwrite(uart, LCR, databits | parity | stopbits);
-
/* Set DTR, RTS and OUT2 high */
uwrite(uart, MCR, DTR | RTS | OUT_2);
@@ -354,7 +353,6 @@ BSP_uart_polled_status(int uart)
return BSP_UART_STATUS_ERROR;
}
-
/*
* Polled mode write function
*/
@@ -442,7 +440,6 @@ BSP_poll_char_via_serial()
return BSP_uart_polled_read(BSPConsolePort);
}
-
/* ================ Termios support =================*/
static volatile int termios_stopped_com1 = 0;
@@ -478,7 +475,6 @@ void uart_set_driver_handler( int port, void ( *handler )( void *, char *, int
}
}
-
/*
* Set channel parameters
*/
@@ -619,7 +615,6 @@ BSP_uart_termios_write_com2(int minor, const char *buf, int len)
return 0;
}
-
/* If there TX buffer is busy - something is royally screwed up */
assert((uread(BSP_UART_COM2, LSR) & THRE) != 0);
@@ -644,7 +639,6 @@ BSP_uart_termios_write_com2(int minor, const char *buf, int len)
return 0;
}
-
void
BSP_uart_termios_isr_com1(void)
{
@@ -836,7 +830,6 @@ BSP_uart_termios_isr_com2()
}
}
-
/* ================= GDB support ===================*/
static int sav[4] __attribute__ ((unused));
@@ -918,7 +911,6 @@ asm (" outb %al, $0x20");
asm (" movl sav, %eax"); /* Restore eax */
asm (" iret"); /* Done */
-
/*
* Interrupt service routine for COM2 - all,
* it does it check whether ^C is received
diff --git a/c/src/lib/libbsp/i386/shared/comm/uart.h b/c/src/lib/libbsp/i386/shared/comm/uart.h
index 05370c56dd..f45eb48cdd 100644
--- a/c/src/lib/libbsp/i386/shared/comm/uart.h
+++ b/c/src/lib/libbsp/i386/shared/comm/uart.h
@@ -174,5 +174,4 @@ extern int BSPBaseBaud;
}
#endif
-
#endif /* _BSPUART_H */
diff --git a/c/src/lib/libbsp/i386/shared/irq/idt.c b/c/src/lib/libbsp/i386/shared/irq/idt.c
index a81c6358c6..909d82eac4 100644
--- a/c/src/lib/libbsp/i386/shared/irq/idt.c
+++ b/c/src/lib/libbsp/i386/shared/irq/idt.c
@@ -64,7 +64,6 @@ int i386_set_idt_entry (const rtems_raw_irq_connect_data* irq)
unsigned limit;
unsigned int level;
-
i386_get_info_from_IDTR (&idt_entry_tbl, &limit);
/* Convert limit into number of entries */
@@ -241,7 +240,6 @@ int i386_set_gdt_entry (unsigned short segment_selector, unsigned base,
unsigned int limit_adjusted;
segment_descriptors* gdt_entry_tbl;
-
i386_get_info_from_GDTR (&gdt_entry_tbl, &gdt_limit);
if (segment_selector > limit) {
diff --git a/c/src/lib/libbsp/i386/shared/irq/irq.c b/c/src/lib/libbsp/i386/shared/irq/irq.c
index 1fae59f777..c30ee820e8 100644
--- a/c/src/lib/libbsp/i386/shared/irq/irq.c
+++ b/c/src/lib/libbsp/i386/shared/irq/irq.c
@@ -11,7 +11,6 @@
* $Id$
*/
-
#include <bsp.h>
#include <irq.h>
#include <rtems/score/thread.h>
@@ -138,7 +137,6 @@ int BSP_irq_enabled_at_i8259s (const rtems_irq_symbolic_name irqLine)
return (~(i8259s_cache & mask));
}
-
/*-------------------------------------------------------------------------+
| Function: BSP_irq_ack_at_i8259s
| Description: Signal generic End Of Interrupt (EOI) to appropriate PIC.
@@ -204,7 +202,6 @@ static void make_copy_of_handlers ()
}
}
-
/*
* This function check that the value given for the irq line
* is valid.
@@ -263,7 +260,6 @@ int BSP_install_rtems_irq_handler (const rtems_irq_connect_data* irq)
return 1;
}
-
int BSP_get_current_rtems_irq_handler (rtems_irq_connect_data* irq)
{
unsigned int level;
diff --git a/c/src/lib/libbsp/i386/shared/irq/irq.h b/c/src/lib/libbsp/i386/shared/irq/irq.h
index 3a1add8355..84651e7755 100644
--- a/c/src/lib/libbsp/i386/shared/irq/irq.h
+++ b/c/src/lib/libbsp/i386/shared/irq/irq.h
@@ -60,9 +60,6 @@ typedef enum {
BSP_RT_TIMER3 = 10
} rtems_irq_symbolic_name;
-
-
-
/*
* Type definition for RTEMS managed interrupts
*/
@@ -140,9 +137,6 @@ typedef struct {
rtems_irq_prio* irqPrioTbl;
}rtems_irq_global_settings;
-
-
-
/*-------------------------------------------------------------------------+
| Function Prototypes.
+--------------------------------------------------------------------------*/
diff --git a/c/src/lib/libbsp/i386/shared/irq/irq_asm.S b/c/src/lib/libbsp/i386/shared/irq/irq_asm.S
index 9c5e327379..6504079fda 100644
--- a/c/src/lib/libbsp/i386/shared/irq/irq_asm.S
+++ b/c/src/lib/libbsp/i386/shared/irq/irq_asm.S
@@ -130,7 +130,6 @@ nested:
movb ah, al
outb $PIC_SLAVE_IMR_IO_PORT
-
decl SYM (_ISR_Nest_level) /* one less ISR nest level */
/* If interrupts are nested, */
/* then dispatching is disabled */
@@ -149,7 +148,6 @@ nested:
/* while in interrupt handler? */
je .exit /* No, exit */
-
.bframe:
movl $0, SYM (_ISR_Signals_to_thread_executing)
/*
@@ -203,7 +201,6 @@ nested:
popl eax
iret
-
#define DISTINCT_INTERRUPT_ENTRY(_vector) \
.p2align 4 ; \
PUBLIC (rtems_irq_prologue_ ## _vector ) ; \
diff --git a/c/src/lib/libbsp/i386/shared/irq/irq_asm.h b/c/src/lib/libbsp/i386/shared/irq/irq_asm.h
index bbf291b519..e46b5e1203 100644
--- a/c/src/lib/libbsp/i386/shared/irq/irq_asm.h
+++ b/c/src/lib/libbsp/i386/shared/irq/irq_asm.h
@@ -26,5 +26,4 @@
#define PIC_EOSI 0x60 /* End of Specific Interrupt (EOSI) */
#define PIC_EOI 0x20 /* Generic End of Interrupt (EOI) */
-
#endif
diff --git a/c/src/lib/libbsp/i386/shared/irq/irq_init.c b/c/src/lib/libbsp/i386/shared/irq/irq_init.c
index 7a54329082..61969cf182 100644
--- a/c/src/lib/libbsp/i386/shared/irq/irq_init.c
+++ b/c/src/lib/libbsp/i386/shared/irq/irq_init.c
@@ -49,7 +49,6 @@ static void nop_func(){}
*/
static int not_connected() {return 0;}
-
static rtems_raw_irq_connect_data idtHdl[IDT_SIZE];
/*
@@ -100,8 +99,6 @@ static rtems_irq_prio irqPrioTable[BSP_IRQ_LINES_NUMBER]={
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
-
-
static interrupt_gate_descriptor idtEntry;
static rtems_irq_global_settings initial_config;
@@ -129,7 +126,6 @@ void rtems_irq_mngt_init()
while(1);
}
-
_CPU_ISR_Disable(level);
/*
diff --git a/c/src/lib/libbsp/i386/shared/pci/pcibios.c b/c/src/lib/libbsp/i386/shared/pci/pcibios.c
index 1cece0fb86..052be69e23 100644
--- a/c/src/lib/libbsp/i386/shared/pci/pcibios.c
+++ b/c/src/lib/libbsp/i386/shared/pci/pcibios.c
@@ -18,7 +18,6 @@
* is flat and that stack is big enough
*/
-
static int pcibInitialized = 0;
static unsigned int pcibEntry;
@@ -211,14 +210,10 @@ pcib_find_by_class(int classCode, int idx, int *sig)
return PCIB_ERR_SUCCESS;
}
-
-
-
#define PCI_MULTI_FUNCTION 0x80
#define PCI_MAX_DEVICES 16
#define PCI_MAX_FUNCTIONS 8
-
int
BSP_pciFindDevice( unsigned short vendorid, unsigned short deviceid,
int instance, int *pbus, int *pdev, int *pfun )
@@ -273,9 +268,6 @@ BSP_pciFindDevice( unsigned short vendorid, unsigned short deviceid,
return -1;
}
-
-
-
/*
* Generate Special Cycle
*/
@@ -306,7 +298,6 @@ pcib_special_cycle(int busNo, int data)
return pcib_convert_err((pcibExchg[0] >> 8) & 0xff);
}
-
/*
* Read byte from config space
*/
@@ -344,7 +335,6 @@ pcib_conf_read8(int sig, int off, unsigned char *data)
return PCIB_ERR_SUCCESS;
}
-
/*
* Read word from config space
*/
@@ -382,7 +372,6 @@ pcib_conf_read16(int sig, int off, unsigned short *data)
return PCIB_ERR_SUCCESS;
}
-
/*
* Read dword from config space
*/
@@ -420,7 +409,6 @@ pcib_conf_read32(int sig, int off, unsigned int *data)
return PCIB_ERR_SUCCESS;
}
-
/*
* Write byte into config space
*/
@@ -483,8 +471,6 @@ pcib_conf_write16(int sig, int off, unsigned int data)
return pcib_convert_err((pcibExchg[0] >> 8) & 0xff);
}
-
-
/*
* Write dword into config space
*/
@@ -516,7 +502,6 @@ pcib_conf_write32(int sig, int off, unsigned int data)
return pcib_convert_err((pcibExchg[0] >> 8) & 0xff);
}
-
static int
pcib_convert_err(int err)
{
diff --git a/c/src/lib/libbsp/i386/ts_386ex/clock/ckinit.c b/c/src/lib/libbsp/i386/ts_386ex/clock/ckinit.c
index e890139db5..94288f9f31 100644
--- a/c/src/lib/libbsp/i386/ts_386ex/clock/ckinit.c
+++ b/c/src/lib/libbsp/i386/ts_386ex/clock/ckinit.c
@@ -77,7 +77,6 @@ static rtems_irq_connect_data clockIrqData = {BSP_PERIODIC_TIMER,
ClockOff,
ClockIsOn};
-
rtems_device_driver Clock_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor,
diff --git a/c/src/lib/libbsp/i386/ts_386ex/clock/rtc.c b/c/src/lib/libbsp/i386/ts_386ex/clock/rtc.c
index 26c4c2056d..a6330fa929 100644
--- a/c/src/lib/libbsp/i386/ts_386ex/clock/rtc.c
+++ b/c/src/lib/libbsp/i386/ts_386ex/clock/rtc.c
@@ -31,7 +31,6 @@
| $Id$
+--------------------------------------------------------------------------*/
-
#include <string.h>
#include <bsp.h>
@@ -70,7 +69,6 @@
#define RTC_CENTURY 0x32 /* current century - increment in Dec99 */
-
/*-------------------------------------------------------------------------+
| Auxiliary Functions
+--------------------------------------------------------------------------*/
@@ -107,7 +105,6 @@ ytos(uint16_t y)
return ((y - 1970) * SECS_PER_REG_YEAR + (y - 1970 + 1) / 4 * SECS_PER_DAY);
} /* ytos */
-
/*-------------------------------------------------------------------------+
| Function: mtos
| Description: Convert months to seconds since January.
@@ -144,7 +141,6 @@ rtcin(uint8_t what)
return r;
} /* rtcin */
-
/*-------------------------------------------------------------------------+
| Functions
+--------------------------------------------------------------------------*/
@@ -175,7 +171,6 @@ init_rtc(void)
printf("RTC BIOS diagnostic error %b\n", s, RTCDG_BITS); */
} /* init_rtc */
-
/*-------------------------------------------------------------------------+
| Function: rtc_read
| Description: Read present time from RTC and return it.
diff --git a/c/src/lib/libbsp/i386/ts_386ex/console/console.c b/c/src/lib/libbsp/i386/ts_386ex/console/console.c
index a101823370..f71476928d 100644
--- a/c/src/lib/libbsp/i386/ts_386ex/console/console.c
+++ b/c/src/lib/libbsp/i386/ts_386ex/console/console.c
@@ -158,7 +158,6 @@ console_initialize(rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
} /* console_initialize */
-
static int console_last_close(int major, int minor, void *arg)
{
BSP_remove_rtems_irq_handler (&console_isr_data);
@@ -225,7 +224,6 @@ console_close(rtems_device_major_number major,
} /* console_close */
-
/*-------------------------------------------------------------------------+
| Console device driver READ entry point.
+--------------------------------------------------------------------------+
@@ -247,7 +245,6 @@ console_read(rtems_device_major_number major,
} /* console_read */
-
/*-------------------------------------------------------------------------+
| Console device driver WRITE entry point.
+--------------------------------------------------------------------------+
@@ -262,8 +259,6 @@ console_write(rtems_device_major_number major,
} /* console_write */
-
-
/*
* Handle ioctl request.
*/
diff --git a/c/src/lib/libbsp/i386/ts_386ex/include/bsp.h b/c/src/lib/libbsp/i386/ts_386ex/include/bsp.h
index ae38792de6..b3243867c9 100644
--- a/c/src/lib/libbsp/i386/ts_386ex/include/bsp.h
+++ b/c/src/lib/libbsp/i386/ts_386ex/include/bsp.h
@@ -11,7 +11,6 @@
* $Id$
*/
-
#ifndef __TS386_h
#define __TS386_h
@@ -99,7 +98,6 @@ extern void Wait_X_ms (unsigned);
#define MUST_WAIT_FOR_INTERRUTPT 0
-
#define Install_tm27_vector(handler) \
{ \
rtems_isr_entry dummy; \
@@ -147,7 +145,6 @@ extern void Wait_X_ms (unsigned);
#define Is_tx_ready( _status ) ( (_status) & 0x40 )
-
#define Is_rx_ready( _status ) ( (_status) & 0x01 )
/* Structures */
diff --git a/c/src/lib/libbsp/i386/ts_386ex/start/80386ex.h b/c/src/lib/libbsp/i386/ts_386ex/start/80386ex.h
index a62f08f425..430491c240 100644
--- a/c/src/lib/libbsp/i386/ts_386ex/start/80386ex.h
+++ b/c/src/lib/libbsp/i386/ts_386ex/start/80386ex.h
@@ -47,7 +47,6 @@
#define OCW3MDOS 0x0020
#define OCW3SDOS 0x00A0
-
/* CONFIGURATION Registers */
#define DMACFG 0xF830
#define INTCFG 0xF832
diff --git a/c/src/lib/libbsp/i386/ts_386ex/start/start.S b/c/src/lib/libbsp/i386/ts_386ex/start/start.S
index 53c28c5585..0621d2efea 100644
--- a/c/src/lib/libbsp/i386/ts_386ex/start/start.S
+++ b/c/src/lib/libbsp/i386/ts_386ex/start/start.S
@@ -49,7 +49,6 @@
PUBLIC( SYM(_init_i386ex) )
-
.section .initial, "ax"
/*
@@ -273,7 +272,6 @@ SYM(InitTimer):
SetExRegByte(TMR0 , 0x00 ) # sfa
SetExRegByte(TMR0 , 0x00 ) # sfa
-
SetExRegByte(TMRCON , 0x70 ) # mode 0 disables on Gate= Vcc
SetExRegByte(TMR1 , 0x00 ) # sfa
SetExRegByte(TMR1 , 0x00 ) # sfa
@@ -478,7 +476,6 @@ SYM (zero_bss):
cli # stops interrupts after hlt!
hlt # shutdown
-
.balign 4 # align tables to 4 byte boundary
SYM(IDTR): DESC3( SYM(Interrupt_descriptor_table), 0x07ff );
@@ -488,7 +485,6 @@ SYM(Interrupt_descriptor_table): /* Now in data section */
.word 0,0,0,0
.endr
-
/*
* Use the first (null) entry in the the GDT as a self-pointer for the GDTR.
* (looks like a common trick)
diff --git a/c/src/lib/libbsp/i386/ts_386ex/startup/bspstart.c b/c/src/lib/libbsp/i386/ts_386ex/startup/bspstart.c
index e84334c41c..23e2fc17fb 100644
--- a/c/src/lib/libbsp/i386/ts_386ex/startup/bspstart.c
+++ b/c/src/lib/libbsp/i386/ts_386ex/startup/bspstart.c
@@ -78,7 +78,6 @@ void bsp_pretasking_hook(void)
bsp_libc_init((void *) heap_start, heap_size, 0);
-
#ifdef RTEMS_DEBUG
rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
#endif
diff --git a/c/src/lib/libbsp/i386/ts_386ex/timer/timer.c b/c/src/lib/libbsp/i386/ts_386ex/timer/timer.c
index 3125165466..050ab2c030 100644
--- a/c/src/lib/libbsp/i386/ts_386ex/timer/timer.c
+++ b/c/src/lib/libbsp/i386/ts_386ex/timer/timer.c
@@ -23,7 +23,6 @@
* $Id$
*/
-
#include <rtems.h>
#include <bsp.h>
#include <stdlib.h>
@@ -130,7 +129,6 @@ void Timer_initialize(void)
Ttimer_val = 0;
}
-
#define AVG_OVERHEAD 3 /* It typically takes 3.0 microseconds */
/* (3 ticks) to start/stop the timer. */
#define LEAST_VALID 4 /* Don't trust a value lower than this */
diff --git a/c/src/lib/libbsp/i386/ts_386ex/tools/debug_c/serial_gdb.c b/c/src/lib/libbsp/i386/ts_386ex/tools/debug_c/serial_gdb.c
index 0f5099a3e8..395b606660 100644
--- a/c/src/lib/libbsp/i386/ts_386ex/tools/debug_c/serial_gdb.c
+++ b/c/src/lib/libbsp/i386/ts_386ex/tools/debug_c/serial_gdb.c
@@ -21,7 +21,6 @@ void i386_stub_glue_init(int);
void i386_stub_glue_init_breakin(void);
void set_debug_traps(void);
-
/* Init GDB glue */
void init_serial_gdb( void )
@@ -48,7 +47,6 @@ void init_serial_gdb( void )
/* Init GDB stub itself */
set_debug_traps();
-
printk( "Remote GDB: waiting for remote connection...\n" );
/*
diff --git a/c/src/lib/libbsp/i960/cvme961/clock/ckinit.c b/c/src/lib/libbsp/i960/cvme961/clock/ckinit.c
index 99ec6a34e6..d47c3450a2 100644
--- a/c/src/lib/libbsp/i960/cvme961/clock/ckinit.c
+++ b/c/src/lib/libbsp/i960/cvme961/clock/ckinit.c
@@ -38,7 +38,6 @@ void Clock_exit( void );
rtems_device_major_number rtems_clock_major = ~0;
rtems_device_minor_number rtems_clock_minor;
-
/* this is later in the file to avoid it being inlined */
rtems_isr Clock_isr( rtems_vector_number vector );
diff --git a/c/src/lib/libbsp/i960/cvme961/console/console.c b/c/src/lib/libbsp/i960/cvme961/console/console.c
index ccf5df7258..958d4e1638 100644
--- a/c/src/lib/libbsp/i960/cvme961/console/console.c
+++ b/c/src/lib/libbsp/i960/cvme961/console/console.c
@@ -86,7 +86,6 @@ char inbyte( void )
return ch;
}
-
/* outbyte
*
* This routine transmits a character out the console using NINDY.
diff --git a/c/src/lib/libbsp/i960/cvme961/shmsupp/getcfg.c b/c/src/lib/libbsp/i960/cvme961/shmsupp/getcfg.c
index 6be8343522..ae29aa31dc 100644
--- a/c/src/lib/libbsp/i960/cvme961/shmsupp/getcfg.c
+++ b/c/src/lib/libbsp/i960/cvme961/shmsupp/getcfg.c
@@ -50,7 +50,6 @@
#define INTERRUPT 1 /* CVME961 target supports both */
#define POLLING 0 /* polling and interrupt modes */
-
shm_config_table BSP_shm_cfgtbl;
void Shm_Get_configuration(
diff --git a/c/src/lib/libbsp/i960/cvme961/timer/timer.c b/c/src/lib/libbsp/i960/cvme961/timer/timer.c
index 6cfd1c762e..a3da5e810f 100644
--- a/c/src/lib/libbsp/i960/cvme961/timer/timer.c
+++ b/c/src/lib/libbsp/i960/cvme961/timer/timer.c
@@ -25,7 +25,6 @@
* $Id$
*/
-
#include <rtems.h>
#include <bsp.h>
#include <rtems/zilog/z8536.h>
diff --git a/c/src/lib/libbsp/i960/i960sim/clock/clockdrv.c b/c/src/lib/libbsp/i960/i960sim/clock/clockdrv.c
index c49150fba6..f61b66e42d 100644
--- a/c/src/lib/libbsp/i960/i960sim/clock/clockdrv.c
+++ b/c/src/lib/libbsp/i960/i960sim/clock/clockdrv.c
@@ -14,7 +14,6 @@
#define Clock_driver_support_install_isr( _new, _old ) \
do { _old = 0; } while(0)
-
#define Clock_driver_support_initialize_hardware()
#define Clock_driver_support_shutdown_hardware()
diff --git a/c/src/lib/libbsp/i960/i960sim/console/mon-syscalls.S b/c/src/lib/libbsp/i960/i960sim/console/mon-syscalls.S
index e844274fc8..0c6dc97f66 100644
--- a/c/src/lib/libbsp/i960/i960sim/console/mon-syscalls.S
+++ b/c/src/lib/libbsp/i960/i960sim/console/mon-syscalls.S
@@ -11,8 +11,6 @@
#define ENTRY(name) \
_ENTRY(_C_LABEL(name))
-
-
ENTRY(_sys_exit)
lda 257,g13
calls g13
diff --git a/c/src/lib/libbsp/i960/i960sim/start/start.c b/c/src/lib/libbsp/i960/i960sim/start/start.c
index d6b0f9aafe..2b7a83e64c 100644
--- a/c/src/lib/libbsp/i960/i960sim/start/start.c
+++ b/c/src/lib/libbsp/i960/i960sim/start/start.c
@@ -32,7 +32,6 @@ void _start(void)
__asm__ volatile ("mov %0,sp" : : "d" (ptr + STACK_ALIGN));
__asm__ volatile ("mov %0,fp" : : "d" (ptr));
-
init_Cregs();
boot_card();
_sys_exit(0);
diff --git a/c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c b/c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c
index 8afdc4a320..f51421af68 100644
--- a/c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c
+++ b/c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c
@@ -58,7 +58,6 @@ void Install_clock(
volatile unsigned int *imsk = (unsigned int *) IMSK_ADDR;
void clockHandler();
-
Clock_driver_ticks = 0;
Reload_Clock_isrs = BSP_Configuration.microseconds_per_tick / 1000;
Clock_isrs = Reload_Clock_isrs;
diff --git a/c/src/lib/libbsp/i960/rxgen960/console/console.c b/c/src/lib/libbsp/i960/rxgen960/console/console.c
index 9e24c8c7a1..959a91deae 100644
--- a/c/src/lib/libbsp/i960/rxgen960/console/console.c
+++ b/c/src/lib/libbsp/i960/rxgen960/console/console.c
@@ -42,7 +42,6 @@ rtems_device_driver console_initialize(
if ( console_pmr_init(*(uint32_t*)arg) )
return RTEMS_INVALID_NUMBER;
-
status = rtems_io_register_name(
"/dev/console",
major,
@@ -55,7 +54,6 @@ rtems_device_driver console_initialize(
return RTEMS_SUCCESSFUL;
}
-
/* is_character_ready
*
* This routine returns TRUE if a character is available.
@@ -120,7 +118,6 @@ void outbyte( unsigned int minor,
outbyte( minor, '\r' );
}
-
/*
* Open entry point
*/
diff --git a/c/src/lib/libbsp/i960/rxgen960/console/serial.c b/c/src/lib/libbsp/i960/rxgen960/console/serial.c
index 9f1af9acec..2a1b061efe 100644
--- a/c/src/lib/libbsp/i960/rxgen960/console/serial.c
+++ b/c/src/lib/libbsp/i960/rxgen960/console/serial.c
@@ -5,7 +5,6 @@
#include "serial.h"
#include "rtems.h"
-
typedef unsigned char uchar ; /* Abbreviations */
typedef unsigned short ushort ;
typedef unsigned long ulong ;
@@ -22,8 +21,6 @@ static struct{
char in_line[128];
}cons_input[MAX_CONSOLE];
-
-
/* This uses the message out and in buffers as serial emulator.
Pretty stupid eh?
*/
@@ -35,12 +32,9 @@ static struct{
static volatile unsigned int * uart = { uart1 };
static volatile unsigned int * uart_rx = { uart1_rx };
-
extern void display_msg(void);
/*extern int sprintf();*/
-
-
int
console_uartinit(unsigned int BAUDRate)
{
@@ -51,7 +45,6 @@ console_uartinit(unsigned int BAUDRate)
return(0);
}
-
/* Introduce a new console channel */
console_new(char * name)
{
@@ -72,8 +65,6 @@ console_new(char * name)
#endif
}
-
-
/***********************************************************************
*** Transmit character to host.
*** put the console ID in upper byte
@@ -127,7 +118,6 @@ wait:
}
-
/*
* putnum -- print a 32 bit number in hex
*/
@@ -305,7 +295,6 @@ int console_sps_getc()
return ch;
}
-
void cons_isr()
{
unsigned int i, chin, consinx, st;
diff --git a/c/src/lib/libbsp/i960/rxgen960/start/rxgen_romld.S b/c/src/lib/libbsp/i960/rxgen960/start/rxgen_romld.S
index de62be173d..a5fd26816c 100644
--- a/c/src/lib/libbsp/i960/rxgen960/start/rxgen_romld.S
+++ b/c/src/lib/libbsp/i960/rxgen960/start/rxgen_romld.S
@@ -108,8 +108,6 @@ _romExit :
// fmark
b _romExit
-
-
SYM(led_array):
.byte 99
.byte 1
@@ -125,7 +123,6 @@ SYM(led_array):
.byte 0xb
.byte 0xc
-
/* just to compile and link application XXX JOEL */
.globl _faultStart
.globl _faultEnd
diff --git a/c/src/lib/libbsp/i960/rxgen960/startup/asmstub.S b/c/src/lib/libbsp/i960/rxgen960/startup/asmstub.S
index 82a9566b01..2a9327b54f 100644
--- a/c/src/lib/libbsp/i960/rxgen960/startup/asmstub.S
+++ b/c/src/lib/libbsp/i960/rxgen960/startup/asmstub.S
@@ -85,7 +85,6 @@ _asm_imask:
/* alterbit g0, sf1, sf1 XXX JRS */
ret
-
########################################################################
#
# PURPOSE: get the value of the interrupt mask register
diff --git a/c/src/lib/libbsp/i960/rxgen960/startup/bspstart.c b/c/src/lib/libbsp/i960/rxgen960/startup/bspstart.c
index 17e1b99ca8..de6651669c 100644
--- a/c/src/lib/libbsp/i960/rxgen960/startup/bspstart.c
+++ b/c/src/lib/libbsp/i960/rxgen960/startup/bspstart.c
@@ -77,14 +77,12 @@ bsp_pretasking_hook(void)
bsp_libc_init((void *) heap_start, 64 * 1024, 0);
-
#ifdef RTEMS_DEBUG
rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
#endif
*(unsigned char *)(0x120f) = 0xf;
}
-
/* we need to have the top of memory remembered later to start libc_init with
the correct values
*/
@@ -132,7 +130,6 @@ bsp_start(void)
BSP_Configuration.work_space_start = (void *) top_of_used_memory;
top_of_used_memory += (BSP_Configuration.work_space_size + 0x1000);
-
*(unsigned char *)(0x120f) = 0x0a;
return 0;
diff --git a/c/src/lib/libbsp/i960/rxgen960/startup/cntrltbl.c b/c/src/lib/libbsp/i960/rxgen960/startup/cntrltbl.c
index 826e569cde..266f4e878a 100644
--- a/c/src/lib/libbsp/i960/rxgen960/startup/cntrltbl.c
+++ b/c/src/lib/libbsp/i960/rxgen960/startup/cntrltbl.c
@@ -18,7 +18,6 @@
#define IMAP2 0xA90000
#define ICON (VECTOR_CACHE | MSK_UNCHNG | I_ENABLE)
-
/* Bus configuration */
#define RP_CONFIG_REGS I960RP_BUS_WIDTH_32
#define FLASH I960RP_BUS_WIDTH_8
@@ -44,8 +43,6 @@
/*Bus Control Initial value */
#define BCON CONF_TBL_VALID
-
-
ControlTblEntry controlTbl[] = {
/* --group 0 -- */
0,
diff --git a/c/src/lib/libbsp/i960/rxgen960/startup/cntrltbl.h b/c/src/lib/libbsp/i960/rxgen960/startup/cntrltbl.h
index 416164a957..5c40d75430 100644
--- a/c/src/lib/libbsp/i960/rxgen960/startup/cntrltbl.h
+++ b/c/src/lib/libbsp/i960/rxgen960/startup/cntrltbl.h
@@ -32,8 +32,6 @@ extern ControlTblEntry rom_controlTbl[];
#define VECTOR_CACHE (0x1<<13)
-
-
/* BreakPoint Control Register Initial.
*/
#define BPCON 0
@@ -43,8 +41,6 @@ extern ControlTblEntry rom_controlTbl[];
#define PROTECT_RAM 0x2
#define PROTECT_RAM_SUP 0x4
-
-
#endif
/*-------------*/
/* End of file */
diff --git a/c/src/lib/libbsp/i960/rxgen960/startup/intrtbl.c b/c/src/lib/libbsp/i960/rxgen960/startup/intrtbl.c
index b14c59fcdb..510ecc556e 100644
--- a/c/src/lib/libbsp/i960/rxgen960/startup/intrtbl.c
+++ b/c/src/lib/libbsp/i960/rxgen960/startup/intrtbl.c
@@ -10,7 +10,6 @@
#include "intrtbl.h"
/*-------------------------------------*/
-
/* Interrupt Table. Dedicated Interrupts are cached.
* So NMI handler has to be defined here.
*/
diff --git a/c/src/lib/libbsp/i960/rxgen960/startup/prcb.c b/c/src/lib/libbsp/i960/rxgen960/startup/prcb.c
index b14512cc79..49eeb6c247 100644
--- a/c/src/lib/libbsp/i960/rxgen960/startup/prcb.c
+++ b/c/src/lib/libbsp/i960/rxgen960/startup/prcb.c
@@ -38,7 +38,6 @@
*/
#define REG_CACHE_CONFIG 0x000
-
struct PRCB ram_prcb = {
& faultTbl[0], /* Fault Table Base */
& controlTbl[0], /* Control Table Base */
diff --git a/c/src/lib/libbsp/i960/rxgen960/startup/rom_cntrltbl.c b/c/src/lib/libbsp/i960/rxgen960/startup/rom_cntrltbl.c
index b9811f65bf..a9f3aea9fa 100644
--- a/c/src/lib/libbsp/i960/rxgen960/startup/rom_cntrltbl.c
+++ b/c/src/lib/libbsp/i960/rxgen960/startup/rom_cntrltbl.c
@@ -18,7 +18,6 @@
#define IMAP2 0xA90000
#define ICON (VECTOR_CACHE | MSK_UNCHNG | I_ENABLE)
-
/* Bus configuration */
#define RP_CONFIG_REGS I960RP_BUS_WIDTH_32
#define FLASH I960RP_BUS_WIDTH_8
@@ -44,8 +43,6 @@
/*Bus Control Initial value */
#define BCON CONF_TBL_VALID
-
-
ControlTblEntry rom_controlTbl[] = {
/* --group 0 -- */
0,
diff --git a/c/src/lib/libbsp/i960/rxgen960/startup/rom_ibr.c b/c/src/lib/libbsp/i960/rxgen960/startup/rom_ibr.c
index becc0b6843..b5e9d3ef52 100644
--- a/c/src/lib/libbsp/i960/rxgen960/startup/rom_ibr.c
+++ b/c/src/lib/libbsp/i960/rxgen960/startup/rom_ibr.c
@@ -14,7 +14,6 @@
/*-------------------------------------*/
extern void romStart(void);
-
struct IBR rom_ibr = {
{((REGION_BOOT_CONFIG) & 0xff), /* Initial Bus Configuration */
((REGION_BOOT_CONFIG) >> 8) & 0xff,
diff --git a/c/src/lib/libbsp/i960/rxgen960/startup/rom_prcb.c b/c/src/lib/libbsp/i960/rxgen960/startup/rom_prcb.c
index 0f11c884d8..eb45aa108b 100644
--- a/c/src/lib/libbsp/i960/rxgen960/startup/rom_prcb.c
+++ b/c/src/lib/libbsp/i960/rxgen960/startup/rom_prcb.c
@@ -39,7 +39,6 @@ extern SystemTbl nulsystemTbl;
*/
#define REG_CACHE_CONFIG 0x200
-
struct PRCB rom_prcb = {
& faultTbl[0], /* Fault Table Base */
& rom_controlTbl[0], /* Control Table Base */
diff --git a/c/src/lib/libbsp/i960/rxgen960/startup/setvec.c b/c/src/lib/libbsp/i960/rxgen960/startup/setvec.c
index 8d07d688a5..e017e81a70 100644
--- a/c/src/lib/libbsp/i960/rxgen960/startup/setvec.c
+++ b/c/src/lib/libbsp/i960/rxgen960/startup/setvec.c
@@ -111,7 +111,6 @@ i960_isr_entry set_vector( /* returns old vector */
volatile unsigned int *ipnd = (unsigned int *) IPND_ADDR;
volatile unsigned int *imsk = (unsigned int *) IMSK_ADDR;
-
cached_intr_tbl = (i960_isr_entry *) 0;
intr_tbl = (i960_isr_entry *) Prcb->intr_tbl;
diff --git a/c/src/lib/libbsp/i960/rxgen960/timer/timer.c b/c/src/lib/libbsp/i960/rxgen960/timer/timer.c
index e4f8a7d63b..1b99f73dcb 100644
--- a/c/src/lib/libbsp/i960/rxgen960/timer/timer.c
+++ b/c/src/lib/libbsp/i960/rxgen960/timer/timer.c
@@ -25,12 +25,10 @@
* $Id$
*/
-
#include <bsp.h>
#include <stdlib.h>
#include <rtems/libio.h>
-
#define TIMER_VECTOR 34
int Ttimer_val;
@@ -58,7 +56,6 @@ void Timer_initialize()
*tmr1 = BUS_CLOCK_1 | TMR_AUTO_RELOAD;
*icon = 0x6000;
-
set_vector( (((unsigned int) timerisr) | 0x2), TIMER_VECTOR, 1 );
*imap2 = (*imap2 & 0xff0fffff) | (((TIMER_VECTOR >> 4) & 0xf) << 20);
@@ -76,8 +73,6 @@ void Timer_initialize()
}
-
-
rtems_isr timerisr(
rtems_vector_number vector
)
diff --git a/c/src/lib/libbsp/m68k/dmv152/configure.ac b/c/src/lib/libbsp/m68k/dmv152/configure.ac
index f15b64dc4e..9dc8c80b77 100644
--- a/c/src/lib/libbsp/m68k/dmv152/configure.ac
+++ b/c/src/lib/libbsp/m68k/dmv152/configure.ac
@@ -23,7 +23,6 @@ RTEMS_BSPOPTS_SET([USE_CHANNEL_B],[*],[0])
RTEMS_BSPOPTS_HELP([USE_CHANNEL_B],
[set to 1 to indicate this serial port to be used as RTEMS_CONSOLE])
-
# Explicitly list all Makefiles here
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
diff --git a/c/src/lib/libbsp/m68k/dmv152/console/console.c b/c/src/lib/libbsp/m68k/dmv152/console/console.c
index 78ceca83c1..e9f708d2b2 100644
--- a/c/src/lib/libbsp/m68k/dmv152/console/console.c
+++ b/c/src/lib/libbsp/m68k/dmv152/console/console.c
@@ -111,7 +111,6 @@ void DEBUG_puts(
/* should enable interrupts here */
}
-
/*
* Console Termios Support Entry Points
*
diff --git a/c/src/lib/libbsp/m68k/dmv152/timer/timer.c b/c/src/lib/libbsp/m68k/dmv152/timer/timer.c
index a16c37a0ae..cc315e670d 100644
--- a/c/src/lib/libbsp/m68k/dmv152/timer/timer.c
+++ b/c/src/lib/libbsp/m68k/dmv152/timer/timer.c
@@ -17,7 +17,6 @@
* $Id$
*/
-
#include <rtems.h>
#include <bsp.h>
diff --git a/c/src/lib/libbsp/m68k/gen68302/console/console.c b/c/src/lib/libbsp/m68k/gen68302/console/console.c
index 84363fb735..8e98d42ec2 100644
--- a/c/src/lib/libbsp/m68k/gen68302/console/console.c
+++ b/c/src/lib/libbsp/m68k/gen68302/console/console.c
@@ -122,7 +122,6 @@ rtems_boolean is_character_ready(
}
}
-
/* inbyte
*
* Receive a character from the MC68302's SCC2.
@@ -155,7 +154,6 @@ char inbyte( void )
return ch;
}
-
/* outbyte
*
* Transmit a character out on the MC68302's SCC2.
diff --git a/c/src/lib/libbsp/m68k/gen68302/include/m302_int.h b/c/src/lib/libbsp/m68k/gen68302/include/m302_int.h
index 0bbe9515bc..3c7f91c90a 100644
--- a/c/src/lib/libbsp/m68k/gen68302/include/m302_int.h
+++ b/c/src/lib/libbsp/m68k/gen68302/include/m302_int.h
@@ -43,7 +43,6 @@
#define EDMA_BLIM_MASK 0x0007
#define EDMA_BLIM_8ACCESS 0x0003
-
/* Ethernet Maximum Receive Buffer Length EMRBLR */
#define EMRBLR_MASK 0x07FFE
@@ -104,7 +103,6 @@
#define AR_CNTRL_MULTI_MASK (AR_CNTRL_BIT_MULTI0 | AR_CNTRL_BIT_MULTI1)
-
/* Ethernet buffer Status TX */
#define BUF_STAT_CARRIER_LOST 0x0001
#define BUF_STAT_UNDERRUN 0x0002
@@ -120,7 +118,6 @@
#define BUF_STAT_TO 0x4000
#define BUF_STAT_READY 0x8000
-
/* Ethernet buffer Status RX */
#define BUF_STAT_COLLISION 0x0001
#define BUF_STAT_OVERRUN 0x0002
@@ -280,8 +277,6 @@ struct m68302_imp {
uchar reserved_3[0x74A];
-
-
/****************** 68 EN 302 specific registers **********************/
/** only available here if
M68302_INTERNAL_RAM_BASE_ADD+0x1000=M68EN302_INTERNAL_RAM_BASE_ADD*/
@@ -303,7 +298,6 @@ struct m68302_imp {
uchar dram_reserved[0x7E8];
-
/* Ethernet Controller Registers */
ushort ecntrl; /* Ethernet Control Register */
@@ -387,7 +381,6 @@ struct m68302_imp {
#define M68302imp_sccm(i) (M68302imp_ scc_regs[i].sccm)
#define M68302imp_sccs(i) (M68302imp_ scc_regs[i].sccs)
-
/*----------------------------------------------------------------------------*/
#define M68en302imp_mbc (M68302imp_ mbc)
@@ -399,7 +392,6 @@ struct m68302_imp {
#define M68en302imp_drfrsh (M68302imp_ drfrsh)
#define M68en302imp_dba(i) (M68302imp_ dba[i])
-
#define M68en302imp_ecntrl (M68302imp_ ecntrl)
#define M68en302imp_edma (M68302imp_ edma)
#define M68en302imp_emrblr (M68302imp_ emrblr)
@@ -517,7 +509,6 @@ struct m68302_imp {
#define M68302_CS_WRITE_ONLY 0x22 /* write only memory access */
#define M68302_CS_READ_AND_WRITE 0x00 /* read and write memory access */
-
#define M68302_cs_install(cs_nb,base_add,range,nb_wait_state,read_write) \
do { \
M68302imp_cs_option(cs_nb) = (((~(range - 1)) >> 11) & 0x1FFC) | \
diff --git a/c/src/lib/libbsp/m68k/gen68302/network/network.c b/c/src/lib/libbsp/m68k/gen68302/network/network.c
index b1d47be756..41614f0fc8 100644
--- a/c/src/lib/libbsp/m68k/gen68302/network/network.c
+++ b/c/src/lib/libbsp/m68k/gen68302/network/network.c
@@ -158,15 +158,12 @@ m302Enet_initialize_hardware (struct scc_softc *sc)
#define DSQE 0x0010
#define FDE 0x0020
-
-
/*
* standard loopback
*/
M68302imp_port_data (1) &= ~(LBK);
M68302imp_port_data (1) |= (FDE);
-
M68en302imp_ecntrl=0x0001;
/*
* Set dma configuration status register EDMA
@@ -189,7 +186,6 @@ m302Enet_initialize_hardware (struct scc_softc *sc)
*/
M68en302imp_intr_vect = M302_ETHER_IVECTOR;
-
M68en302imp_intr_mask=0x0;
/*
@@ -232,13 +228,11 @@ m302Enet_initialize_hardware (struct scc_softc *sc)
cam[5] = (hwaddr[2] << 8) | hwaddr[3];
cam[6] = (hwaddr[4] << 8) | hwaddr[5];
-
/*
* Set receiver and transmitter buffer descriptor bases
*/
a_bd = M68302imp_a_eth_bd (0); /* point to first BD */
-
for (i=0;i<128;i++){
M68302_scc_bd_stat_ctrl (a_bd + i) = 0;
@@ -246,7 +240,6 @@ m302Enet_initialize_hardware (struct scc_softc *sc)
M68302_scc_bd_p_buffer (a_bd + i) = NULL;
}
-
sc->txBdBase = M68302imp_a_eth_bd ( 0 ); /* point to first BD */
sc->rxBdBase = M68302imp_a_eth_bd ( sc->txBdCount); /* point to first RX BD atfer all TX*/
@@ -306,7 +299,6 @@ m302Enet_retire_tx_bd (struct scc_softc *sc)
BUF_STAT_UNDERRUN)) {
int j;
-
if (status & BUF_STAT_LATE_COLLISION)
sc->txLateCollision++;
if (status & BUF_STAT_RETRY_LIMIT)
@@ -403,7 +395,6 @@ scc_rxDaemon (void *arg)
sc->rxMbuf[rxBdIndex] = m;
rxBd->p_buffer = mtod (m, void *);
-
if (++rxBdIndex == sc->rxBdCount) {
rxBd->stat_ctrl = BUF_STAT_EMPTY | BUF_STAT_INTERRUPT | BUF_STAT_WRAP;
break;
@@ -452,7 +443,6 @@ scc_rxDaemon (void *arg)
}
}
-
/*
* Check that packet is valid
*/
@@ -777,7 +767,6 @@ scc_init (void *arg)
*/
m302Enet_initialize_hardware (sc);
-
sc->txDaemonTid = rtems_bsdnet_newproc ("SCtx", 4096, scc_txDaemon, sc);
sc->rxDaemonTid = rtems_bsdnet_newproc ("SCrx", 4096, scc_rxDaemon, sc);
@@ -821,7 +810,6 @@ scc_stop (struct scc_softc *sc)
}
-
/*
* Show interface statistics
*/
@@ -903,7 +891,6 @@ scc_ioctl (struct ifnet *ifp, int command, caddr_t data)
}
-
/*
* Attach an SCC driver to the system
*/
diff --git a/c/src/lib/libbsp/m68k/gen68302/start/start.S b/c/src/lib/libbsp/m68k/gen68302/start/start.S
index c6ade9af55..8c2a6fe6bc 100644
--- a/c/src/lib/libbsp/m68k/gen68302/start/start.S
+++ b/c/src/lib/libbsp/m68k/gen68302/start/start.S
@@ -40,7 +40,6 @@
.set tmpSRAM_BASE, 0x400000 | start of temporary SRAM
.set FLASH_BASE, 0xc00000 | start of FLASH''s normal location
-
BEGIN_CODE
PUBLIC (M68Kvec) | Vector Table
SYM (M68Kvec): | standard location for vectors
@@ -232,7 +231,6 @@ Bad: bra Bad
nop
END_CODE
-
BEGIN_DATA
PUBLIC (start_frame)
@@ -257,6 +255,5 @@ SYM (environ):
PUBLIC (stack_size)
.set SYM (stack_size),0x1000
-
END_DATA
END
diff --git a/c/src/lib/libbsp/m68k/gen68302/timer/timer.c b/c/src/lib/libbsp/m68k/gen68302/timer/timer.c
index b3927487c7..f69569c174 100644
--- a/c/src/lib/libbsp/m68k/gen68302/timer/timer.c
+++ b/c/src/lib/libbsp/m68k/gen68302/timer/timer.c
@@ -19,12 +19,10 @@
* $Id$
*/
-
#include <rtems.h>
#include <bsp.h>
#include <rtems/m68k/m68302.h>
-
#define TMR2_VAL 0x071b /* Timer mode register
* (section 3.5.2.1 in 68302 manual)
* 15-8: "7" prescaler divide by 8 (x+1)
@@ -110,7 +108,6 @@ int Read_timer( void )
return (total - AVG_OVERHEAD) >> 1;
}
-
/*
* Empty function call used in loops to measure basic cost of looping
* in Timing Test Suite.
diff --git a/c/src/lib/libbsp/m68k/gen68340/console/Modif_cpu_asm.S b/c/src/lib/libbsp/m68k/gen68340/console/Modif_cpu_asm.S
index 3895962722..bc6176c59f 100644
--- a/c/src/lib/libbsp/m68k/gen68340/console/Modif_cpu_asm.S
+++ b/c/src/lib/libbsp/m68k/gen68340/console/Modif_cpu_asm.S
@@ -15,7 +15,6 @@
* $Id$
*/
-
#include <rtems/asm.h>
.text
@@ -76,7 +75,6 @@ SYM (_Debug_ISR_Handler_Console):
movew a7@(SAVED+FVO_OFFSET),d0 | d0 = F/VO
andl #0x0fff,d0 | d0 = vector offset in vbr
-
#if ( CPU_HAS_SOFTWARE_INTERRUPT_STACK == 1 )
movew sr,d1 | Save status register
oriw #0x700,sr | Disable interrupts
@@ -147,7 +145,6 @@ SYM (_Debug_ISR_Handler_Console):
| while in interrupt handler?
beq Debug_exit | No, then Debug_exit
-
bframe: clrl SYM (_ISR_Signals_to_thread_executing)
| If sent, will be processed
#if ( M68K_HAS_SEPARATE_STACKS == 1 )
diff --git a/c/src/lib/libbsp/m68k/gen68340/include/m340timer.h b/c/src/lib/libbsp/m68k/gen68340/include/m340timer.h
index 4b0050b5d4..b829a23b17 100644
--- a/c/src/lib/libbsp/m68k/gen68340/include/m340timer.h
+++ b/c/src/lib/libbsp/m68k/gen68340/include/m340timer.h
@@ -77,5 +77,4 @@ extern void (*Restart_Check_B_Timer)();
#define m340_OUT (1<<9)
#define m340_COM (1<<8)
-
#endif
diff --git a/c/src/lib/libbsp/m68k/gen68340/start/start.S b/c/src/lib/libbsp/m68k/gen68340/start/start.S
index 1f2976f96e..aa5cdce516 100644
--- a/c/src/lib/libbsp/m68k/gen68340/start/start.S
+++ b/c/src/lib/libbsp/m68k/gen68340/start/start.S
@@ -622,7 +622,6 @@ _csepld_clear1:
moves.b REG_PDCS(crt0_glue),crt0_pdcs
/* move.b #0x3F,crt0_pdcs pour test */
-
/*---------------------------------------*/
/* -- EPLD chip-select initialization -- */
/*---------------------------------------*/
@@ -719,7 +718,6 @@ _init_cache_end:
move.l #68349,crt0_cpu_type
-
/* -- jump back to PROM -- */
jmp.l (_fill_test) | must be absolute long
@@ -762,7 +760,6 @@ _b_cs340:
move.b #0,crt0_csswitch | CPU
move.b #1,crt0_buswidth | 16 bits
-
/*-------------------------------------------------
fill RAM if COLDSTART
-------------------------------------------------*/
diff --git a/c/src/lib/libbsp/m68k/gen68340/start/startfor340only.S b/c/src/lib/libbsp/m68k/gen68340/start/startfor340only.S
index 1367314057..2a66ea2d90 100644
--- a/c/src/lib/libbsp/m68k/gen68340/start/startfor340only.S
+++ b/c/src/lib/libbsp/m68k/gen68340/start/startfor340only.S
@@ -335,7 +335,6 @@ _crt0_init_stack:
ds.l 0x1000
_crt0_init_stktop:
-
BEGIN_CODE
dc.l _crt0_init_stktop /* reset SP */
dc.l _crt0_cold_start /* reset PC */
diff --git a/c/src/lib/libbsp/m68k/gen68360/network/network.c b/c/src/lib/libbsp/m68k/gen68360/network/network.c
index 5c3f67d0f7..b69781e074 100644
--- a/c/src/lib/libbsp/m68k/gen68360/network/network.c
+++ b/c/src/lib/libbsp/m68k/gen68360/network/network.c
@@ -858,7 +858,6 @@ scc_stop (struct scc_softc *sc)
m360.scc1.gsmr_l &= ~0x30;
}
-
/*
* Show interface statistics
*/
diff --git a/c/src/lib/libbsp/m68k/gen68360/startup/bspstart.c b/c/src/lib/libbsp/m68k/gen68360/startup/bspstart.c
index daa16fec28..46a6c9ebea 100644
--- a/c/src/lib/libbsp/m68k/gen68360/startup/bspstart.c
+++ b/c/src/lib/libbsp/m68k/gen68360/startup/bspstart.c
@@ -58,7 +58,6 @@ void bsp_start( void )
* BSP, it is dynamically set in start.S.
*/
-
/*
* Allocate the memory for the RTEMS Work Space. This can come from
* a variety of places: hard coded address, malloc'ed from outside
diff --git a/c/src/lib/libbsp/m68k/idp/clock/ckinit.c b/c/src/lib/libbsp/m68k/idp/clock/ckinit.c
index 6838af3c9b..bf3f4df2d6 100644
--- a/c/src/lib/libbsp/m68k/idp/clock/ckinit.c
+++ b/c/src/lib/libbsp/m68k/idp/clock/ckinit.c
@@ -48,7 +48,6 @@ void Clock_exit( void );
rtems_device_major_number rtems_clock_major = ~0;
rtems_device_minor_number rtems_clock_minor;
-
/*
* ISR Handler
*
diff --git a/c/src/lib/libbsp/m68k/idp/console/console.c b/c/src/lib/libbsp/m68k/idp/console/console.c
index 6aa96bf5a7..5319aca174 100644
--- a/c/src/lib/libbsp/m68k/idp/console/console.c
+++ b/c/src/lib/libbsp/m68k/idp/console/console.c
@@ -74,7 +74,6 @@ rtems_device_driver console_initialize(
return RTEMS_SUCCESSFUL;
}
-
/* is_character_ready
*
* This routine returns TRUE if a character is available.
@@ -146,7 +145,6 @@ char inbyte(
return tmp_char;
}
-
/* outbyte
*
* This routine transmits a character out the M68681. It supports
diff --git a/c/src/lib/libbsp/m68k/idp/console/duart.c b/c/src/lib/libbsp/m68k/idp/console/duart.c
index 194b4ecc09..c8f0d20edb 100644
--- a/c/src/lib/libbsp/m68k/idp/console/duart.c
+++ b/c/src/lib/libbsp/m68k/idp/console/duart.c
@@ -152,7 +152,6 @@ volatile void init_pit()
*/
MC68681_WRITE(DUART_ADDR, MC68681_CLOCK_SELECT_REG_B, MC68681_BAUD_RATE_MASK_9600);
-
#define EIGHT_BITS_NO_PARITY
#ifdef EIGHT_BITS_NO_PARITY
/*
@@ -168,7 +167,6 @@ volatile void init_pit()
(MC68681_WITH_PARITY | MC68681_7BIT_CHARS) );
#endif
-
/*
* Set Stop Bit length to 1
* Disable Recieve and transmit on B
@@ -246,7 +244,6 @@ void transmit_char(char ch)
MC68681_WRITE(DUART_ADDR, MC68681_TRANSMIT_BUFFER_A, ch);
}
-
/*#####################################################################
# This is the routine that actually transmits a character one at a time
# This routine transmits on port B of the IDP board
diff --git a/c/src/lib/libbsp/m68k/idp/startup/bspstart.c b/c/src/lib/libbsp/m68k/idp/startup/bspstart.c
index 0675e666ca..6f08a45ff3 100644
--- a/c/src/lib/libbsp/m68k/idp/startup/bspstart.c
+++ b/c/src/lib/libbsp/m68k/idp/startup/bspstart.c
@@ -78,7 +78,6 @@ void bsp_start( void )
for ( index=2 ; index<=255 ; index++ )
M68Kvec[ index ] = monitors_vector_table[ 32 ];
-
M68Kvec[ 2 ] = monitors_vector_table[ 2 ]; /* bus error vector */
M68Kvec[ 4 ] = monitors_vector_table[ 4 ]; /* breakpoints vector */
M68Kvec[ 9 ] = monitors_vector_table[ 9 ]; /* trace vector */
diff --git a/c/src/lib/libbsp/m68k/idp/timer/timer.c b/c/src/lib/libbsp/m68k/idp/timer/timer.c
index 28f15ddbd2..934bdc9db4 100644
--- a/c/src/lib/libbsp/m68k/idp/timer/timer.c
+++ b/c/src/lib/libbsp/m68k/idp/timer/timer.c
@@ -25,7 +25,6 @@
* $Id$
*/
-
#include <rtems.h>
#include <bsp.h>
#include <rtems/motorola/mc68230.h>
diff --git a/c/src/lib/libbsp/m68k/mcf5206elite/console/console.c b/c/src/lib/libbsp/m68k/mcf5206elite/console/console.c
index c3cb1ae5bf..e4f7075154 100644
--- a/c/src/lib/libbsp/m68k/mcf5206elite/console/console.c
+++ b/c/src/lib/libbsp/m68k/mcf5206elite/console/console.c
@@ -21,7 +21,6 @@
#include "mcf5206/mcf5206e.h"
#include "mcf5206/mcfuart.h"
-
/* Descriptor structures for two on-chip UART channels */
static mcfuart uart[2];
diff --git a/c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2c.c b/c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2c.c
index 32c8809584..55773a479b 100644
--- a/c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2c.c
+++ b/c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2c.c
@@ -155,7 +155,6 @@ i2c_transfer_wait(i2c_bus_number bus, i2c_message *msg, int nmsg)
return I2C_SUCCESSFUL;
}
-
/* i2c_write --
* Send single message over specified I2C bus to addressed device and
* wait while transfer is finished.
diff --git a/c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2cdrv.c b/c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2cdrv.c
index 8850ab8aaa..b12c25c5c5 100644
--- a/c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2cdrv.c
+++ b/c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2cdrv.c
@@ -79,7 +79,6 @@ static int i2cdrv_bus_clock_div_current;
/* Forward function declaration */
static void i2cdrv_unload(void);
-
/* i2cdrv_done --
* Callback function which is called from MBus low-level driver when
* transfer is finished.
@@ -189,7 +188,6 @@ i2c_transfer(i2c_bus_number bus, int nmsg, i2c_message *msg,
return RTEMS_SUCCESSFUL;
}
-
/* i2cdrv_initialize --
* I2C driver initialization (rtems I/O driver primitive)
*/
@@ -249,7 +247,6 @@ i2c_select_clock_rate(i2c_bus_number bus, int bps)
return RTEMS_SUCCESSFUL;
}
-
/* i2c_poll --
* Poll I2C bus controller for events and hanle it. This function is
* used when I2C driver operates in poll-driven mode.
diff --git a/c/src/lib/libbsp/m68k/mcf5206elite/include/bsp.h b/c/src/lib/libbsp/m68k/mcf5206elite/include/bsp.h
index 1d0d753a75..9b6860d24a 100644
--- a/c/src/lib/libbsp/m68k/mcf5206elite/include/bsp.h
+++ b/c/src/lib/libbsp/m68k/mcf5206elite/include/bsp.h
@@ -27,7 +27,6 @@
/*** Board resources allocation ***/
-
/*
* To achieve some compatibility with dBUG monitor, we use the same
* memory resources allocation as it is used in dBUG.
diff --git a/c/src/lib/libbsp/m68k/mcf5206elite/nvram/nvram.c b/c/src/lib/libbsp/m68k/mcf5206elite/nvram/nvram.c
index 09edc4c361..822e55f789 100644
--- a/c/src/lib/libbsp/m68k/mcf5206elite/nvram/nvram.c
+++ b/c/src/lib/libbsp/m68k/mcf5206elite/nvram/nvram.c
@@ -25,7 +25,6 @@
#include <i2c.h>
#include <ds1307.h>
-
/* nvram_driver_initialize --
* Non-volatile memory device driver initialization.
*/
diff --git a/c/src/lib/libbsp/m68k/mcf5206elite/start/start.S b/c/src/lib/libbsp/m68k/mcf5206elite/start/start.S
index 58bdaeb34f..cace337ace 100644
--- a/c/src/lib/libbsp/m68k/mcf5206elite/start/start.S
+++ b/c/src/lib/libbsp/m68k/mcf5206elite/start/start.S
@@ -414,7 +414,6 @@ _avec7_int:
nop
jmp _unexp_int
-
END_CODE
END
diff --git a/c/src/lib/libbsp/m68k/mcf5206elite/startup/init5206e.c b/c/src/lib/libbsp/m68k/mcf5206elite/startup/init5206e.c
index 64be2e5354..bd0a1704f9 100644
--- a/c/src/lib/libbsp/m68k/mcf5206elite/startup/init5206e.c
+++ b/c/src/lib/libbsp/m68k/mcf5206elite/startup/init5206e.c
@@ -60,7 +60,6 @@
#define mcf5206e_enable_cache() \
m68k_set_cacr( MCF5206E_CACR_CENB )
-
#define mcf5206e_disable_cache() \
asm volatile ( "nop\n\t" \
"movec %0,%%cacr\n\t" \
diff --git a/c/src/lib/libbsp/m68k/mrm332/console/console.c b/c/src/lib/libbsp/m68k/mrm332/console/console.c
index 757b196dc6..909adaec50 100644
--- a/c/src/lib/libbsp/m68k/mrm332/console/console.c
+++ b/c/src/lib/libbsp/m68k/mrm332/console/console.c
@@ -138,7 +138,6 @@ rtems_device_driver console_initialize(
*/
rtems_termios_initialize();
-
/*
* register the SCI device name for termios
* do this over in the sci driver init routine?
@@ -151,7 +150,6 @@ rtems_device_driver console_initialize(
rtems_fatal_error_occurred(status);
}
-
/*
* Link the uart device to the console device
*/
diff --git a/c/src/lib/libbsp/m68k/mrm332/console/sci.c b/c/src/lib/libbsp/m68k/mrm332/console/sci.c
index 97c4a5c1b5..823ee215b2 100644
--- a/c/src/lib/libbsp/m68k/mrm332/console/sci.c
+++ b/c/src/lib/libbsp/m68k/mrm332/console/sci.c
@@ -36,6 +36,9 @@
* $Id$
*
* $Log$
+* Revision 1.7 2004/04/21 10:42:52 ralf
+* Remove stray white spaces.
+*
* Revision 1.6 2004/04/15 13:26:13 ralf
* Remove stray white spaces.
*
@@ -162,14 +165,12 @@
#define SCI_MINOR 0 // minor device number
-
// IMPORTANT - if the device driver api is opened, it means the sci is being
// used for direct hardware access, so other users (like termios) get ignored
#define DRIVER_CLOSED 0 // the device driver api is closed
#define DRIVER_OPENED 1 // the device driver api is opened
-
// system clock definitions, i dont have documentation on this...
#if 0 // Not needed, this is provided in mrm332.h
@@ -188,7 +189,6 @@
Section C - External Data
*****************************************************************************/
-
/*****************************************************************************
@@ -266,7 +266,6 @@ void SciPrintStats(); // test routine
static struct rtems_termios_tty *SciTermioTty;
-
static uint8_t SciInited = 0; // has the driver been inited
static uint8_t SciOpened; // has the driver been opened
@@ -292,7 +291,6 @@ BSP_polling_getchar_function_type BSP_poll_char = NULL;
#endif
-
// cvs id string so you can use the unix ident command on the object
#ifdef ID_STRINGS
@@ -338,7 +336,6 @@ static const rtems_termios_callbacks SciInterruptCallbacks =
TRUE // output uses interrupts
};
-
/*****************************************************************************
Section I - RTEMS termios callbacks for the polled version of the driver
*****************************************************************************/
@@ -363,7 +360,6 @@ static const rtems_termios_callbacks SciPolledCallbacks =
//
/////////////////////////////////////////////////////////////////////////////
-
/****************************************************************************
* Func: SCI_output_char
* Desc: used by rtems printk function to send a char to the uart
@@ -419,13 +415,11 @@ rtems_isr SciIsr( rtems_vector_number vector )
{
uint8_t ch;
-
if ( (*SCSR) & SCI_ERROR_PARITY ) SciErrorsParity ++;
if ( (*SCSR) & SCI_ERROR_FRAMING ) SciErrorsFraming ++;
if ( (*SCSR) & SCI_ERROR_NOISE ) SciErrorsNoise ++;
if ( (*SCSR) & SCI_ERROR_OVERRUN ) SciErrorsOverrun ++;
-
// see if it was a transmit interrupt
if ( (*SCSR) & SCI_XMTR_AVAILABLE ) // data reg empty, xmt complete
@@ -474,7 +468,6 @@ rtems_isr SciIsr( rtems_vector_number vector )
//
/////////////////////////////////////////////////////////////////////////////
-
/****************************************************************************
* Func: SciRcvBufGetChar
* Desc: read a character from the circular buffer
@@ -511,7 +504,6 @@ static int8_t SciRcvBufGetChar()
}
-
/****************************************************************************
* Func: SciRcvBufPutChar
* Desc: put a character into the rcv data circular buffer
@@ -584,7 +576,6 @@ static void SciRcvBufFlush( void )
//
/////////////////////////////////////////////////////////////////////////////
-
/****************************************************************************
* Func: SciInterruptOpen
* Desc: open routine for the interrupt based device driver
@@ -635,7 +626,6 @@ SciSetBaud( 19200); // set the baud rate
SciSetDataBits(SCI_8_DATA_BITS); // set data bits to 8
-
// Install our interrupt handler into RTEMS, where does 66 come from?
rtems_interrupt_catch( SciIsr, 66, &old_vector );
@@ -778,7 +768,6 @@ int32_t SciSetAttributes(
sci_parity = SCI_PARITY_NONE; // no parity, most common
}
-
// set the number of data bits, 8 is most common
if (t->c_cflag & CSIZE) // was it specified?
@@ -794,7 +783,6 @@ int32_t SciSetAttributes(
sci_databits = SCI_8_DATA_BITS; // default to 8 data bits
}
-
// the number of stop bits; always 1 for SCI
if (t->c_cflag & CSTOPB)
@@ -802,7 +790,6 @@ int32_t SciSetAttributes(
// do nothing
}
-
// setup the hardware with these serial port parameters
SciSetBaud(sci_rate); // set the baud rate
@@ -811,7 +798,6 @@ int32_t SciSetAttributes(
SciSetDataBits(sci_databits); // set the data bits
-
return RTEMS_SUCCESSFUL;
}
@@ -978,7 +964,6 @@ int32_t SciPolledWrite(
//
/////////////////////////////////////////////////////////////////////////////
-
/****************************************************************************
* Func: SciInit
* Desc: Initialize the lasers device driver and hardware
@@ -1000,7 +985,6 @@ rtems_device_driver SciInitialize (
//printk("%s\r\n", __FUNCTION__);
-
// register the SCI device name for termios console i/o
// this is done over in console.c which doesn't seem exactly right
// but there were problems doing it here...
@@ -1010,15 +994,12 @@ rtems_device_driver SciInitialize (
// if (status != RTEMS_SUCCESSFUL)
// rtems_fatal_error_occurred(status);
-
SciMajor = major; // save the rtems major number
SciOpened = DRIVER_CLOSED; // initial state is closed
-
// if you have an interrupt handler, install it here
-
SciInited = 1; // set the inited flag
return RTEMS_SUCCESSFUL;
@@ -1129,7 +1110,6 @@ rtems_device_driver SciRead (
rw_args = (rtems_libio_rw_args_t *) arg; // arguments to read()
-
if (minor != SCI_MINOR)
{
return RTEMS_INVALID_NAME; // check the minor number
@@ -1281,7 +1261,6 @@ rtems_device_driver SciControl (
//
/////////////////////////////////////////////////////////////////////////////
-
/****************************************************************************
* Func: SciSetBaud
* Desc: setup the uart based on the termios modules requests
@@ -1299,7 +1278,6 @@ static void SciSetBaud(uint32_t rate)
// when you open the console you need to set the termio struct baud rate
// it has a default value of 9600, when someone calls tcsetattr it reverts!
-
SciBaud = rate; // save the rate
// calculate the register value as a float and convert to an int
@@ -1499,7 +1477,6 @@ void SciWriteCharWait(uint8_t c)
return;
}
-
/****************************************************************************
* Func: SciWriteCharNoWait
* Desc: if no room in the fifo throw the char on the floor
@@ -1554,7 +1531,6 @@ uint8_t inline SciReadCharWait( void )
return ch; // return the char
}
-
/****************************************************************************
* Func: SciReadCharNoWait
* Desc: try to get a char but dont wait for one
@@ -1579,7 +1555,6 @@ uint8_t inline SciReadCharNoWait( void )
}
-
/****************************************************************************
* Func: SciCharAvailable
* Desc: is there a receive character in the data register
@@ -1628,7 +1603,6 @@ void SciSendBreak( void )
//
/////////////////////////////////////////////////////////////////////////////
-
/****************************************************************************
* Func: SciUnitTest
* Desc: test the device driver
@@ -1646,17 +1620,14 @@ void SciUnitTest()
uint16_t fd; // file descriptor for device
uint16_t result; // result of ioctl
-
fd = open("/dev/sci",O_RDWR); // open the device
printk("SCI open fd=%d\r\n",fd);
-
result = write(fd, "abcd\r\n", 6); // send a string
printk("SCI write result=%d\r\n",result);
-
result = read(fd, &byte, 1); // read a byte
printk("SCI read result=%d,byte=%x\r\n",result,byte);
diff --git a/c/src/lib/libbsp/m68k/mrm332/console/sci.h b/c/src/lib/libbsp/m68k/mrm332/console/sci.h
index a5d780b10f..237c2897aa 100644
--- a/c/src/lib/libbsp/m68k/mrm332/console/sci.h
+++ b/c/src/lib/libbsp/m68k/mrm332/console/sci.h
@@ -8,11 +8,9 @@
* $Id$
****************************************************************************/
-
#ifndef _sci_h_
#define _sci_h_
-
/*******************************************************************************
IOCTL commands for the sci driver.
I'm still working on these...
@@ -46,12 +44,10 @@
#define SCI_IOCTL_MODE_9_BIT 0x82 // 9600,forced,8,1 command mode
-
/*******************************************************************************
SCI Registers
*******************************************************************************/
-
// SCI Control Register 0 (SCCR0) $FFFC08
// 8 4 2 1 - 8 4 2 1 - 8 4 2 1 - 8 4 2 1
@@ -79,7 +75,6 @@
// 0 0 0 0 - 0 0 0 0 - 0 0 0 0 - 0 1 0 0 reset value - (64k baud?)
-
#define SCI_BAUD_57_6K 9
#define SCI_BAUD_38_4K 14
#define SCI_BAUD_19_2K 27
@@ -89,7 +84,6 @@
#define SCI_BAUD_1200 437
-
// SCI Control Register 1 (SCCR1) $FFFC0A
// 8 4 2 1 - 8 4 2 1 - 8 4 2 1 - 8 4 2 1
@@ -182,7 +176,6 @@
// 0 0 0 0 - 0 0 0 1 - 1 0 0 0 - 0 0 0 0 reset value
-
#define SCI_ERROR_PARITY 0x0001 // 0000-0000-0000-0001
#define SCI_ERROR_FRAMING 0x0002 // 0000-0000-0000-0010
#define SCI_ERROR_NOISE 0x0004 // 0000-0000-0000-0100
@@ -211,17 +204,14 @@
extern "C" {
#endif
-
// look at console_open to see how this is called
const rtems_termios_callbacks * SciGetTermiosHandlers( int32_t polled );
-
/* SCI interrupt */
//rtems_isr SciIsr( rtems_vector_number vector );
-
//int32_t SciOpenPolled ( int32_t major, int32_t minor, void *arg );
//int32_t SciOpenInterrupt ( int32_t major, int32_t minor, void *arg );
@@ -234,10 +224,8 @@ const rtems_termios_callbacks * SciGetTermiosHandlers( int32_t polled );
//int32_t SciSetAttributes ( int32_t minor, const struct termios *t );
-
#ifdef __cplusplus
}
#endif
-
#endif // _sci_h_
diff --git a/c/src/lib/libbsp/m68k/mrm332/include/mrm332.h b/c/src/lib/libbsp/m68k/mrm332/include/mrm332.h
index 8e385f8079..947fd9efce 100644
--- a/c/src/lib/libbsp/m68k/mrm332/include/mrm332.h
+++ b/c/src/lib/libbsp/m68k/mrm332/include/mrm332.h
@@ -6,14 +6,12 @@
#ifndef _MRM332_H_
#define _MRM332_H_
-
/* SIM_MM (SIM Module Mapping) determines the location of the control
register block. When MM=0, register addresses range fom 0x7ff000 to
0x7FFFFF. When MM=1, register addresses range from 0xfff000 to
0xffffff. */
#define SIM_MM 1
-
/* Interrupt related definitions */
#define SIM_IARB 15
#define QSM_IARB 10
@@ -28,8 +26,6 @@
#define EFI_INT1 25 /* CTS interrupt */
#define ISRL_SCI 6
-
-
/* System Clock definitions */
#define XTAL 32768.0 /* crystal frequency in Hz */
@@ -57,7 +53,6 @@
#define SYS_CLOCK (XTAL*4.0*(MRM_Y+1)*(1 << (2*MRM_W+MRM_X)))
#define SCI_BAUD 19200 /* RS232 Baud Rate */
-
/* macros/functions */
#ifndef ASM
diff --git a/c/src/lib/libbsp/m68k/mrm332/start/start.S b/c/src/lib/libbsp/m68k/mrm332/start/start.S
index fec7bbee81..05bb23348d 100644
--- a/c/src/lib/libbsp/m68k/mrm332/start/start.S
+++ b/c/src/lib/libbsp/m68k/mrm332/start/start.S
@@ -25,7 +25,6 @@ BEGIN_CODE
movel d0,sp
movel d0,a6
-
/* include in ram_init.S */
/*
* Initalize the SIM module.
diff --git a/c/src/lib/libbsp/m68k/mrm332/startup/except_vect_332_ROM.S b/c/src/lib/libbsp/m68k/mrm332/startup/except_vect_332_ROM.S
index edc0b633f4..a40f694e22 100644
--- a/c/src/lib/libbsp/m68k/mrm332/startup/except_vect_332_ROM.S
+++ b/c/src/lib/libbsp/m68k/mrm332/startup/except_vect_332_ROM.S
@@ -280,7 +280,6 @@
.long reboot /* exception vector: 254 */
.long reboot /* exception vector: 255 */
-
_reboot:
move #0x2700,%sr /* mask interrupts */
movea.l (0x0).w,%a7 /* load stack */
diff --git a/c/src/lib/libbsp/m68k/mrm332/timer/timer.c b/c/src/lib/libbsp/m68k/mrm332/timer/timer.c
index 8100914286..5d2f050cf7 100644
--- a/c/src/lib/libbsp/m68k/mrm332/timer/timer.c
+++ b/c/src/lib/libbsp/m68k/mrm332/timer/timer.c
@@ -19,7 +19,6 @@
* $Id$
*/
-
#include <bsp.h>
rtems_boolean Timer_driver_Find_average_overhead;
@@ -64,7 +63,6 @@ int Read_timer( void )
return (total - AVG_OVERHEAD);
}
-
/*
* Empty function call used in loops to measure basic cost of looping
* in Timing Test Suite.
diff --git a/c/src/lib/libbsp/m68k/mvme136/console/console.c b/c/src/lib/libbsp/m68k/mvme136/console/console.c
index 53e074fe4f..7045eeb054 100644
--- a/c/src/lib/libbsp/m68k/mvme136/console/console.c
+++ b/c/src/lib/libbsp/m68k/mvme136/console/console.c
@@ -50,7 +50,6 @@ rtems_device_driver console_initialize(
return RTEMS_SUCCESSFUL;
}
-
/* is_character_ready
*
* This routine returns TRUE if a character is available.
@@ -91,7 +90,6 @@ char inbyte( void )
return _Read_m681->rbb;
}
-
/* outbyte
*
* This routine transmits a character out the M68681. It supports
diff --git a/c/src/lib/libbsp/m68k/mvme136/include/bsp.h b/c/src/lib/libbsp/m68k/mvme136/include/bsp.h
index eafdfa2579..0ce7f6b443 100644
--- a/c/src/lib/libbsp/m68k/mvme136/include/bsp.h
+++ b/c/src/lib/libbsp/m68k/mvme136/include/bsp.h
@@ -89,7 +89,6 @@ extern "C" {
#define PARITYERR 0x20 /* status reg parity error mask */
#define FRAMEERR 0x40 /* status reg frame error mask */
-
#define FOREVER 1 /* infinite loop */
/* Structures */
diff --git a/c/src/lib/libbsp/m68k/mvme136/timer/timer.c b/c/src/lib/libbsp/m68k/mvme136/timer/timer.c
index 7a760c5f1c..167f8aad37 100644
--- a/c/src/lib/libbsp/m68k/mvme136/timer/timer.c
+++ b/c/src/lib/libbsp/m68k/mvme136/timer/timer.c
@@ -23,7 +23,6 @@
* $Id$
*/
-
#include <bsp.h>
#include <rtems/zilog/z8036.h>
diff --git a/c/src/lib/libbsp/m68k/mvme147/clock/ckinit.c b/c/src/lib/libbsp/m68k/mvme147/clock/ckinit.c
index 9898fabb70..6681819045 100644
--- a/c/src/lib/libbsp/m68k/mvme147/clock/ckinit.c
+++ b/c/src/lib/libbsp/m68k/mvme147/clock/ckinit.c
@@ -43,7 +43,6 @@ void Clock_exit( void );
rtems_device_major_number rtems_clock_major = ~0;
rtems_device_minor_number rtems_clock_minor;
-
/*
* ISR Handler
*/
diff --git a/c/src/lib/libbsp/m68k/mvme147/console/console.c b/c/src/lib/libbsp/m68k/mvme147/console/console.c
index 130ecf6473..4ac4bd55d4 100644
--- a/c/src/lib/libbsp/m68k/mvme147/console/console.c
+++ b/c/src/lib/libbsp/m68k/mvme147/console/console.c
@@ -23,7 +23,6 @@
#include <rtems/libio.h>
#include <rtems/zilog/z8530.h>
-
/* console_initialize
*
* This routine initializes the console IO driver.
diff --git a/c/src/lib/libbsp/m68k/mvme147/include/bsp.h b/c/src/lib/libbsp/m68k/mvme147/include/bsp.h
index 57d6f6915a..fbe6b5a02e 100644
--- a/c/src/lib/libbsp/m68k/mvme147/include/bsp.h
+++ b/c/src/lib/libbsp/m68k/mvme147/include/bsp.h
@@ -94,7 +94,6 @@ struct pcc_map {
#define z8530 0xfffe3001
-
/* interrupt vectors - see MVME146/D1 4.14 */
#define PCC_BASE_VECTOR 0x40 /* First user int */
#define SCC_VECTOR PCC_BASE_VECTOR+3
@@ -114,8 +113,6 @@ struct pcc_map {
#define CONSOLE_DATA 0xfffe3001
#endif
-
-
#define FOREVER 1 /* infinite loop */
#ifdef M147_INIT
@@ -155,7 +152,6 @@ struct pcc_map {
#define Lower_tm27_intr()
-
/* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration;
diff --git a/c/src/lib/libbsp/m68k/mvme147s/include/bsp.h b/c/src/lib/libbsp/m68k/mvme147s/include/bsp.h
index ebe109d34d..abc5a12f52 100644
--- a/c/src/lib/libbsp/m68k/mvme147s/include/bsp.h
+++ b/c/src/lib/libbsp/m68k/mvme147s/include/bsp.h
@@ -129,7 +129,6 @@ struct vme_lcsr_map {
#define vme_lcsr ((volatile struct vme_lcsr_map * const) 0xfffe2000)
-
struct vme_gcsr_map {
uint8_t unused_1;
uint8_t global_0; /* 0xfffe2021 */
@@ -151,11 +150,8 @@ struct vme_gcsr_map {
#define vme_gcsr ((volatile struct vme_gcsr_map * const) 0xfffe2020)
-
-
#define z8530 0xfffe3001
-
/* interrupt vectors - see MVME147/D1 4.14 */
#define PCC_BASE_VECTOR 0x40 /* First user int */
#define SCC_VECTOR PCC_BASE_VECTOR+3
@@ -178,8 +174,6 @@ struct vme_gcsr_map {
#define CONSOLE_DATA 0xfffe3001
#endif
-
-
#define FOREVER 1 /* infinite loop */
#ifdef M147_INIT
@@ -219,7 +213,6 @@ struct vme_gcsr_map {
#define Lower_tm27_intr()
-
/* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration;
diff --git a/c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c b/c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c
index 6e5ba65fe7..b97c2e3501 100644
--- a/c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c
+++ b/c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c
@@ -93,7 +93,6 @@ void bsp_start( void )
/* Make VME access round-robin */
}
-
node_number =
(uint8_t)
(Configuration.User_multiprocessing_table->node - 1) & 0xF;
diff --git a/c/src/lib/libbsp/m68k/mvme162/clock/ckinit.c b/c/src/lib/libbsp/m68k/mvme162/clock/ckinit.c
index 9f8ddabb0d..b4d7b0854a 100644
--- a/c/src/lib/libbsp/m68k/mvme162/clock/ckinit.c
+++ b/c/src/lib/libbsp/m68k/mvme162/clock/ckinit.c
@@ -46,7 +46,6 @@ void Clock_exit( void );
rtems_device_major_number rtems_clock_major = ~0;
rtems_device_minor_number rtems_clock_minor;
-
/*
* ISR Handler
*/
diff --git a/c/src/lib/libbsp/m68k/mvme162/include/bsp.h b/c/src/lib/libbsp/m68k/mvme162/include/bsp.h
index 1b9f06454c..e25baef9e1 100644
--- a/c/src/lib/libbsp/m68k/mvme162/include/bsp.h
+++ b/c/src/lib/libbsp/m68k/mvme162/include/bsp.h
@@ -44,7 +44,6 @@ extern "C" {
#include <mvme16x_hw.h>
-
/*----------------------------------------------------------------*/
typedef volatile struct {
diff --git a/c/src/lib/libbsp/m68k/mvme162/include/tod.h b/c/src/lib/libbsp/m68k/mvme162/include/tod.h
index 87f4bd6e86..7335b2b4f1 100644
--- a/c/src/lib/libbsp/m68k/mvme162/include/tod.h
+++ b/c/src/lib/libbsp/m68k/mvme162/include/tod.h
@@ -17,7 +17,6 @@
* $Id$
*/
-
#ifndef TOD_H
#define TOD_H
diff --git a/c/src/lib/libbsp/m68k/mvme162/startup/page_table.c b/c/src/lib/libbsp/m68k/mvme162/startup/page_table.c
index 2629aa053c..ffcd810959 100644
--- a/c/src/lib/libbsp/m68k/mvme162/startup/page_table.c
+++ b/c/src/lib/libbsp/m68k/mvme162/startup/page_table.c
@@ -71,8 +71,6 @@ static unsigned long *table_alloc(int size){
return addr;
}
-
-
/*
void page_table_init();
diff --git a/c/src/lib/libbsp/m68k/mvme162/timer/timer.c b/c/src/lib/libbsp/m68k/mvme162/timer/timer.c
index 9072e3ce54..3866bf6fde 100644
--- a/c/src/lib/libbsp/m68k/mvme162/timer/timer.c
+++ b/c/src/lib/libbsp/m68k/mvme162/timer/timer.c
@@ -78,7 +78,6 @@ int Read_timer()
return (total-AVG_OVERHEAD) >> 1;
}
-
rtems_status_code Empty_function( void )
{
return RTEMS_SUCCESSFUL;
diff --git a/c/src/lib/libbsp/m68k/mvme162/tools/sload.c b/c/src/lib/libbsp/m68k/mvme162/tools/sload.c
index 4cb1e659de..86e5e4b1bb 100644
--- a/c/src/lib/libbsp/m68k/mvme162/tools/sload.c
+++ b/c/src/lib/libbsp/m68k/mvme162/tools/sload.c
@@ -23,7 +23,6 @@
#include <string.h>
#include <ctype.h>
-
#include <sys/types.h>
#include <sys/fcntl.h>
#include <sys/resource.h>
diff --git a/c/src/lib/libbsp/m68k/mvme167/clock/ckinit.c b/c/src/lib/libbsp/m68k/mvme167/clock/ckinit.c
index b2576028d8..a4c28bce50 100644
--- a/c/src/lib/libbsp/m68k/mvme167/clock/ckinit.c
+++ b/c/src/lib/libbsp/m68k/mvme167/clock/ckinit.c
@@ -58,7 +58,6 @@ rtems_device_minor_number rtems_clock_minor;
*/
volatile uint32_t Clock_driver_ticks;
-
/*
* Clock_isrs is the number of clock ISRs until the next invocation of the
* RTEMS clock tick routine. This clock tick device driver gets an interrupt
@@ -70,19 +69,16 @@ volatile uint32_t Clock_driver_ticks;
*/
uint32_t Clock_isrs;
-
/*
* Records the previous clock ISR (should be NULL)
*/
rtems_isr_entry Old_ticker;
-
/*
* Called when the kernel exits.
*/
void clock_exit( void );
-
/*
* VMEchip2_T2_isr
*
@@ -132,7 +128,6 @@ rtems_isr VMEchip2_T2_isr(
Clock_isrs -= overflow;
}
-
/*
* VMEchip2_T2_initialize
*
@@ -171,7 +166,6 @@ void VMEchip2_T2_initialize( void )
atexit( clock_exit ); /* Turn off T2 interrupts when we exit */
}
-
/*
* clock_exit
*
@@ -194,7 +188,6 @@ void clock_exit( void )
set_vector( Old_ticker, CLOCK_VECTOR, 1 );
}
-
/*
* Clock_initialize()
* prototyped in rtems/c/src/lib/include/clockdrv.h.
@@ -229,7 +222,6 @@ rtems_device_driver Clock_initialize(
return RTEMS_SUCCESSFUL;
}
-
/*
* Clock_control().
* Prototyped in rtems/c/src/lib/include/clockdrv.h
diff --git a/c/src/lib/libbsp/m68k/mvme167/console/console-recording.h b/c/src/lib/libbsp/m68k/mvme167/console/console-recording.h
index 9aa0d597b8..f4c1eae9aa 100644
--- a/c/src/lib/libbsp/m68k/mvme167/console/console-recording.h
+++ b/c/src/lib/libbsp/m68k/mvme167/console/console-recording.h
@@ -24,7 +24,6 @@
#define CD2401_RECORD_DRAIN_OUTPUT
#define CD2401_RECORD_DELAY
-
/* Call the data recording functions */
#ifdef CD2401_RECORD_WRITE
#define CD2401_RECORD_WRITE_INFO( args ) cd2401_record_write_info args
@@ -104,7 +103,6 @@
#define CD2401_RECORD_DELAY_INFO( args )
#endif
-
/* Define the data and the recording functions */
#define CD2401_DEBUG_BUFFER_SIZE 256
#define CD2401_DEBUG_CHAR_BUFSIZE 64
@@ -124,7 +122,6 @@
#define CD2401_DRAIN_OUTPUT_INFO 14
#define CD2401_DELAY_INFO 15
-
struct cd2401_debug_info {
short discriminant;
short record_size;
@@ -244,7 +241,6 @@ int cd2401_get_record_size(
return size + 4;
}
-
void cd2401_record_write_info(
int len,
const char * buf,
@@ -266,7 +262,6 @@ void cd2401_record_write_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_tx_isr_info(
unsigned char ch,
unsigned char status,
@@ -288,7 +283,6 @@ void cd2401_record_tx_isr_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_tx_isr_spurious_info(
unsigned char ch,
unsigned char status,
@@ -312,7 +306,6 @@ void cd2401_record_tx_isr_spurious_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_tx_isr_buserr_info(
unsigned char ch,
unsigned char status,
@@ -336,7 +329,6 @@ void cd2401_record_tx_isr_buserr_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_rx_isr_info(
unsigned char ch,
unsigned char total,
@@ -357,7 +349,6 @@ void cd2401_record_rx_isr_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_rx_isr_spurious_info(
unsigned char ch,
unsigned char status,
@@ -377,7 +368,6 @@ void cd2401_record_rx_isr_spurious_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_re_isr_spurious_info(
unsigned char ch,
uint32_t spur_dev,
@@ -395,7 +385,6 @@ void cd2401_record_re_isr_spurious_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_modem_isr_spurious_info(
unsigned char ch,
uint32_t spur_dev,
@@ -413,7 +402,6 @@ void cd2401_record_modem_isr_spurious_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_first_open_info(
unsigned char ch,
uint8_t init_count
@@ -429,7 +417,6 @@ void cd2401_record_first_open_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_last_close_info(
unsigned char ch,
uint8_t init_count
@@ -445,7 +432,6 @@ void cd2401_record_last_close_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_start_remote_tx_info(
unsigned char ch
)
@@ -459,7 +445,6 @@ void cd2401_record_start_remote_tx_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_stop_remote_tx_info(
unsigned char ch
)
@@ -473,7 +458,6 @@ void cd2401_record_stop_remote_tx_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_set_attributes_info(
int minor,
uint8_t need_reinit,
@@ -530,7 +514,6 @@ void cd2401_record_set_attributes_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_drain_output_info(
uint8_t txEmpty,
uint8_t own_buf_A,
@@ -548,7 +531,6 @@ void cd2401_record_drain_output_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_delay_info(
rtems_interval start,
rtems_interval end,
@@ -568,7 +550,6 @@ void cd2401_record_delay_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
#else
/* Do not call the data recording functions */
diff --git a/c/src/lib/libbsp/m68k/mvme167/console/console.c b/c/src/lib/libbsp/m68k/mvme167/console/console.c
index 3d760e14a8..60880b6289 100644
--- a/c/src/lib/libbsp/m68k/mvme167/console/console.c
+++ b/c/src/lib/libbsp/m68k/mvme167/console/console.c
@@ -157,12 +157,10 @@ int cd2401_drainOutput( int minor );
int _167Bug_pollRead( int minor );
int _167Bug_pollWrite( int minor, const char *buf, int len );
-
/* Printk function */
static void _BSP_output_char( char c );
BSP_output_char_function_type BSP_output_char = _BSP_output_char;
-
/* Channel info */
/* static */ volatile struct {
void *tty; /* Really a struct rtems_termios_tty * */
@@ -188,19 +186,16 @@ BSP_output_char_function_type BSP_output_char = _BSP_output_char;
*/
uint8_t Init_count;
-
/* Record previous handlers */
rtems_isr_entry Prev_re_isr; /* Previous rx exception isr */
rtems_isr_entry Prev_rx_isr; /* Previous rx isr */
rtems_isr_entry Prev_tx_isr; /* Previous tx isr */
rtems_isr_entry Prev_modem_isr; /* Previous modem/timer isr */
-
/* Define the following symbol to trace the calls to this driver */
/* #define CD2401_RECORD_DEBUG_INFO */
#include "console-recording.h"
-
/*
* Utility functions.
*/
@@ -236,7 +231,6 @@ rtems_isr_entry Prev_modem_isr; /* Previous modem/timer isr */
CD2401_RECORD_DELAY_INFO(( start_ticks, end_ticks, current_ticks, i ));
}
-
/*
* cd2401_chan_cmd
*
@@ -274,7 +268,6 @@ void cd2401_chan_cmd(
}
}
-
/*
* cd2401_bitrate_divisor
*
@@ -314,7 +307,6 @@ uint16_t cd2401_bitrate_divisor(
return( clksource | divisor );
}
-
/*
* cd2401_initialize
*
@@ -401,7 +393,6 @@ void cd2401_initialize( void )
cd2401->tpr = 0x0A; /* Same value as 167Bug */
}
-
/*
* cd2401_interrupts_initialize
*
@@ -445,7 +436,6 @@ void cd2401_interrupts_initialize(
}
}
-
/* ISRs */
/*
@@ -481,7 +471,6 @@ rtems_isr cd2401_modem_isr(
CD2401_Channel_Info[ch].spur_cnt ));
}
-
/*
* cd2401_re_isr
*
@@ -519,7 +508,6 @@ rtems_isr cd2401_re_isr(
CD2401_Channel_Info[ch].spur_cnt ));
}
-
/*
* cd2401_rx_isr
*
@@ -567,7 +555,6 @@ rtems_isr cd2401_rx_isr(
}
}
-
/*
* cd2401_tx_isr
*
@@ -664,7 +651,6 @@ rtems_isr cd2401_tx_isr(
}
}
-
/*
* termios callbacks
*/
@@ -751,7 +737,6 @@ int cd2401_firstOpen(
return RTEMS_SUCCESSFUL;
}
-
/*
* cd2401_lastClose
*
@@ -794,7 +779,6 @@ int cd2401_lastClose(
return RTEMS_SUCCESSFUL;
}
-
/*
* cd2401_setAttributes
*
@@ -1083,7 +1067,6 @@ int cd2401_setAttributes(
return RTEMS_SUCCESSFUL;
}
-
/*
* cd2401_startRemoreTx
*
@@ -1124,7 +1107,6 @@ int cd2401_startRemoteTx(
return RTEMS_SUCCESSFUL;
}
-
/*
* cd2401_stopRemoteTx
*
@@ -1166,7 +1148,6 @@ int cd2401_stopRemoteTx(
return RTEMS_SUCCESSFUL;
}
-
/*
* cd2401_write
*
@@ -1266,7 +1247,6 @@ int cd2401_drainOutput(
}
#endif
-
/*
* _167Bug_pollRead
*
@@ -1324,7 +1304,6 @@ int _167Bug_pollRead(
return (int)c;
}
-
/*
* _167Bug_pollWrite
*
@@ -1362,7 +1341,6 @@ int _167Bug_pollWrite(
return RTEMS_SUCCESSFUL;
}
-
/*
* do_poll_read
*
@@ -1443,7 +1421,6 @@ rtems_status_code do_poll_write(
return RTEMS_SUCCESSFUL;
}
-
/*
* _BSP_output_char
*
@@ -1469,7 +1446,6 @@ void _BSP_output_char(char c)
_167Bug_pollWrite(printk_minor, &cr, 1);
}
-
/*
***************
* BOILERPLATE *
@@ -1601,7 +1577,6 @@ rtems_device_driver console_open(
#endif
}
-
/*
* Close the device
*/
@@ -1631,7 +1606,6 @@ rtems_device_driver console_close(
#endif
}
-
/*
* Read from the device
*/
@@ -1661,7 +1635,6 @@ rtems_device_driver console_read(
#endif
}
-
/*
* Write to the device
*/
@@ -1691,7 +1664,6 @@ rtems_device_driver console_write(
#endif
}
-
/*
* Handle ioctl request.
*/
diff --git a/c/src/lib/libbsp/m68k/mvme167/fatal/bspfatal.c b/c/src/lib/libbsp/m68k/mvme167/fatal/bspfatal.c
index b93a08fee1..142e25395a 100644
--- a/c/src/lib/libbsp/m68k/mvme167/fatal/bspfatal.c
+++ b/c/src/lib/libbsp/m68k/mvme167/fatal/bspfatal.c
@@ -41,7 +41,6 @@ static int mystrcat(
return i;
}
-
/*
* bsp_fatal_error_occurred
*
diff --git a/c/src/lib/libbsp/m68k/mvme167/include/bsp.h b/c/src/lib/libbsp/m68k/mvme167/include/bsp.h
index a1aa2727c7..e60ba54483 100644
--- a/c/src/lib/libbsp/m68k/mvme167/include/bsp.h
+++ b/c/src/lib/libbsp/m68k/mvme167/include/bsp.h
@@ -21,7 +21,6 @@
#ifndef __MVME167_H
#define __MVME167_H
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -34,7 +33,6 @@ extern "C" {
#include <rtems/iosupp.h>
#include <rtems/bspIo.h>
-
/*
* confdefs.h overrides for this BSP:
* - termios serial ports (defaults to 1)
@@ -142,7 +140,6 @@ typedef volatile struct memc040_regs_ {
#define memc040_1 ((memc040_regs * const) 0xFFF43000)
#define memc040_2 ((memc040_regs * const) 0xFFF43100)
-
/*
* The MVME167 may be equiped with error-correcting RAM cards. In this case,
* each MEMC040 is replaced by two MCECC ECC DRAM controllers. This port
@@ -154,7 +151,6 @@ typedef volatile struct memc040_regs_ {
* can be used to read those first eight registers.
*/
-
/*
* Representation of the Cirrus Logic CL-CD2401 Multi-Protocol Controller
*/
@@ -298,14 +294,12 @@ typedef volatile struct cd2401_regs_ {
unsigned char dr; /* 0xFFF450F8 - Receive/Transmit Data */
} cd2401_regs;
-
/*
* Base address of the CD2401.
* This is not configurable in the MVME167.
*/
#define cd2401 ((cd2401_regs * const) 0xFFF45000)
-
/* CD2401 is clocked at 20 MHz */
#define CD2401_CLK_RATE 20000000
@@ -345,14 +339,12 @@ m68k_isr_entry set_vector(
#define BSP_LIBIO_MAX_FDS 20
-
/* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration;
extern m68k_isr_entry M68Kvec[]; /* vector table address */
-
/*
* Define the time limits for RTEMS Test Suite test durations.
* Long test and short test duration limits are provided. These
diff --git a/c/src/lib/libbsp/m68k/mvme167/network/network.c b/c/src/lib/libbsp/m68k/mvme167/network/network.c
index 8ab46e8ee9..e3d7abb278 100644
--- a/c/src/lib/libbsp/m68k/mvme167/network/network.c
+++ b/c/src/lib/libbsp/m68k/mvme167/network/network.c
@@ -49,7 +49,6 @@
#define START_TRANSMIT_EVENT RTEMS_EVENT_2
#define NIC_RESET_EVENT RTEMS_EVENT_3
-
#include <bsp.h>
#include <stdio.h>
#include <string.h>
@@ -120,7 +119,6 @@ char uti596initSetup[] = {
0x3f /* Byte 13: no multi IA, backoff enabled */
};
-
/* Local Routines */
static unsigned long word_swap ( unsigned long );
@@ -155,7 +153,6 @@ static void uti596_append ( i596_rfd ** , i596_rfd * );
static void uti596_supplyFD ( i596_rfd * );
static void send_packet ( struct ifnet *, struct mbuf * );
-
/* Required RTEMS network driver functions and tasks (plus reset daemon) */
static void uti596_start ( struct ifnet * );
@@ -178,8 +175,6 @@ static void print_pkt ( unsigned char * );
static void print_echo ( unsigned char * );
#endif
-
-
/*
* word_swap
*
@@ -200,7 +195,6 @@ static unsigned long word_swap(
return (((val >> 16)&(0x0000ffff)) | ((val << 16)&(0xffff0000)));
}
-
/*
* malloc_16byte_aligned
*
@@ -236,7 +230,6 @@ static void * malloc_16byte_aligned(
return *adjusted_pointer;
}
-
/*
* uti596_scp_alloc
*
@@ -273,7 +266,6 @@ static i596_scp * uti596_scp_alloc(
return sc->pScp;
}
-
/*
* uti596_writePortFunction
*
@@ -298,7 +290,6 @@ RTEMS_INLINE_ROUTINE void uti596_writePortFunction(
i82596->port_upper = (unsigned short)(((unsigned long)addr >> 16 ) & 0xFFFF);
}
-
/*
* uti596_portReset
*
@@ -315,7 +306,6 @@ RTEMS_INLINE_ROUTINE void uti596_portReset( void )
uti596_writePortFunction( NULL, UTI596_RESET_PORT_FUNCTION );
}
-
/* currently unused by RTEMS */
#if 0
/*
@@ -370,7 +360,6 @@ static unsigned long uti596_portSelfTest(
}
#endif
-
/* currently unused by RTEMS */
#if 0
/*
@@ -423,7 +412,6 @@ static int uti596_portDump(
}
#endif
-
/*
* uti596_wait
*
@@ -458,7 +446,6 @@ static int uti596_wait(
case UTI596_NO_WAIT:
return 0;
-
case UTI596_WAIT_FOR_CU_ACCEPT:
do {
if (sc->scb.command == 0)
@@ -521,7 +508,6 @@ static int uti596_wait(
return -1;
}
-
/*
* uti596_issueCA
*
@@ -550,7 +536,6 @@ static int uti596_issueCA(
return (uti596_wait ( sc, waitType ));
}
-
/*
* uti596_addCmd
*
@@ -604,7 +589,6 @@ static void uti596_addCmd(
#endif
}
-
/*
* uti596_addPolledCmd
*
@@ -648,7 +632,6 @@ void uti596_addPolledCmd(
#endif
}
-
/* currently unused by RTEMS */
#if 0
/*
@@ -678,7 +661,6 @@ static void uti596_CU_dump ( i596_dump_result * drp)
}
#endif
-
/*
* uti596_dump_scb
*
@@ -707,7 +689,6 @@ static void uti596_dump_scb ( void )
printk(("t_off 0x%x\n",uti596_softc.scb.t_off))
}
-
/*
* uti596_setScpAndScb
*
@@ -740,7 +721,6 @@ static int uti596_setScpAndScb(
return ( uti596_issueCA ( sc, UTI596_WAIT_FOR_INITIALIZATION ) );
}
-
/*
* uti596_diagnose
*
@@ -768,7 +748,6 @@ static int uti596_diagnose( void )
#endif
}
-
/*
* uti596_configure
*
@@ -796,7 +775,6 @@ static int uti596_configure (
return ( uti596_wait ( sc, UTI596_WAIT_FOR_STAT_C ) );
}
-
/*
* uti596_IAsetup
*
@@ -829,7 +807,6 @@ static int uti596_IAsetup (
return ( uti596_wait ( sc, UTI596_WAIT_FOR_STAT_C ) );
}
-
/*
* uti596_initTBD
*
@@ -877,7 +854,6 @@ static int uti596_initTBD ( uti596_softc_ * sc )
return 0;
}
-
/*
* uti596_initRFA
*
@@ -961,7 +937,6 @@ static int uti596_initRFA( int num )
return (i); /* the number of allocated buffers */
}
-
/*
* uti596_initMem
*
@@ -1075,7 +1050,6 @@ void uti596_initialize(
sc->scb.command = 0;
}
-
/*
* uti596_initialize_hardware
*
@@ -1125,7 +1099,6 @@ void uti596_initialize_hardware(
#endif
}
-
/*
* uti596_reset_hardware
*
@@ -1175,7 +1148,6 @@ void uti596_reset_hardware(
#endif
}
-
/*
* uti596_clearListStatus
*
@@ -1198,7 +1170,6 @@ void uti596_clearListStatus(
}
}
-
/*
* uti596_reset
*
@@ -1241,7 +1212,6 @@ void uti596_reset( void )
sc->pCmdHead = sc->pCmdTail = sc->scb.pCmd = I596_NULL;
-
/* restore the RFA */
if ( sc->pLastUnkRFD != I596_NULL ) {
@@ -1278,7 +1248,6 @@ void uti596_reset( void )
#endif
}
-
/*
* uti596_dequeue
*
@@ -1319,7 +1288,6 @@ i596_rfd * uti596_dequeue(
return pRfd;
}
-
/*
* uti596_append
*
@@ -1367,7 +1335,6 @@ void uti596_append(
}
}
-
/*
* uti596_supplyFD
*
@@ -1503,7 +1470,6 @@ void uti596_supplyFD (
}
}
-
/*
* send_packet
*
@@ -1645,7 +1611,6 @@ void send_packet(
}
}
-
/***********************************************************************
* Function: uti596_attach
*
@@ -1934,8 +1899,6 @@ void uti596_init(
i82596->chan_attn = 0x00000000;
}
-
-
/***********************************************************************
* Function: void uti596_txDaemon
*
@@ -2124,7 +2087,6 @@ void uti596_txDaemon(
#endif
}
-
/***********************************************************************
* Function: void uti596_resetDaemon
*
@@ -2158,7 +2120,6 @@ void uti596_resetDaemon(
}
}
-
/***********************************************************************
* Function: uti596_DynamicInterruptHandler
*
@@ -2209,7 +2170,6 @@ void uti596_resetDaemon(
uti596_softc.nic_reset = 1;
}
-
if ( (scbStatus & SCB_STAT_CX) && !(scbStatus & SCB_STAT_CNA) ) {
printk(("\n*****ERROR: Command Complete, and CNA available: 0x%x\nResetting...", scbStatus))
uti596_softc.nic_reset = 1;
@@ -2325,7 +2285,6 @@ void uti596_resetDaemon(
}
} /* end if ( scbStatus & SCB_STAT_FR ) */
-
/*
* Command Unit Control
* a command is completed
@@ -2474,7 +2433,6 @@ void uti596_resetDaemon(
}
} /* end if command complete */
-
/*
* If the receiver has stopped,
* check if this is a No Resources scenario,
@@ -2607,7 +2565,6 @@ void uti596_resetDaemon(
#endif
count_rx=0;
-
/* Do this last, to ensure that the reset is called at the right time. */
if ( uti596_softc.nic_reset ) {
uti596_softc.nic_reset = 0;
@@ -2618,7 +2575,6 @@ void uti596_resetDaemon(
return;
}
-
/***********************************************************************
* Function: uti596_ioctl
*
@@ -2688,7 +2644,6 @@ static int uti596_ioctl(
return error;
}
-
/***********************************************************************
* Function: uti596_stats
*
@@ -2739,9 +2694,6 @@ void uti596_stats(
#endif
}
-
-
-
/************************ PACKET DEBUG ROUTINES ************************/
#ifdef DBG_PACKETS
@@ -2781,7 +2733,6 @@ static void dumpQ( void )
}
}
-
/*
* show_buffers
*
@@ -2825,7 +2776,6 @@ static void show_buffers (void)
printk(("\nUnknown: %p\n",uti596_softc.pLastUnkRFD))
}
-
/*
* show_queues
*
@@ -2861,7 +2811,6 @@ static void show_queues(void)
printk(("uti596_softc.pEndRFA: %p\n",uti596_softc.pEndRFA))
}
-
/*
* print_eth
*
@@ -2924,7 +2873,6 @@ static void print_eth(
printk (("%u\n", add[41]))
}
-
if ( add[12] == 0x08 && add[13] == 0x00 ) {
/* an IP packet */
printk (("*********************IP HEADER******************\n"))
@@ -2950,7 +2898,6 @@ static void print_eth(
}
}
-
/*
* print_hdr
*
@@ -2979,7 +2926,6 @@ static void print_hdr(
printk (("print_hdr: completed"))
}
-
/*
* Function: print_pkt
*
@@ -3065,7 +3011,6 @@ static void print_pkt(
}
}
-
/*
* print_echo
*
diff --git a/c/src/lib/libbsp/m68k/mvme167/network/uti596.h b/c/src/lib/libbsp/m68k/mvme167/network/uti596.h
index bc97ac2455..ac1d454da9 100644
--- a/c/src/lib/libbsp/m68k/mvme167/network/uti596.h
+++ b/c/src/lib/libbsp/m68k/mvme167/network/uti596.h
@@ -101,7 +101,6 @@ struct enet_statistics{
#define I596_NULL ( ( void * ) 0xffffffff)
#define UTI_596_END_OF_FRAME 0x8000
-
struct i596_tbd; /* necessary forward declaration */
enum commands {
diff --git a/c/src/lib/libbsp/m68k/mvme167/startup/bspstart.c b/c/src/lib/libbsp/m68k/mvme167/startup/bspstart.c
index f4c640063d..1d07234879 100644
--- a/c/src/lib/libbsp/m68k/mvme167/startup/bspstart.c
+++ b/c/src/lib/libbsp/m68k/mvme167/startup/bspstart.c
@@ -18,7 +18,6 @@
* $Id$
*/
-
#include <string.h>
#include <bsp.h>
@@ -95,7 +94,6 @@ void bsp_start( void )
rom_monitor_vector_table = (m68k_isr_entry *)0xFFE00000;
m68k_set_vbr( rom_monitor_vector_table );
-
/*
* Copy 167Bug Bus Error handler into our exception vector. All 167Bug
* exception vectors are the same and point to the generalized exception
diff --git a/c/src/lib/libbsp/m68k/mvme167/startup/page_table.c b/c/src/lib/libbsp/m68k/mvme167/startup/page_table.c
index 985144224d..06ae67815c 100644
--- a/c/src/lib/libbsp/m68k/mvme167/startup/page_table.c
+++ b/c/src/lib/libbsp/m68k/mvme167/startup/page_table.c
@@ -131,7 +131,6 @@ void page_table_init(
:: "d" (0), "d" (dtt0), "d" (0xFF00C040), "d" (cacr));
}
-
/*
* page_table_teardown
*
diff --git a/c/src/lib/libbsp/m68k/mvme167/timer/timer.c b/c/src/lib/libbsp/m68k/mvme167/timer/timer.c
index 2d78f91685..0dc5343352 100644
--- a/c/src/lib/libbsp/m68k/mvme167/timer/timer.c
+++ b/c/src/lib/libbsp/m68k/mvme167/timer/timer.c
@@ -92,7 +92,6 @@ void Timer_initialize()
/* (3 countdowns) to start/stop the timer. */
#define LEAST_VALID 3UL /* Don't trust a value lower than this */
-
/*
* This routine reads the Tick Timer 1 on the MVME167 board.
*
@@ -121,7 +120,6 @@ int Read_timer()
return total - AVG_OVERHEAD;
}
-
/*
* Empty function call used in loops to measure basic cost of looping
* in Timing Test Suite.
@@ -135,7 +133,6 @@ rtems_status_code Empty_function( void )
return RTEMS_SUCCESSFUL;
}
-
/*
* This routine sets the Timer_driver_Find_average_overhead flag in this
* module.
diff --git a/c/src/lib/libbsp/m68k/ods68302/console/console.c b/c/src/lib/libbsp/m68k/ods68302/console/console.c
index f471b44a71..37d0fd96f5 100644
--- a/c/src/lib/libbsp/m68k/ods68302/console/console.c
+++ b/c/src/lib/libbsp/m68k/ods68302/console/console.c
@@ -76,7 +76,6 @@ rtems_boolean is_character_ready(
return FALSE;
}
-
/* inbyte
*
* Receive a character from the MC68302's SCC2.
@@ -97,7 +96,6 @@ char inbyte( void )
return ch;
}
-
/* outbyte
*
* Transmit a character out on the MC68302's SCC2.
diff --git a/c/src/lib/libbsp/m68k/ods68302/start/reset.S b/c/src/lib/libbsp/m68k/ods68302/start/reset.S
index c6f80950f1..8581089b05 100644
--- a/c/src/lib/libbsp/m68k/ods68302/start/reset.S
+++ b/c/src/lib/libbsp/m68k/ods68302/start/reset.S
@@ -854,7 +854,6 @@ vector_table:
start_frame:
.space 4,0
-
|
| Uninitialised data
|
diff --git a/c/src/lib/libbsp/m68k/ods68302/startup/gdb-hooks.c b/c/src/lib/libbsp/m68k/ods68302/startup/gdb-hooks.c
index 957535389a..7a388e98d8 100644
--- a/c/src/lib/libbsp/m68k/ods68302/startup/gdb-hooks.c
+++ b/c/src/lib/libbsp/m68k/ods68302/startup/gdb-hooks.c
@@ -7,7 +7,6 @@
*/
/*****************************************************************************/
-
#include <bsp.h>
#include <rtems/m68k/m68302.h>
#include <m68302scc.h>
diff --git a/c/src/lib/libbsp/m68k/ods68302/startup/m68302scc.c b/c/src/lib/libbsp/m68k/ods68302/startup/m68302scc.c
index 4b7c7d9440..d3211734e7 100644
--- a/c/src/lib/libbsp/m68k/ods68302/startup/m68302scc.c
+++ b/c/src/lib/libbsp/m68k/ods68302/startup/m68302scc.c
@@ -7,7 +7,6 @@
*/
/*****************************************************************************/
-
#include <bsp.h>
#include <rtems/m68k/m68302.h>
#include <m68302scc.h>
diff --git a/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c b/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c
index 95e404677f..d9e230ea33 100644
--- a/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c
+++ b/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c
@@ -526,7 +526,6 @@ saveDone:\n\
");
#endif
-
/*
* remcomHandler is a front end for handle_exception. It moves the
* stack pointer into an area reserved for debugger use in case the
@@ -638,7 +637,6 @@ void getpacket(char *buffer)
/* send the packet in buffer. The host get's one chance to read it.
This routine does not wait for a positive acknowledge. */
-
void
putpacket(char *buffer)
{
@@ -1026,7 +1024,6 @@ void handle_exception(int exceptionVector)
}
}
-
void initializeRemcomErrorFrame()
{
lastFrame = ((Frame *) &gdbFrameStack[FRAMESIZE-1]) - 1;
diff --git a/c/src/lib/libbsp/m68k/ods68302/timer/timer.c b/c/src/lib/libbsp/m68k/ods68302/timer/timer.c
index b3927487c7..f69569c174 100644
--- a/c/src/lib/libbsp/m68k/ods68302/timer/timer.c
+++ b/c/src/lib/libbsp/m68k/ods68302/timer/timer.c
@@ -19,12 +19,10 @@
* $Id$
*/
-
#include <rtems.h>
#include <bsp.h>
#include <rtems/m68k/m68302.h>
-
#define TMR2_VAL 0x071b /* Timer mode register
* (section 3.5.2.1 in 68302 manual)
* 15-8: "7" prescaler divide by 8 (x+1)
@@ -110,7 +108,6 @@ int Read_timer( void )
return (total - AVG_OVERHEAD) >> 1;
}
-
/*
* Empty function call used in loops to measure basic cost of looping
* in Timing Test Suite.
diff --git a/c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h b/c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h
index 5dbb72185c..35afa770cd 100644
--- a/c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h
+++ b/c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h
@@ -32,7 +32,6 @@ struct rtems_gdb_stub_thread_info {
int parse_zbreak(const char *in, int *type, unsigned char **addr, int *len);
-
char* mem2hstr(char *buf, const unsigned char *mem, int count);
int hstr2mem(unsigned char *mem, const char *buf, int count);
void set_mem_err(void);
@@ -171,14 +170,9 @@ enum regnames {D0,D1,D2,D3,D4,D5,D6,D7,
#define NUM_REGS 72
-
-
-
-
void mips_gdb_stub_install(int enableThreads) ;
#endif /* defined (__mips__) */
-
#define MEMOPT_READABLE 1
#define MEMOPT_WRITEABLE 2
@@ -186,6 +180,4 @@ void mips_gdb_stub_install(int enableThreads) ;
int gdbstub_add_memsegment(unsigned,unsigned,int);
-
-
#endif /* _GDB_IF_H */
diff --git a/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c b/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c
index 4ad7482f27..3ca47623a8 100644
--- a/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c
+++ b/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c
@@ -129,11 +129,9 @@ int current_thread_registers[NUMREGBYTES/4];
typedef void (*ExceptionHook)(int); /* pointer to function with int parm */
typedef void (*Function)(); /* pointer to a function */
-
extern void putDebugChar(); /* write a single character */
extern int getDebugChar(); /* read and return a single char */
-
/************************/
/* FORWARD DECLARATIONS */
/************************/
@@ -154,7 +152,6 @@ const char gdb_hexchars[]="0123456789abcdef";
#define highhex(x) gdb_hexchars [(x >> 4) & 0xf]
#define lowhex(x) gdb_hexchars [x & 0xf]
-
/* We keep a whole frame cache here. "Why?", I hear you cry, "doesn't
GDB handle that sort of thing?" Well, yes, I believe the only
@@ -206,7 +203,6 @@ static ExceptionHook oldExceptionHook;
*/
const short exceptionSize[] = { 4,4,6,6,4,4,4,30,29,10,16,46,12,4,4,4 };
-
/************* jump buffer used for setjmp/longjmp **************************/
jmp_buf remcomEnv;
@@ -322,7 +318,6 @@ asm(" lea 4(%sp),%sp"); /* pull off 68000 return address */
#endif
asm(" rte");
-
#if M68K_HAS_VBR
/* This function is called when a 68020 exception occurs. It saves
* all the cpu and fpcp regs in the _registers array, creates a frame on a
@@ -493,7 +488,6 @@ saveDone: \n\
");
#endif
-
/*
* remcomHandler is a front end for handle_exception. It moves the
* stack pointer into an area reserved for debugger use in case the
@@ -553,7 +547,6 @@ char ch;
return (-1);
}
-
/* scan for the sequence $<data>#<checksum> */
void getpacket(buffer)
char * buffer;
@@ -610,7 +603,6 @@ char * buffer;
/* send the packet in buffer. The host get's one chance to read it.
This routine does not wait for a positive acknowledge. */
-
/*
* Send the packet in buffer and wait for a positive acknowledgement.
*/
@@ -664,7 +656,6 @@ char remcomInBuffer[BUFMAX];
char remcomOutBuffer[BUFMAX];
static short error;
-
void debug_error(
char * format,
char * parm
@@ -954,7 +945,6 @@ void handle_exception(int exceptionVector)
mem2hex (regptr, remcomOutBuffer, sizeof registers);
break;
-
case 'G': /* set the values of the CPU registers - return OK */
regptr = registers;
#if defined(GDB_STUB_ENABLE_THREAD_SUPPORT)
@@ -1243,7 +1233,6 @@ void handle_exception(int exceptionVector)
}
}
-
void
initializeRemcomErrorFrame()
{
diff --git a/c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c b/c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c
index 4cc1584087..55d12334d7 100644
--- a/c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c
+++ b/c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c
@@ -38,7 +38,6 @@ extern void *_RamBase;
extern void *_WorkspaceBase;
extern void *_HeapSize;
-
unsigned long _M68k_Ramsize;
void bsp_pretasking_hook(void)
diff --git a/c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h b/c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h
index 967faa8d24..8cbcb440d1 100644
--- a/c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h
+++ b/c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h
@@ -55,7 +55,6 @@ int uti596_attach(struct rtems_bsdnet_ifconfig * pConfig, int attaching );
*/
#define GROUP_BASE_ADDRESS 0x0000CC00
-
/*
* Representation of the VMEchip2 LCSR.
* Could be made more detailed.
@@ -244,7 +243,6 @@ typedef volatile struct nvram_config_ {
#endif
-
/*
* Flag to indicate if J1-4 is on (and parameters should be
* sought in User Area NVRAM)
@@ -257,7 +255,6 @@ typedef volatile struct nvram_config_ {
#define NVRAM_CONFIGURE 0
#endif
-
#ifdef __cplusplus
}
#endif
diff --git a/c/src/lib/libbsp/m68k/sim68000/clock/clockdrv.c b/c/src/lib/libbsp/m68k/sim68000/clock/clockdrv.c
index f3aac18351..6422025812 100644
--- a/c/src/lib/libbsp/m68k/sim68000/clock/clockdrv.c
+++ b/c/src/lib/libbsp/m68k/sim68000/clock/clockdrv.c
@@ -11,7 +11,6 @@
#define Clock_driver_support_install_isr( _new, _old ) \
do { _old = (rtems_isr_entry) set_vector( _new, CLOCK_VECTOR, 1 ); } while(0)
-
typedef struct {
volatile uint8_t cr; /* 0 - 0 : Timer Control Register */
volatile uint8_t pad0; /* 1 - 1 : pad */
@@ -44,7 +43,6 @@ void Clock_driver_support_at_tick()
t->sr = 0xA0; /* Negate timer interrupt request */
}
-
void Clock_driver_support_shutdown_hardware()
{
timer_hw_t *t = TIMER_BASE;
diff --git a/c/src/lib/libbsp/m68k/sim68000/console/conscfg.c b/c/src/lib/libbsp/m68k/sim68000/console/conscfg.c
index 6d00ec26e9..08663b3ae1 100644
--- a/c/src/lib/libbsp/m68k/sim68000/console/conscfg.c
+++ b/c/src/lib/libbsp/m68k/sim68000/console/conscfg.c
@@ -37,8 +37,6 @@
#define MC68681_FUNCTIONS &mc68681_fns_polled
#endif
-
-
console_tbl Console_Port_Tbl[] = {
{
"/dev/com0", /* sDeviceName */
diff --git a/c/src/lib/libbsp/m68k/sim68000/start/start.S b/c/src/lib/libbsp/m68k/sim68000/start/start.S
index 9c08095c91..23e34ebab9 100644
--- a/c/src/lib/libbsp/m68k/sim68000/start/start.S
+++ b/c/src/lib/libbsp/m68k/sim68000/start/start.S
@@ -391,7 +391,6 @@ zerobss_loop:
bsp_exitted:
jmp bsp_exitted
-
|
| Initialised data
|
diff --git a/c/src/lib/libbsp/mips/genmongoosev/clock/clockdrv.c b/c/src/lib/libbsp/mips/genmongoosev/clock/clockdrv.c
index 6fa22a4b13..6fca49089c 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/clock/clockdrv.c
+++ b/c/src/lib/libbsp/mips/genmongoosev/clock/clockdrv.c
@@ -23,8 +23,6 @@
#define CLOCK_VECTOR MONGOOSEV_IRQ_TIMER1
#endif
-
-
/* reset Timeout (TO) bit */
#define Clock_driver_support_at_tick() \
@@ -33,13 +31,11 @@
(MONGOOSEV_TIMER_CONTROL_COUNTER_ENABLE | MONGOOSEV_TIMER_CONTROL_INTERRUPT_ENABLE)); \
} while(0)
-
#define Clock_driver_support_install_isr( _new, _old ) \
do { \
_old = set_vector( _new, CLOCK_VECTOR, 1 ); \
} while(0)
-
#define Clock_driver_support_initialize_hardware() \
do { \
uint32_t _clicks = CPU_CLOCK_RATE_MHZ * rtems_configuration_get_microseconds_per_tick(); \
diff --git a/c/src/lib/libbsp/mips/genmongoosev/console/conscfg.c b/c/src/lib/libbsp/mips/genmongoosev/console/conscfg.c
index 1ae41b405a..e837e142e4 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/console/conscfg.c
+++ b/c/src/lib/libbsp/mips/genmongoosev/console/conscfg.c
@@ -26,7 +26,6 @@
#define MG5UART_FUNCTIONS &mg5uart_fns_polled
#endif
-
console_tbl Console_Port_Tbl[] = {
{
"/dev/com0", /* sDeviceName */
@@ -80,7 +79,6 @@ console_data Console_Port_Data[NUM_CONSOLE_PORTS];
rtems_device_minor_number Console_Port_Minor;
-
/*
* printk() support that simply routes printk to stderr
*/
diff --git a/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h b/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h
index 3beb8dc513..fbd54b3254 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h
+++ b/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h
@@ -28,7 +28,6 @@ extern "C" {
#include <rtems/clockdrv.h>
#include <libcpu/mongoose-v.h>
-
#ifndef CPU_CLOCK_RATE
#define CLOCK_RATE 12000000
#endif
@@ -36,15 +35,12 @@ extern "C" {
#define CPU_CLOCK_RATE_HZ CLOCK_RATE
#define CPU_CLOCK_RATE_MHZ (CLOCK_RATE/1000000)
-
/*
* Useful defines set here so we can avoid duplicating them all over
* creation.
*
*/
-
-
/*
* assertSoftwareInt defined in vectorisrs.c the prototype is here so
* userspace code can get to it directly.
@@ -52,10 +48,6 @@ extern "C" {
extern void assertSoftwareInterrupt(uint32_t);
-
-
-
-
/*
* Define the time limits for RTEMS Test Suite test durations.
* Long test and short test duration limits are provided. These
@@ -74,10 +66,8 @@ extern void assertSoftwareInterrupt(uint32_t);
*
*/
-
#define CLOCK_VECTOR MONGOOSEV_IRQ_TIMER1
-
#define MUST_WAIT_FOR_INTERRUPT 1
#if 1
@@ -85,8 +75,6 @@ extern void assertSoftwareInterrupt(uint32_t);
#define Install_tm27_vector( handler ) \
(void) set_vector( handler, MONGOOSEV_IRQ_SOFTWARE_1, 1 );
-
-
#define Cause_tm27_intr() assertSoftwareInterrupt(0);
#define Clear_tm27_intr()
diff --git a/c/src/lib/libbsp/mips/genmongoosev/include/lr333x0.h b/c/src/lib/libbsp/mips/genmongoosev/include/lr333x0.h
index d9f258a46e..ef0a44ebaf 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/include/lr333x0.h
+++ b/c/src/lib/libbsp/mips/genmongoosev/include/lr333x0.h
@@ -174,7 +174,6 @@ IMPORT BOOL sysICset0; /* inst cache set 0 present ? */
#define LR33300_DC_SIZE 0x800 /* 33300 Data cache = 2Kbytes */
#define LR33310_DC_SIZE 0x1000 /* 33310 Data cache = 4Kbytes */
-
#ifdef __cplusplus
}
#endif
diff --git a/c/src/lib/libbsp/mips/genmongoosev/start/mg5.h b/c/src/lib/libbsp/mips/genmongoosev/start/mg5.h
index 12776c8fc3..8d54133d64 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/start/mg5.h
+++ b/c/src/lib/libbsp/mips/genmongoosev/start/mg5.h
@@ -9,8 +9,6 @@
*/
#define PMON_ADDRESS 0xbfc00000
-
-
/*
** Mongoose V Peripheral Function Registers
*/
@@ -65,7 +63,6 @@
#define MG5_MAVN_RANGE_4_REG 0xfffe01d0 /* Range 4 */
#define MG5_MAVN_RANGE_5_REG 0xfffe01d4 /* Range 5 */
-
/*
** Uart Specific Peripheral Function Registers
*/
@@ -76,7 +73,6 @@
#define MG5_UART_1_TX_REG 0xfffe01f8
#define MG5_UART_1_BAUD_REG 0xfffe01fc
-
/*
** Section 2: Bit definitions
**
@@ -106,7 +102,6 @@
#define UART_CTSN_TEST_BIT 0x00000004
#define UART_RESET_BIT 0x00000002
-
/*
** Interrupt Status/Cause/Mask register bits - from 31 to 0
*/
@@ -138,7 +133,6 @@
#define EXTERN_INT_1_BIT 0x00000002
#define EXTERN_INT_0_BIT 0x00000001
-
/*
** MAVN Range Bits
*/
@@ -152,7 +146,6 @@
#define MAVN_GLOBAL_WRITE_BIT 0x00000200
-
#define MAVN_RANGE_0_READ_BIT 0x00000400
#define MAVN_RANGE_1_READ_BIT 0x00000800
#define MAVN_RANGE_2_READ_BIT 0x00001000
@@ -239,11 +232,6 @@
#define MAVN_START_ADDR_MASK 0xFFFFFE00
#define MAVN_PS_CODE_MASK 0x0000001F
-
-
-
-
-
/* lr33000.h - defines for LSI Logic LR33000 */
/* Define counter/timer register addresses */
@@ -268,11 +256,6 @@
/* lr33000.h */
-
-
-
-
-
#define _LR33300_
#define M_SRAM 0xfffe0100 /* SRAM config reg */
@@ -340,12 +323,6 @@
/* _LR33300_ */
-
-
-
-
-
-
#define _ERNIE_CORE_
#define M_BIU 0xfffe0130
@@ -396,7 +373,6 @@
/* _ERNIE_CORE_ */
-
/* Definitions for cache sizes */
#define LR33300_IC_SIZE 0x1000 /* 33300 Inst cache = 4Kbytes */
diff --git a/c/src/lib/libbsp/mips/genmongoosev/start/start.S b/c/src/lib/libbsp/mips/genmongoosev/start/start.S
index 5c997d7449..3861510259 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/start/start.S
+++ b/c/src/lib/libbsp/mips/genmongoosev/start/start.S
@@ -37,19 +37,15 @@
#define LANGUAGE_ASSEMBLY
#endif
-
#include <rtems/asm.h>
#include "regs.S"
#include "mg5.h"
-
-
#ifdef __mips16
/* This file contains 32 bit assembly code. */
.set nomips16
#endif
-
/*
** defined by linkcmds, pointing to the start of the relocation target
** memory, referenced in this way so we can avoid defining it
@@ -60,7 +56,6 @@
.text
.align 2
-
/**********************************************************************
**
** Function: _start
@@ -100,7 +95,6 @@ _branch:
mtc0 t0, C0_CAUSE
nop
-
/*
** Call cpuinit. Masking used to call EEPROM address of _cpuinit. Label is RAM label.
*/
@@ -123,8 +117,6 @@ _branch:
jal t0
nop
-
-
/*
** Print 'b'. Show that we started.
*/
@@ -137,10 +129,6 @@ _branch:
jal t0
nop
-
-
-
-
li k0,0
li k1,0
@@ -157,8 +145,6 @@ _branch:
srl t0,31 /* shift high bit down to bit 0 */
bnez t0,1f /* booting from above kseg1 */
-
-
/*
** Call IcacheFlush. Masking used to call EEPROM address of IcacheFlush. Label is RAM label.
*/
@@ -171,7 +157,6 @@ _branch:
jal t0
nop
-
/*
** Print 'I'. Show that we flushed I cache.
*/
@@ -184,7 +169,6 @@ _branch:
jal t0
nop
-
/*
** Call DcacheFlush. Masking used to call EEPROM address of DcacheFlush. Label is RAM label.
*/
@@ -196,7 +180,6 @@ _branch:
jal t0
nop
-
/*
** Print 'D'. Show that we flushed D cache.
*/
@@ -210,7 +193,6 @@ _branch:
jal t0
nop
-
1:
/*
** Print ' RTEMS b'. Show that we are booting.
@@ -287,7 +269,6 @@ _branch:
jal t0
nop
-
/*
** get the address of the _branch label above as it would appear in
** the relocated code
@@ -335,7 +316,6 @@ relocate:
nop
.end _start
-
/**********************************************************************
**
** Function: _start_in_ram
@@ -355,7 +335,6 @@ _start_in_ram:
la gp, _gp /* set the global data pointer */
.end _start_in_ram
-
/**********************************************************************
**
** Function: zerobss
@@ -405,7 +384,6 @@ zerobss:
.end zerobss
-
/**********************************************************************
**
** Function: _init
@@ -422,7 +400,6 @@ _initialize_rtems:
jal putch_rom
nop
-
/*
** Save the boot-time addresses of the I & D cache flush routines.
** Note, if we're running from RAM, we cannot manipulate the cache
@@ -447,7 +424,6 @@ _initialize_rtems:
nop
.end _initialize_rtems
-
/**********************************************************************
**
** Function: _sys_exit
@@ -461,8 +437,6 @@ _sys_exit:
jal t0
.end _sys_exit
-
-
/**********************************************************************
**
** function: putch
@@ -506,7 +480,6 @@ putch_rom:
j ra
.end putch_rom
-
/**********************************************************************
**
** function: config_uart
@@ -543,7 +516,6 @@ config_uart:
j ra
.end config_uart
-
/*************************************************************
* CpuInit:
* Perform CPU-specific initialization
@@ -670,7 +642,6 @@ _cpuinit:
li t0, 0x0
sw t0,M_SPEC2
-
/*
** SPEC3 Setup
** SPEC3 will be used for the SONIC ethernet controller.
@@ -797,14 +768,6 @@ _cpuinit:
j ra
.end _cpuinit
-
-
-
-
-
-
-
-
/**********************************************************************
**
** Keep the boot-time address of the I & D cache reset code for
@@ -816,8 +779,6 @@ _cpuinit:
_promIcache: .word 0
_promDcache: .word 0
-
-
.globl promCopyIcacheFlush
.ent promCopyIcacheFlush
.set noreorder
@@ -837,8 +798,6 @@ promCopyIcacheFlush:
.set reorder
.end promCopyIcacheFlush
-
-
.globl promCopyDcacheFlush
.ent promCopyDcacheFlush
.set noreorder
@@ -858,10 +817,6 @@ promCopyDcacheFlush:
.set reorder
.end promCopyDcacheFlush
-
-
-
-
/*******************************************************************************
** Function Name: IcacheFlush
** Description: This functions flushes the on chip icache.
@@ -900,7 +855,6 @@ icache_write:
bltu t8, t9, icache_write /* check to see if we are done */
nop
-
/*
** De-isolate I cache
*/
@@ -912,13 +866,11 @@ icache_write:
.set reorder
.end IcacheFlush
-
/********************************************************
** Function Name: DcacheFlush
** Description: This functions flushes the on chip dcache.
*/
-
.ent DcacheFlush
.set noreorder
DcacheFlush:
@@ -955,5 +907,4 @@ dcache_write:
.set reorder
.end DcacheFlush
-
/* EOF start.S */
diff --git a/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c b/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c
index 649cd64a0e..2447038991 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c
+++ b/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c
@@ -25,9 +25,6 @@
#include <rtems/libcsupport.h>
#include <libcpu/mongoose-v.h>
-
-
-
/*
* The original table from the application and our copy of it with
* some changes.
@@ -77,8 +74,6 @@ void bsp_pretasking_hook(void)
}
-
-
/*
* bsp_start
*
@@ -150,9 +145,6 @@ void bsp_start( void )
mips_install_isr_entries();
}
-
-
-
void clear_cache( void )
{
extern void promCopyIcacheFlush(void); /* from start.S */
@@ -162,14 +154,10 @@ void clear_cache( void )
promCopyDcacheFlush();
}
-
-
-
/*
//Structure filled in by get_mem_info.
-
struct s_mem
{
unsigned int size;
@@ -177,7 +165,6 @@ struct s_mem
unsigned int dcsize;
};
-
extern uint32_t _RamSize;
void get_mem_info ( struct s_mem *mem )
diff --git a/c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c b/c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c
index 4c6ee61736..e4b11b4426 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c
+++ b/c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c
@@ -21,7 +21,6 @@
#include <stdio.h>
#include <string.h>
-
/*
We're going to call right down into the uart driver because we're
@@ -38,13 +37,8 @@ extern int mg5uart_close(int major,int minor, void *arg);
extern void mg5uart_write_polled(int minor, char c );
extern int mg5uart_inbyte_nonblocking_polled(int minor);
-
static int debugUartEnabled = 0;
-
-
-
-
int mg5rdbgOpenGDBuart(int breakoninit)
{
struct termios t;
@@ -80,7 +74,6 @@ int mg5rdbgOpenGDBuart(int breakoninit)
gdbstub_add_memsegment(0x80b00000, 0x814fffff, MEMOPT_READABLE );
gdbstub_add_memsegment(0x81500000, 0x81ffffff, MEMOPT_READABLE | MEMOPT_WRITEABLE );
-
if( breakoninit )
{
printf("gdbstub: GDB stub entered, connect host debugger now\n");
@@ -97,16 +90,12 @@ int mg5rdbgOpenGDBuart(int breakoninit)
return RTEMS_SUCCESSFUL;
}
-
void mg5rdbgCloseGDBuart(void)
{
mg5uart_close(0,1,NULL);
debugUartEnabled = 0;
}
-
-
-
char getDebugChar (void)
{
if( debugUartEnabled )
@@ -120,16 +109,12 @@ char getDebugChar (void)
return 0;
}
-
void putDebugChar (char c)
{
if( debugUartEnabled )
return mg5uart_write_polled(1,c);
}
-
-
-
/*
{
* initialize hardware pc and data breakpoints to quiet state*
diff --git a/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c b/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c
index 24cf366dfb..110488e8b6 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c
+++ b/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c
@@ -96,5 +96,4 @@ void Set_find_average_overhead(
Timer_driver_Find_average_overhead = find_flag;
}
-
/* eof */
diff --git a/c/src/lib/libbsp/mips/jmr3904/clock/clockdrv.c b/c/src/lib/libbsp/mips/jmr3904/clock/clockdrv.c
index 0c176366dc..104f58553b 100644
--- a/c/src/lib/libbsp/mips/jmr3904/clock/clockdrv.c
+++ b/c/src/lib/libbsp/mips/jmr3904/clock/clockdrv.c
@@ -33,7 +33,6 @@
*((volatile uint32_t*) 0xFFFFC01C) = 0x00000700; \
} while(0)
-
#define Clock_driver_support_initialize_hardware()
#define Clock_driver_support_shutdown_hardware()
diff --git a/c/src/lib/libbsp/mips/jmr3904/console/console-io.c b/c/src/lib/libbsp/mips/jmr3904/console/console-io.c
index 9f5d59c3b0..9a77473abd 100644
--- a/c/src/lib/libbsp/mips/jmr3904/console/console-io.c
+++ b/c/src/lib/libbsp/mips/jmr3904/console/console-io.c
@@ -33,7 +33,6 @@
#define WRITE_UINT16( _register_, _value_ ) \
(*((volatile unsigned short *)(_register_)) = (_value_))
-
/* - Board specific addresses for serial chip */
#define DIAG_BASE 0xfffff300
#define DIAG_SLCR (DIAG_BASE+0x00)
diff --git a/c/src/lib/libbsp/mips/jmr3904/start/start.S b/c/src/lib/libbsp/mips/jmr3904/start/start.S
index b415cfc2a7..13206bc2b6 100644
--- a/c/src/lib/libbsp/mips/jmr3904/start/start.S
+++ b/c/src/lib/libbsp/mips/jmr3904/start/start.S
@@ -76,7 +76,6 @@ relocate:
nop
.end _start
-
.globl _start_in_ram
.ent _start_in_ram
_start_in_ram:
diff --git a/c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c b/c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c
index bd41945129..3ceb9775a3 100644
--- a/c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c
+++ b/c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c
@@ -113,7 +113,6 @@ struct s_mem
unsigned int dcsize;
};
-
void
get_mem_info (mem)
struct s_mem *mem;
diff --git a/c/src/lib/libbsp/mips/p4000/console/console.c b/c/src/lib/libbsp/mips/p4000/console/console.c
index 1183b06237..4071559166 100644
--- a/c/src/lib/libbsp/mips/p4000/console/console.c
+++ b/c/src/lib/libbsp/mips/p4000/console/console.c
@@ -28,7 +28,6 @@
* $Id$
*/
-
/*
* Rather than deleting this, it is commented out to (hopefully) help
* the submitter send updates.
@@ -36,8 +35,6 @@
* static char _sccsid[] = "@(#)console.c 08/20/96 1.6\n";
*/
-
-
#include <bsp.h>
#include <rtems/libio.h>
#include <ctype.h>
@@ -46,7 +43,6 @@ char idtsim_getchar( void );
void idtsim_putchar( char c );
void mips_leddisplay( char a, char b, char c, char d );
-
/* console_initialize
*
* This routine initializes the console IO driver.
@@ -78,7 +74,6 @@ rtems_device_driver console_initialize(
return RTEMS_SUCCESSFUL;
}
-
/* is_character_ready
*
* This routine returns TRUE if a character is available.
@@ -159,7 +154,6 @@ void outbyte(
}
-
#if 0
static int console_fd = -1;
#endif
diff --git a/c/src/lib/libbsp/mips/p4000/console/led.S b/c/src/lib/libbsp/mips/p4000/console/led.S
index e081ff741e..88b44ba689 100644
--- a/c/src/lib/libbsp/mips/p4000/console/led.S
+++ b/c/src/lib/libbsp/mips/p4000/console/led.S
@@ -6,7 +6,6 @@
#include <rtems/mips/idtcpu.h>
#include <rtems/asm.h>
-
FRAME(mips_leddisplay,sp,0,ra)
j ra
nop
@@ -16,7 +15,6 @@ FRAME(sbddisplay,sp,0,ra)
j ra
ENDFRAME(sbddisplay)
-
FRAME(sbdblank,sp,0,ra)
j ra
ENDFRAME(sbdblank)
diff --git a/c/src/lib/libbsp/mips/p4000/start/start.S b/c/src/lib/libbsp/mips/p4000/start/start.S
index 4bcd885e6a..8bf57e8b6f 100644
--- a/c/src/lib/libbsp/mips/p4000/start/start.S
+++ b/c/src/lib/libbsp/mips/p4000/start/start.S
@@ -35,7 +35,6 @@ LICENSED MATERIAL - PROGRAM PROPERTY OF IDT
#include <rtems/mips/idtcpu.h>
#include <rtems/asm.h>
-
.extern _fbss,4 /* this is defined by the linker */
.extern end,4 /* this is defined by the linker */
@@ -43,7 +42,6 @@ LICENSED MATERIAL - PROGRAM PROPERTY OF IDT
.text
-
#define TMP_STKSIZE 1024
/**************************************************************************
@@ -144,7 +142,6 @@ FRAME(start,sp,0,ra)
bltu v0,v1,3b
add v0,4
-
/************************************************************************
**
** Temporary Stack - needed to handle stack saves until
@@ -211,14 +208,12 @@ FRAME(start,sp,0,ra)
12:
#endif
-
/*
* P_STACKSIZE is the size of the Prom Stack.
* the prom stack grows downward
*/
#define P_STACKSIZE 0x2000 /* sets stack size to 8k */
-
/**************************************************************************
**
** Permanent Stack - now know top of memory, put permanent stack there
@@ -250,8 +245,6 @@ FRAME(start,sp,0,ra)
jal flush_cache_nowrite /* flush Data & Instruction caches */
#endif
-
-
/**************************************************************************
**
** If this chip supports a Translation Lookaside Buffer, clear it
@@ -272,7 +265,6 @@ FRAME(start,sp,0,ra)
jal init_tlb /* clear the tlb */
#endif
-
/************************************************************************
**
** Initialization required if using IDT/c or libc.a, standard C Lib
@@ -286,14 +278,12 @@ FRAME(start,sp,0,ra)
jal idtsim_init_file
/*********************** END I/O initialization **********************/
-
jal boot_card
jal idtsim_promexit
ENDFRAME(start)
-
.globl sim_mem_cfg
sim_mem_cfg:
.set noat
diff --git a/c/src/lib/libbsp/mips/p4000/startup/bspclean.c b/c/src/lib/libbsp/mips/p4000/startup/bspclean.c
index ebe97dbaae..825105f539 100644
--- a/c/src/lib/libbsp/mips/p4000/startup/bspclean.c
+++ b/c/src/lib/libbsp/mips/p4000/startup/bspclean.c
@@ -24,8 +24,6 @@
* static char _sccsid[] = "@(#)bspclean.c 03/15/96 1.1\n";
*/
-
-
#include <rtems.h>
#include <bsp.h>
diff --git a/c/src/lib/libbsp/mips/p4000/startup/idtmem.S b/c/src/lib/libbsp/mips/p4000/startup/idtmem.S
index eb843984ea..e7744e2ef9 100644
--- a/c/src/lib/libbsp/mips/p4000/startup/idtmem.S
+++ b/c/src/lib/libbsp/mips/p4000/startup/idtmem.S
@@ -67,7 +67,6 @@ scache_linesize:
.word 0
#endif
-
.text
#if __mips == 1
@@ -101,7 +100,6 @@ FRAME(config_Dcache,sp, CONFIGFRM, ra)
j ra
ENDFRAME(config_Dcache)
-
/*************************************************************************
**
** Config_Icache() -- determine size of Instruction cache
@@ -189,7 +187,6 @@ FRAME(_size_cache,sp,0,ra)
ENDFRAME(_size_cache)
.set reorder
-
#define FLUSHFRM (2*4)
/***************************************************************************
@@ -230,7 +227,6 @@ _Dflush_done:
j ra
ENDFRAME(flush_Dcache)
-
/***************************************************************************
**
** flush_Icache() - flush entire Instruction cache
@@ -326,7 +322,6 @@ FRAME(clear_Dcache,sp,0,ra)
j ra
ENDFRAME(clear_Dcache)
-
/**************************************************************************
**
** clear_Icache(base_addr, byte_count) - flush portion of Instruction cache
@@ -383,14 +378,12 @@ FRAME(clear_Icache,sp,0,ra)
j ra
ENDFRAME(clear_Icache)
-
/**************************************************************************
**
** get_mem_conf - get memory configuration
**
***************************************************************************/
-
FRAME(get_mem_conf,sp,0,ra)
lw t6, mem_size
@@ -530,7 +523,6 @@ LEAF(_size_cache)
1: j ra
END(_size_cache)
-
/*
* void config_cache() R4000
*
@@ -552,7 +544,6 @@ LEAF(config_cache)
8: j ra
END(config_cache)
-
/*
* void _init_cache() R4000
*/
@@ -604,7 +595,6 @@ LEAF(_init_cache)
j ra
END(_init_cache)
-
/*
* void flush_cache (void) R4000
*
@@ -832,8 +822,6 @@ LEAF(clean_icache_indexed)
2: j ra
END(clean_icache_indexed)
-
-
/*
* void clean_scache (unsigned kva, size_t n) R4000
*
@@ -907,7 +895,6 @@ END(clean_scache_nowrite_indexed)
**
***************************************************************************/
-
FRAME(get_mem_conf,sp,0,ra)
lw t6, mem_size
diff --git a/c/src/lib/libbsp/mips/p4000/startup/idttlb.S b/c/src/lib/libbsp/mips/p4000/startup/idttlb.S
index bfe741afcc..718d568482 100644
--- a/c/src/lib/libbsp/mips/p4000/startup/idttlb.S
+++ b/c/src/lib/libbsp/mips/p4000/startup/idttlb.S
@@ -23,7 +23,6 @@ LICENSED MATERIAL - PROGRAM PROPERTY OF IDT
$Id$
*/
-
/*
** idttlb.s - fetch the registers associated with and the contents
** of the tlb.
@@ -34,7 +33,6 @@ LICENSED MATERIAL - PROGRAM PROPERTY OF IDT
#include <rtems/mips/idtcpu.h>
#include <rtems/asm.h>
-
.text
#if __mips == 1
@@ -375,7 +373,6 @@ FRAME(map_tlb4000,sp,0,ra)
ENDFRAME(map_tlb4000)
#endif
-
/*
** Set current TLBPID. This assumes PID is positioned correctly in reg.
** a0.
diff --git a/c/src/lib/libbsp/mips/p4000/startup/setvec.c b/c/src/lib/libbsp/mips/p4000/startup/setvec.c
index ccf5b46abc..fb0e5a4824 100644
--- a/c/src/lib/libbsp/mips/p4000/startup/setvec.c
+++ b/c/src/lib/libbsp/mips/p4000/startup/setvec.c
@@ -29,7 +29,6 @@
* static char _sccsid[] = "@(#)setvec.c 04/25/96 1.2\n";
*/
-
#include <rtems.h>
#include <bsp.h>
diff --git a/c/src/lib/libbsp/mips/shared/gdbstub/gdb_if.h b/c/src/lib/libbsp/mips/shared/gdbstub/gdb_if.h
index bc8efb72ae..e7bd72d615 100644
--- a/c/src/lib/libbsp/mips/shared/gdbstub/gdb_if.h
+++ b/c/src/lib/libbsp/mips/shared/gdbstub/gdb_if.h
@@ -32,7 +32,6 @@ struct rtems_gdb_stub_thread_info {
int parse_zbreak(const char *in, int *type, unsigned char **addr, int *len);
-
char* mem2hstr(char *buf, const unsigned char *mem, int count);
int hstr2mem(unsigned char *mem, const char *buf, int count);
void set_mem_err(void);
@@ -160,14 +159,8 @@ void rtems_gdb_process_query(
#define NUM_REGS 72
-
-
-
-
-
void mips_gdb_stub_install(int enableThreads) ;
-
#define MEMOPT_READABLE 1
#define MEMOPT_WRITEABLE 2
@@ -177,6 +170,4 @@ void mips_gdb_stub_install(int enableThreads) ;
int gdbstub_add_memsegment(unsigned,unsigned,int);
-
-
#endif /* _GDB_IF_H */
diff --git a/c/src/lib/libbsp/mips/shared/gdbstub/memlimits.h b/c/src/lib/libbsp/mips/shared/gdbstub/memlimits.h
index e9fd03c5f2..4180b9d3c0 100644
--- a/c/src/lib/libbsp/mips/shared/gdbstub/memlimits.h
+++ b/c/src/lib/libbsp/mips/shared/gdbstub/memlimits.h
@@ -78,7 +78,6 @@ struct memseg
#define NUM_MEMSEGS 10
-
int add_memsegment(unsigned,unsigned,int);
int is_readable(unsigned,unsigned);
int is_writeable(unsigned,unsigned);
diff --git a/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c b/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c
index fc0f867d8b..a6920fe93b 100644
--- a/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c
+++ b/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c
@@ -210,8 +210,6 @@ static char do_threads; /* != 0 means we are supporting threads */
extern char getDebugChar (void);
extern void putDebugChar (char);
-
-
/*
* The following definitions are used for the gdb stub memory map
*/
@@ -224,11 +222,6 @@ static int is_readable(unsigned,unsigned);
static int is_writeable(unsigned,unsigned);
static int is_steppable(unsigned);
-
-
-
-
-
/*
* BUFMAX defines the maximum number of characters in the inbound & outbound
* packet buffers. At least 4+(sizeof registers)*2 bytes will be needed for
@@ -272,7 +265,6 @@ const char gdb_hexchars[] = "0123456789abcdef";
#define highhex(x) gdb_hexchars [(x >> 4) & 0xf]
#define lowhex(x) gdb_hexchars [x & 0xf]
-
/*
* Convert length bytes of data starting at addr into hex, placing the
* result in buf. Return a pointer to the last (null) char in buf.
@@ -359,7 +351,6 @@ hex (char ch)
return (-1);
}
-
/*
* Convert a string from hex to int until a non-hex digit
* is found. Return the number of characters processed.
@@ -389,7 +380,6 @@ hexToInt (char **ptr, int *intValue)
return (numChars);
}
-
/*
* Convert a string from hex to long long until a non-hex
* digit is found. Return the number of characters processed.
@@ -419,7 +409,6 @@ hexToLongLong (char **ptr, long long *intValue)
return (numChars);
}
-
/*
* Convert the hex array buf into binary, placing the result at the
* specified address. If the conversion fails at any point (i.e.,
@@ -506,7 +495,6 @@ hex2mem (char *buf, void *_addr, int length)
return 1;
}
-
/* Convert the binary stream in BUF to memory.
Gdb will escape $, #, and the escape char (0x7d).
@@ -544,7 +532,6 @@ bin2mem (
return mem;
}
-
/*
* Scan the input stream for a sequence for the form $<data>#<checksum>.
@@ -597,7 +584,6 @@ getpacket (char *buffer)
while (checksum != xmitcsum);
}
-
/*
* Get a positive/negative acknowledgment for a transmitted packet.
*/
@@ -615,7 +601,6 @@ getAck (void)
return c;
}
-
/*
* Send the packet in buffer and wait for a positive acknowledgement.
*/
@@ -665,11 +650,6 @@ putpacket (char *buffer)
while (getAck () != '+');
}
-
-
-
-
-
/*
* Saved instruction data for single step support
@@ -681,7 +661,6 @@ static struct
}
instrBuffer;
-
/*
* If a step breakpoint was planted restore the saved instruction.
*/
@@ -696,7 +675,6 @@ undoSStep (void)
instrBuffer.savedInstr = NOP_INSTR;
}
-
/*
* If a single step is requested put a temporary breakpoint at the instruction
* which logically follows the next one to be executed. If the next instruction
@@ -818,7 +796,6 @@ doSStep (void)
break;
}
-
if( is_steppable((unsigned)instrBuffer.targetAddr) && *(instrBuffer.targetAddr) != BREAK_INSTR )
{
instrBuffer.savedInstr = *instrBuffer.targetAddr;
@@ -832,10 +809,6 @@ doSStep (void)
return;
}
-
-
-
-
/*
* Translate the R4600 exception code into a Unix-compatible signal.
@@ -945,7 +918,6 @@ void gdb_stub_report_exception_info(
*optr++ = '\0';
}
-
/*
@@ -954,15 +926,12 @@ void gdb_stub_report_exception_info(
*/
CPU_Interrupt_frame current_thread_registers;
-
-
/*
* This function handles all exceptions. It only does two things:
* it figures out why it was activated and tells gdb, and then it
* reacts to gdb's requests.
*/
-
void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
{
int host_has_detached = 0;
@@ -975,7 +944,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
void *regptr;
int binary;
-
registers = (mips_register_t *)frame;
thread = 0;
@@ -986,7 +954,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
#endif
current_thread = thread;
-
{
/* reapply all breakpoints regardless of how we came in */
struct z0break *z0, *zother;
@@ -1002,8 +969,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
}
}
-
-
/* see if we're coming from a breakpoint */
if( *((unsigned *)frame->epc) == BREAK_INSTR )
{
@@ -1040,16 +1005,10 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
}
}
-
-
-
-
/* reply to host that an exception has occurred with some basic info */
gdb_stub_report_exception_info(vector, frame, thread);
putpacket (outBuffer);
-
-
while (!(host_has_detached)) {
outBuffer[0] = '\0';
getpacket (inBuffer);
@@ -1079,7 +1038,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
mem2hex (regptr, NUM_REGS * (sizeof registers), outBuffer);
break;
-
case 'G': /* set the values of the CPU registers - return OK */
regptr = registers;
#if defined(GDB_STUB_ENABLE_THREAD_SUPPORT)
@@ -1092,7 +1050,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
strcpy (outBuffer, "E00"); /* E00 = bad "set register" command */
break;
-
case 'P':
/* Pn...=r... Write register n... with value r... - return OK */
ptr = &inBuffer[1];
@@ -1107,7 +1064,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
strcpy (outBuffer, "E00"); /* E00 = bad "set register" command */
break;
-
case 'm':
/* mAA..AA,LLLL Read LLLL bytes at address AA..AA */
ptr = &inBuffer[1];
@@ -1121,7 +1077,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
strcpy (outBuffer, "E01"); /* E01 = bad 'm' command */
break;
-
case 'X': /* XAA..AA,LLLL:<binary data>#cs */
binary = 1;
case 'M':
@@ -1142,8 +1097,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
strcpy (outBuffer, "E02"); /* E02 = bad 'M' command */
break;
-
-
case 'c':
/* cAA..AA Continue at address AA..AA(optional) */
case 's':
@@ -1159,10 +1112,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
}
goto stubexit;
-
-
-
-
case 'k': /* remove all zbreaks if any */
dumpzbreaks:
{
@@ -1193,10 +1142,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
}
break;
-
-
-
-
case 'q': /* queries */
#if defined(GDB_STUB_ENABLE_THREAD_SUPPORT)
rtems_gdb_process_query( inBuffer, outBuffer, do_threads, thread );
@@ -1281,9 +1226,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
#endif
break;
-
-
-
case 'Z': /* Add breakpoint */
{
int ret, type, len;
@@ -1326,7 +1268,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
break;
}
-
/* Get entry */
z0 = z0break_avail;
z0break_avail = z0break_avail->next;
@@ -1376,13 +1317,11 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
}
break;
-
case 'z': /* remove breakpoint */
if (inBuffer[1] == 'z')
{
goto dumpzbreaks;
-
/*
* zz packet - remove all breaks *
z0last = NULL;
@@ -1417,7 +1356,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
unsigned *address;
struct z0break *z0;
-
ret = parse_zbreak(inBuffer, &type, (unsigned char **)&address, &len);
if (!ret) {
strcpy(outBuffer, "E01");
@@ -1479,7 +1417,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
}
break;
-
default: /* do nothing */
break;
}
@@ -1510,15 +1447,6 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
return;
}
-
-
-
-
-
-
-
-
-
static int numsegs;
static struct memseg memsegments[NUM_MEMSEGS];
@@ -1534,9 +1462,6 @@ int gdbstub_add_memsegment( unsigned base, unsigned end, int opts )
return RTEMS_SUCCESSFUL;
}
-
-
-
static int is_readable(unsigned ptr, unsigned len)
{
struct memseg *ms;
@@ -1554,7 +1479,6 @@ static int is_readable(unsigned ptr, unsigned len)
return 0;
}
-
static int is_writeable(unsigned ptr, unsigned len)
{
struct memseg *ms;
@@ -1572,7 +1496,6 @@ static int is_writeable(unsigned ptr, unsigned len)
return 0;
}
-
static int is_steppable(unsigned ptr)
{
struct memseg *ms;
@@ -1590,19 +1513,6 @@ static int is_steppable(unsigned ptr)
return 0;
}
-
-
-
-
-
-
-
-
-
-
-
-
-
static char initialized = 0; /* 0 means we are not initialized */
void mips_gdb_stub_install(int enableThreads)
diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/clock/ckinit.c b/c/src/lib/libbsp/no_cpu/no_bsp/clock/ckinit.c
index f5aaeb9eac..640710baa6 100644
--- a/c/src/lib/libbsp/no_cpu/no_bsp/clock/ckinit.c
+++ b/c/src/lib/libbsp/no_cpu/no_bsp/clock/ckinit.c
@@ -21,7 +21,6 @@
void Clock_exit( void );
rtems_isr Clock_isr( rtems_vector_number vector );
-
/*
* The interrupt vector number associated with the clock tick device
* driver.
@@ -61,7 +60,6 @@ rtems_isr_entry Old_ticker;
void Clock_exit( void );
-
/*
* Isr Handler
*/
diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/console/console.c b/c/src/lib/libbsp/no_cpu/no_bsp/console/console.c
index 7dd9d12f1b..251cca1eeb 100644
--- a/c/src/lib/libbsp/no_cpu/no_bsp/console/console.c
+++ b/c/src/lib/libbsp/no_cpu/no_bsp/console/console.c
@@ -47,7 +47,6 @@ rtems_device_driver console_initialize(
return RTEMS_SUCCESSFUL;
}
-
/* is_character_ready
*
* This routine returns TRUE if a character is available.
@@ -117,7 +116,6 @@ void outbyte(
outbyte( '\r' );
}
-
/*
* Open entry point
*/
diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/getcfg.c b/c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/getcfg.c
index 2210634983..fc3b3ba062 100644
--- a/c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/getcfg.c
+++ b/c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/getcfg.c
@@ -42,7 +42,6 @@ XXX: FIX THE COMMENTS BELOW WHEN THE CPU IS KNOWN
#define INTERRUPT 0 /* XXX: */
#define POLLING 1 /* XXX: fix me -- is polling ONLY!!! */
-
shm_config_table BSP_shm_cfgtbl;
void Shm_Get_configuration(
diff --git a/c/src/lib/libbsp/or32/orp/clock/clockdrv.c b/c/src/lib/libbsp/or32/orp/clock/clockdrv.c
index c0a15042c8..7577d11e4c 100644
--- a/c/src/lib/libbsp/or32/orp/clock/clockdrv.c
+++ b/c/src/lib/libbsp/or32/orp/clock/clockdrv.c
@@ -23,7 +23,6 @@ void Clock_exit( void );
void Clock_isr( rtems_vector_number vector,unsigned int pc,
unsigned int address, unsigned int sr);
-
/*
* The interrupt vector number associated with the clock tick device
* driver.
diff --git a/c/src/lib/libbsp/or32/orp/console/console.c b/c/src/lib/libbsp/or32/orp/console/console.c
index 5630f8cd60..4d32bb6941 100644
--- a/c/src/lib/libbsp/or32/orp/console/console.c
+++ b/c/src/lib/libbsp/or32/orp/console/console.c
@@ -131,7 +131,6 @@ rtems_device_driver console_initialize(
return RTEMS_SUCCESSFUL;
}
-
/* is_character_ready
*
* This routine returns TRUE if a character is available.
@@ -207,7 +206,6 @@ void outbyte(char ch)
outbyte( '\r' );
}
-
/*
* Open entry point
*/
@@ -254,7 +252,6 @@ rtems_device_driver console_read(
buffer = rw_args->buffer;
maximum = rw_args->count;
-
for (count = 0; count < maximum; count++)
{
buffer[ count ] = inbyte();
diff --git a/c/src/lib/libbsp/or32/orp/start/start.S b/c/src/lib/libbsp/or32/orp/start/start.S
index af2a2d07d5..1ea2fc4ee5 100644
--- a/c/src/lib/libbsp/or32/orp/start/start.S
+++ b/c/src/lib/libbsp/or32/orp/start/start.S
@@ -17,7 +17,6 @@
#include <rtems/asm.h>
-
/* Since we don't yet have a memory map for Bender, I am
assuming the following. Hopefully, this will be easily
modified once we get the real values.
@@ -307,7 +306,6 @@ __Internal_error_Occurred:
.scl -1
.endef
-
/*********************/
/* _int_reenable */
/*********************/
@@ -427,7 +425,6 @@ L4_2:
.scl -1
.endef
-
/* Code wasted between here and 0x300 */
/**************************************/
diff --git a/c/src/lib/libbsp/powerpc/dmv177/clock/clock.c b/c/src/lib/libbsp/powerpc/dmv177/clock/clock.c
index b768a20541..31268611bc 100644
--- a/c/src/lib/libbsp/powerpc/dmv177/clock/clock.c
+++ b/c/src/lib/libbsp/powerpc/dmv177/clock/clock.c
@@ -46,7 +46,6 @@ uint32_t Clock_Decrementer_value;
*/
rtems_isr_entry Old_ticker;
-
void Clock_exit( void );
/*
diff --git a/c/src/lib/libbsp/powerpc/dmv177/configure.ac b/c/src/lib/libbsp/powerpc/dmv177/configure.ac
index 9088482e1e..506f63ba6a 100644
--- a/c/src/lib/libbsp/powerpc/dmv177/configure.ac
+++ b/c/src/lib/libbsp/powerpc/dmv177/configure.ac
@@ -46,7 +46,6 @@ RTEMS_BSPOPTS_HELP([DMV177_USE_INSTRUCTION_CACHE],
This code can conflict with debuggers or emulators.
The BSP actually contains the call that enables this.])
-
# Explicitly list all Makefiles here
AC_CONFIG_FILES([Makefile
wrapup/Makefile
diff --git a/c/src/lib/libbsp/powerpc/dmv177/include/bsp.h b/c/src/lib/libbsp/powerpc/dmv177/include/bsp.h
index 1c37e843b2..7dbff30a6d 100644
--- a/c/src/lib/libbsp/powerpc/dmv177/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/dmv177/include/bsp.h
@@ -58,14 +58,12 @@ int rtems_dmv177_sonic_driver_attach(struct rtems_bsdnet_ifconfig *config);
#define RTEMS_BSP_NETWORK_DRIVER_NAME "sonic1"
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_dmv177_sonic_driver_attach
-
/*
* The following macro calculates the Baud constant. For the Z8530 chip.
*/
#define Z8530_Baud( _frequency, _clock_by, _baud_rate ) \
( (_frequency /( _clock_by * 2 * _baud_rate)) - 2)
-
/*
* Define the time limits for RTEMS Test Suite test durations.
* Long test and short test duration limits are provided. These
@@ -77,7 +75,6 @@ int rtems_dmv177_sonic_driver_attach(struct rtems_bsdnet_ifconfig *config);
#define MAX_LONG_TEST_DURATION 300 /* 5 minutes = 300 seconds */
#define MAX_SHORT_TEST_DURATION 3 /* 3 seconds */
-
/*
* Stuff for Time Test 27
*/
@@ -127,7 +124,6 @@ int rtems_dmv177_sonic_driver_attach(struct rtems_bsdnet_ifconfig *config);
* NOTE: Use the standard Clock driver entry
*/
-
/*
* Information placed in the linkcmds file.
*/
@@ -168,8 +164,6 @@ void DEBUG_puts( char *string );
void BSP_fatal_return( void );
-
-
void bsp_start( void );
void bsp_cleanup( void );
diff --git a/c/src/lib/libbsp/powerpc/dmv177/include/dmv170.h b/c/src/lib/libbsp/powerpc/dmv177/include/dmv170.h
index 4a54fd7573..a68e4ce9e9 100644
--- a/c/src/lib/libbsp/powerpc/dmv177/include/dmv170.h
+++ b/c/src/lib/libbsp/powerpc/dmv177/include/dmv170.h
@@ -22,7 +22,6 @@
#ifndef _INCLUDE_DMV170_h
#define _INCLUDE_DMV170_h
-
/*
* DY-4 uses a non-standard clock for the Exar 88681.
*/
@@ -215,7 +214,6 @@ extern "C" {
#define DMV170_64_BIT_NON_VOLITAL_MEM_INSTALLED 0x2000
#define DMV170_64_BIT_NON_VOLITAL_MEM_NOT_INSTALLED 0x0000
-
/*
* DUART Baud Rate Definitions.
*/
@@ -224,7 +222,6 @@ extern "C" {
#define DMV170_RTC_FREQUENCY 0x0000
-
/*
* CPU General Purpose Interrupt definations (PPC_IRQ_EXTERNAL).
* Note: For the interrupt level read the lower 3 bits of the
@@ -271,7 +268,6 @@ extern "C" {
#define SCV64_Is_IRQ4( _status ) (_status&0x10)
#define SCV64_Is_IRQ5( _status ) (_status&0x20)
-
/*
* scv64.c
*/
diff --git a/c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c b/c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c
index e7e357d0d2..731a016dd1 100644
--- a/c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c
+++ b/c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c
@@ -95,7 +95,6 @@ typedef struct {
*/
#define AUTOVECTOR_5 0x80
-
/*
* Set the registers pointer to the base address of the SCV64
*/
diff --git a/c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c b/c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c
index 5b3d292c78..82a2fdc001 100644
--- a/c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c
+++ b/c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c
@@ -69,7 +69,6 @@ rtems_isr external_exception_ISR (
Chain_Node *node;
EE_ISR_Type *ee_isr;
-
/*
* Get all active interrupts.
*/
@@ -115,7 +114,6 @@ rtems_isr external_exception_ISR (
}
}
-
/*PAGE
*
* initialize_external_exception_vector
diff --git a/c/src/lib/libbsp/powerpc/dmv177/timer/timer.c b/c/src/lib/libbsp/powerpc/dmv177/timer/timer.c
index c9a406f6bf..1170270ae3 100644
--- a/c/src/lib/libbsp/powerpc/dmv177/timer/timer.c
+++ b/c/src/lib/libbsp/powerpc/dmv177/timer/timer.c
@@ -38,10 +38,8 @@ void Timer_initialize()
* Timer runs long and accurate enough not to require an interrupt.
*/
-
Timer_driver_Start_time = PPC_Get_timebase_register();
-
}
#define AVG_OVERHEAD 24 /* It typically takes 24 instructions */
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/canbus/canbus.c b/c/src/lib/libbsp/powerpc/eth_comm/canbus/canbus.c
index e9cce22c8a..c985209e0b 100644
--- a/c/src/lib/libbsp/powerpc/eth_comm/canbus/canbus.c
+++ b/c/src/lib/libbsp/powerpc/eth_comm/canbus/canbus.c
@@ -30,7 +30,6 @@ i82527_msg_t rxMsgBuf[NUM_CAN_DEVS][RX_CAN_BUF_SIZE];
volatile i82527_t *candev[NUM_CAN_DEVS];
-
static rtems_isr
canInterruptHandler (rtems_vector_number v)
{
@@ -94,7 +93,6 @@ canInterruptHandler (rtems_vector_number v)
}
}
-
candev[dev]->msg15.ctrl0 = 0xff & (I82527_MSG_CTRL_MSGVAL_SET |
I82527_MSG_CTRL_INTPND_CLR);
candev[dev]->msg15.ctrl1 = 0xff & (I82527_MSG_CTRL_NEWDAT_CLR |
@@ -145,7 +143,6 @@ rtems_device_driver canbus_initialize(
#error NUM_CAN_DEVS is 0. It needs to be at least 1
#endif /* NUM_CAN_DEVS > 0 */
-
for (i=0; i < NUM_CAN_DEVS; i++) {
/* clear rx buffers */
@@ -161,7 +158,6 @@ rtems_device_driver canbus_initialize(
candev[i]->cir = I82527_CIR_DMC; /* Divide memory clock by 2 */
-
/* We want 250 kbps so assuming an input clock rate of 10 MHz:
* DSC = 0 => SCLK = 10 MHz, tSCLK = 100ns
* BRP = 1 => tq = 200ns
@@ -336,7 +332,6 @@ rtems_device_driver canbus_close(
return RTEMS_SUCCESSFUL;
}
-
rtems_device_driver canbus_read(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -421,8 +416,6 @@ rtems_device_driver canbus_write(
I82527_MSG_CTRL_CPUUPD_CLR |
I82527_MSG_CTRL_TXRQ_SET);
-
-
return RTEMS_SUCCESSFUL;
}
rtems_device_driver canbus_control(
@@ -434,7 +427,6 @@ rtems_device_driver canbus_control(
return RTEMS_SUCCESSFUL;
}
-
/* part of old canbus_read */
#if 0
for (i=0; i < RX_CAN_BUF_SIZE) {
@@ -453,7 +445,6 @@ rtems_device_driver canbus_control(
for (j=0; j < pkt_len; j++)
msg.data[j] = rxMsgBuf[minor][i].data[j];
-
/* wait until there is a msg */
while (!(candev->msg15.ctrl1 & I82527_MSG_CTRL_NEWDAT))
continue;
@@ -473,6 +464,5 @@ rtems_device_driver canbus_control(
candev->status = 0x0;
-
return RTEMS_SUCCESSFUL;
#endif
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/include/canbus.h b/c/src/lib/libbsp/powerpc/eth_comm/include/canbus.h
index e32d3c6338..1611fab1b2 100644
--- a/c/src/lib/libbsp/powerpc/eth_comm/include/canbus.h
+++ b/c/src/lib/libbsp/powerpc/eth_comm/include/canbus.h
@@ -144,7 +144,6 @@ extern i82527_t canbus0;
extern i82527_t canbus1;
extern i82527_t canbus2;
-
rtems_device_driver canbus_initialize(rtems_device_major_number,
rtems_device_minor_number,
void *);
@@ -164,7 +163,6 @@ rtems_device_driver canbus_control(rtems_device_major_number,
rtems_device_minor_number,
void *);
-
#define CANBUS_DRIVER_TABLE_ENTRY \
{ canbus_initialize, canbus_open, canbus_close, \
canbus_read, canbus_write, canbus_control }
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/include/info.h b/c/src/lib/libbsp/powerpc/eth_comm/include/info.h
index d205fed121..3dcc8e380c 100644
--- a/c/src/lib/libbsp/powerpc/eth_comm/include/info.h
+++ b/c/src/lib/libbsp/powerpc/eth_comm/include/info.h
@@ -87,6 +87,4 @@ typedef struct BoardInfoBlock_ {
#define IFACE_RS232_TX4 0x0100;
#define IFACE_RS232_RX4 0x0200;
-
-
#endif /* __info_h__*/
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/irq/irq.c b/c/src/lib/libbsp/powerpc/eth_comm/irq/irq.c
index fe4b7fa418..9f4b5ce818 100644
--- a/c/src/lib/libbsp/powerpc/eth_comm/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/eth_comm/irq/irq.c
@@ -63,7 +63,6 @@ static inline int is_processor_irq(const rtems_irq_symbolic_name irqLine)
);
}
-
/*
* masks used to mask off the interrupts. For exmaple, for ILVL2, the
* mask is used to mask off interrupts ILVL2, IRQ3, ILVL3, ... IRQ7
@@ -250,7 +249,6 @@ int BSP_install_rtems_irq_handler (const rtems_irq_connect_data* irq)
return 1;
}
-
int BSP_get_current_rtems_irq_handler (rtems_irq_connect_data* irq)
{
if (!isValidInterrupt(irq->name)) {
@@ -484,8 +482,6 @@ void C_dispatch_irq_handler (CPU_Interrupt_frame *frame, unsigned int excNum)
}
}
-
-
void _ThreadProcessSignalsFromIrq (BSP_Exception_frame* ctx)
{
/*
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/irq/irq.h b/c/src/lib/libbsp/powerpc/eth_comm/irq/irq.h
index 635ee42fb8..daa6290878 100644
--- a/c/src/lib/libbsp/powerpc/eth_comm/irq/irq.h
+++ b/c/src/lib/libbsp/powerpc/eth_comm/irq/irq.h
@@ -21,7 +21,6 @@
#ifndef LIBBSP_POWERPC_ETH_COMM_IRQ_IRQ_H
#define LIBBSP_POWERPC_ETH_COMM_IRQ_IRQ_H
-
#define BSP_ASM_IRQ_VECTOR_BASE 0x0
#ifndef ASM
@@ -143,7 +142,6 @@ typedef enum {
#define CPM_INTERRUPT
-
/*
* Type definition for RTEMS managed interrupts
*/
@@ -217,9 +215,6 @@ typedef struct {
rtems_irq_prio* irqPrioTbl;
}rtems_irq_global_settings;
-
-
-
/*-------------------------------------------------------------------------+
| Function Prototypes.
+--------------------------------------------------------------------------*/
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/irq/irq_asm.S b/c/src/lib/libbsp/powerpc/eth_comm/irq/irq_asm.S
index 38c7d2283d..0f08a13434 100644
--- a/c/src/lib/libbsp/powerpc/eth_comm/irq/irq_asm.S
+++ b/c/src/lib/libbsp/powerpc/eth_comm/irq/irq_asm.S
@@ -21,7 +21,6 @@
#include <bsp/vectors.h>
#include <libcpu/raw_exception.h>
-
#define SYNC \
sync; \
isync
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/network/network.c b/c/src/lib/libbsp/powerpc/eth_comm/network/network.c
index 4ed7a0daa1..ed0fdde29b 100644
--- a/c/src/lib/libbsp/powerpc/eth_comm/network/network.c
+++ b/c/src/lib/libbsp/powerpc/eth_comm/network/network.c
@@ -449,7 +449,6 @@ m860_fec_initialize_hardware (struct m860_enet_struct *sc)
*/
m8xx.pgcra &= ~0x80;
-
/*
* Set SIU interrupt level to LVL2
*
@@ -556,8 +555,6 @@ m860_fec_initialize_hardware (struct m860_enet_struct *sc)
sc->txBdHead = sc->txBdTail = 0;
sc->txBdActiveCount = 0;
-
-
/*
* Mask all FEC interrupts and clear events
*/
@@ -573,7 +570,6 @@ m860_fec_initialize_hardware (struct m860_enet_struct *sc)
}
-
/*
* Soak up buffer descriptors that have been sent
* Note that a buffer descriptor can't be retired as soon as it becomes
@@ -1308,7 +1304,6 @@ fec_init (void *arg)
else
m8xx.fec.r_cntrl &= ~0x8;
-
/*
* Tell the world that we're running.
*/
@@ -1320,7 +1315,6 @@ fec_init (void *arg)
m8xx.fec.ecntrl = 0x2;
}
-
/*
* Stop the device
*/
@@ -1563,7 +1557,6 @@ rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config)
if (ifp->if_softc != NULL)
return 0;
-
/*
* Process options
*/
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/start/start.S b/c/src/lib/libbsp/powerpc/eth_comm/start/start.S
index 288b7f3cd9..61b5b39d1f 100644
--- a/c/src/lib/libbsp/powerpc/eth_comm/start/start.S
+++ b/c/src/lib/libbsp/powerpc/eth_comm/start/start.S
@@ -45,8 +45,6 @@
* can tell. It should still be in the papyrus BSP. -Jay
*/
-
-
/*
* On entry to download_entry, R3 will hold a pointer to a Board Info
* Block (boardinfo_t). This should be copied as soon as possible
@@ -81,7 +79,6 @@ PUBLIC_VAR (text_length)
text_length:
.long text.size
-
/*
* Initialization code
*/
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/startup/bspstart.c b/c/src/lib/libbsp/powerpc/eth_comm/startup/bspstart.c
index 3d830a9f6e..ad0cdcc183 100644
--- a/c/src/lib/libbsp/powerpc/eth_comm/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/eth_comm/startup/bspstart.c
@@ -165,7 +165,6 @@ void bsp_start(void)
if (heap_start & (CPU_ALIGNMENT-1))
heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
-
ws_start = heap_start + (256 * 1024);
if (ws_start & ((512 * 1024) - 1)) { /* align to 512K boundary */
ws_start = (ws_start + (512 * 1024)) & ~((512 * 1024) - 1);
@@ -201,7 +200,6 @@ void bsp_start(void)
m8xx.fec.mii_speed = 0x0a;
m8xx.fec.mii_data = 0x680a0000;
-
m8xx.scc2.sccm=0;
m8xx.scc2p.rbase=0;
m8xx.scc2p.tbase=0;
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/vectors/vectors.S b/c/src/lib/libbsp/powerpc/eth_comm/vectors/vectors.S
index 561f190225..50758ca5b4 100644
--- a/c/src/lib/libbsp/powerpc/eth_comm/vectors/vectors.S
+++ b/c/src/lib/libbsp/powerpc/eth_comm/vectors/vectors.S
@@ -8,13 +8,10 @@
* $Id$
*/
-
-
#include <rtems/asm.h>
#include <rtems/score/cpu.h>
#include <bsp/vectors.h>
-
#define SYNC \
sync; \
isync
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/vectors/vectors.h b/c/src/lib/libbsp/powerpc/eth_comm/vectors/vectors.h
index 3a366f5b83..232c61d9a6 100644
--- a/c/src/lib/libbsp/powerpc/eth_comm/vectors/vectors.h
+++ b/c/src/lib/libbsp/powerpc/eth_comm/vectors/vectors.h
@@ -130,7 +130,6 @@ typedef struct {
unsigned EXC_DAR;
}BSP_Exception_frame;
-
typedef void (*exception_handler_t) (BSP_Exception_frame* excPtr);
extern exception_handler_t globalExceptHdl;
/*
diff --git a/c/src/lib/libbsp/powerpc/gen405/configure.ac b/c/src/lib/libbsp/powerpc/gen405/configure.ac
index f85c210444..35853b2a24 100644
--- a/c/src/lib/libbsp/powerpc/gen405/configure.ac
+++ b/c/src/lib/libbsp/powerpc/gen405/configure.ac
@@ -31,7 +31,6 @@ RTEMS_BSPOPTS_HELP([PPC_VECTOR_FILE_BASE],
[This defines the base address of the exception table.
NOTE: Vectors are actually at 0xFFF00000 but file starts at offset.])
-
# Explicitly list all Makefiles here
AC_CONFIG_FILES([Makefile
wrapup/Makefile])
diff --git a/c/src/lib/libbsp/powerpc/gen405/include/bsp.h b/c/src/lib/libbsp/powerpc/gen405/include/bsp.h
index a7eedd807e..48b4960e89 100644
--- a/c/src/lib/libbsp/powerpc/gen405/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/gen405/include/bsp.h
@@ -80,7 +80,6 @@ extern "C" {
#define MAX_LONG_TEST_DURATION 300 /* 5 minutes = 300 seconds */
#define MAX_SHORT_TEST_DURATION 3 /* 3 seconds */
-
/*
* Stuff for Time Test 27
*/
@@ -100,7 +99,6 @@ extern "C" {
#define RAM_START 0
#define RAM_END 0x00800000
-
/* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration; /* owned by BSP */
diff --git a/c/src/lib/libbsp/powerpc/gen405/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen405/startup/bspstart.c
index 97f70ec440..aff05322cd 100644
--- a/c/src/lib/libbsp/powerpc/gen405/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/gen405/startup/bspstart.c
@@ -121,7 +121,6 @@ void bsp_pretasking_hook(void)
uint32_t heap_size;
uint32_t heap_end;
-
heap_start = (uint32_t ) &_end;
if (heap_start & (CPU_ALIGNMENT-1))
heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
@@ -140,7 +139,6 @@ void bsp_pretasking_hook(void)
}
-
/*
* bsp_start
*
diff --git a/c/src/lib/libbsp/powerpc/helas403/configure.ac b/c/src/lib/libbsp/powerpc/helas403/configure.ac
index 7e4cbabb88..fb12cf4d4c 100644
--- a/c/src/lib/libbsp/powerpc/helas403/configure.ac
+++ b/c/src/lib/libbsp/powerpc/helas403/configure.ac
@@ -30,7 +30,6 @@ RTEMS_BSPOPTS_HELP([PPC_VECTOR_FILE_BASE],
[This defines the base address of the exception table.
NOTE: Vectors are actually at 0xFFF00000 but file starts at offset.])
-
# Explicitly list all Makefiles here
AC_CONFIG_FILES([Makefile
wrapup/Makefile])
diff --git a/c/src/lib/libbsp/powerpc/helas403/flashentry/flashentry.S b/c/src/lib/libbsp/powerpc/helas403/flashentry/flashentry.S
index d11babaa93..b3f197755e 100644
--- a/c/src/lib/libbsp/powerpc/helas403/flashentry/flashentry.S
+++ b/c/src/lib/libbsp/powerpc/helas403/flashentry/flashentry.S
@@ -122,7 +122,6 @@ stack_top:
mtdcr br0,r2 /* write to DCR BR0 */
-
/*--------------------------------------------------------------------
* test various RAM configurations (from big to small per bank)
*------------------------------------------------------------------*/
@@ -464,10 +463,8 @@ ramaccfx:
lwz r4,0(r2) /* get memory at start adr */
blr
-
#if PPC_ABI == PPC_ABI_POWEROPEN
DESCRIPTOR (startup)
#endif
-
.comm environ,4,4
diff --git a/c/src/lib/libbsp/powerpc/helas403/include/bsp.h b/c/src/lib/libbsp/powerpc/helas403/include/bsp.h
index 56aff201e1..e552bf09e6 100644
--- a/c/src/lib/libbsp/powerpc/helas403/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/helas403/include/bsp.h
@@ -77,7 +77,6 @@ extern "C" {
#define MAX_LONG_TEST_DURATION 300 /* 5 minutes = 300 seconds */
#define MAX_SHORT_TEST_DURATION 3 /* 3 seconds */
-
/*
* Stuff for Time Test 27
*/
@@ -97,7 +96,6 @@ extern "C" {
#define RAM_START 0
#define RAM_END 0x00800000
-
/* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration; /* owned by BSP */
diff --git a/c/src/lib/libbsp/powerpc/helas403/startup/bspstart.c b/c/src/lib/libbsp/powerpc/helas403/startup/bspstart.c
index a769b7c380..58717e14b3 100644
--- a/c/src/lib/libbsp/powerpc/helas403/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/helas403/startup/bspstart.c
@@ -127,7 +127,6 @@ void bsp_pretasking_hook(void)
#endif
}
-
/*
* bsp_start
*
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/configure.ac b/c/src/lib/libbsp/powerpc/mbx8xx/configure.ac
index a1cc3a0b18..e5e2e265fa 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/configure.ac
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/configure.ac
@@ -60,7 +60,6 @@ RTEMS_BSPOPTS_HELP([CONSOLE_MINOR],
SMC2_MINOR, SCC2_MINOR, SCC3_MINOR, or SCC4_MINOR.
Determines which device will be registered as /dev/console.])
-
RTEMS_BSPOPTS_SET([UARTS_IO_MODE],[*],[0])
RTEMS_BSPOPTS_HELP([UARTS_IO_MODE],
[(BSP--console driver)
@@ -75,7 +74,6 @@ RTEMS_BSPOPTS_HELP([UARTS_IO_MODE],
does not perform serial I/O on any port other than its default debug
port, which must be SMC1.])
-
RTEMS_BSPOPTS_SET([PRINTK_MINOR],[mbx860_005b],[SMC1_MINOR])
RTEMS_BSPOPTS_SET([PRINTK_MINOR],[*],[SMC2_MINOR])
RTEMS_BSPOPTS_HELP([PRINTK_MINOR],
@@ -98,7 +96,6 @@ RTEMS_BSPOPTS_HELP([PRINTK_IO_MODE],
on any port other than its default debug port, which must be SMC1.
Printk always uses polled output.])
-
RTEMS_BSPOPTS_SET([EPPCBUG_SMC1],[mbx860_005b],[])
RTEMS_BSPOPTS_SET([EPPCBUG_SMC1],[*],[1])
RTEMS_BSPOPTS_HELP([EPPCBUG_SMC1],
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
index efb7c6853b..e5507eeb0c 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
@@ -93,7 +93,6 @@ static void serial_putchar(const char c);
BSP_output_char_function_type BSP_output_char = _BSP_null_char;
-
/*
* _EPPCBug_pollRead
*
@@ -200,7 +199,6 @@ static int _EPPCBug_pollRead(
return retval;
}
-
/*
* _EPPCBug_pollWrite
*
@@ -325,7 +323,6 @@ error:
return -1;
}
-
/*
* do_poll_read
*
@@ -392,7 +389,6 @@ static rtems_status_code do_poll_read(
#endif
}
-
/*
* do_poll_write
*
@@ -460,7 +456,6 @@ static rtems_status_code do_poll_write(
#endif
}
-
/*
* Print functions prototyped in bspIo.h
*/
@@ -814,7 +809,6 @@ rtems_device_driver console_initialize(
#endif /* NVRAM_CONFIGURE != 1 */
-
status = rtems_io_register_name ("/dev/tty0", major, SMC1_MINOR);
if (status != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (status);
@@ -846,7 +840,6 @@ rtems_device_driver console_initialize(
return RTEMS_SUCCESSFUL;
}
-
/*
* Open the device
*/
@@ -882,7 +875,6 @@ rtems_device_driver console_open(
};
rtems_status_code sc;
-
#if (NVRAM_CONFIGURE == 1) || \
((NVRAM_CONFIGURE != 1) && (UARTS_USE_TERMIOS == 1) && \
(UARTS_IO_MODE == 1))
@@ -947,7 +939,6 @@ rtems_device_driver console_open(
#endif /* NVRAM_CONFIGURE != 1 */
}
-
/*
* Close the device
*/
@@ -981,7 +972,6 @@ rtems_device_driver console_close(
#endif /* NVRAM_CONFIGURE != 1 */
}
-
/*
* Read from the device
*/
@@ -1015,7 +1005,6 @@ rtems_device_driver console_read(
#endif
}
-
/*
* Write to the device
*/
@@ -1050,7 +1039,6 @@ rtems_device_driver console_write(
#endif
}
-
/*
* Handle ioctl request.
*/
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/ide/idecfg.c b/c/src/lib/libbsp/powerpc/mbx8xx/ide/idecfg.c
index 6dee967b54..9b9537de2b 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/ide/idecfg.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/ide/idecfg.c
@@ -25,7 +25,6 @@
#include <libchip/ide_ctrl_cfg.h>
#include <libchip/ide_ctrl_io.h>
-
/*
* The following table configures the IDE driver used in this BSP.
*/
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h b/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h
index 9beb406672..ef4f499927 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h
@@ -32,7 +32,6 @@ extern "C" {
#include <mpc8xx/console.h>
#include <bsp/vectors.h>
-
/*
* Representation of initialization data in NVRAM
*/
@@ -55,7 +54,6 @@ typedef volatile struct nvram_config_ {
*/
#define nvram ((nvram_config * const) 0xFA001000)
-
/*
* Network driver configuration
*/
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c b/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c
index 2a5afa4569..501168ec91 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c
@@ -64,7 +64,6 @@ static inline int is_processor_irq(const rtems_irq_symbolic_name irqLine)
);
}
-
/*
* masks used to mask off the interrupts. For exmaple, for ILVL2, the
* mask is used to mask off interrupts ILVL2, IRQ3, ILVL3, ... IRQ7
@@ -251,7 +250,6 @@ int BSP_install_rtems_irq_handler (const rtems_irq_connect_data* irq)
return 1;
}
-
int BSP_get_current_rtems_irq_handler (rtems_irq_connect_data* irq)
{
if (!isValidInterrupt(irq->name)) {
@@ -485,8 +483,6 @@ void C_dispatch_irq_handler (CPU_Interrupt_frame *frame, unsigned int excNum)
}
}
-
-
void _ThreadProcessSignalsFromIrq (BSP_Exception_frame* ctx)
{
/*
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.h b/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.h
index 49e720a6b5..b7d10150af 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.h
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.h
@@ -21,7 +21,6 @@
#ifndef LIBBSP_POWERPC_MBX8XX_IRQ_IRQ_H
#define LIBBSP_POWERPC_MBX8XX_IRQ_IRQ_H
-
#define BSP_ASM_IRQ_VECTOR_BASE 0x0
#ifndef ASM
@@ -143,7 +142,6 @@ typedef enum {
#define CPM_INTERRUPT
-
/*
* Type definition for RTEMS managed interrupts
*/
@@ -217,9 +215,6 @@ typedef struct {
rtems_irq_prio* irqPrioTbl;
}rtems_irq_global_settings;
-
-
-
/*-------------------------------------------------------------------------+
| Function Prototypes.
+--------------------------------------------------------------------------*/
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq_asm.S b/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq_asm.S
index fa877aafaf..0e3ad7af7b 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq_asm.S
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq_asm.S
@@ -21,7 +21,6 @@
#include <bsp/vectors.h>
#include <libcpu/raw_exception.h>
-
#define SYNC \
sync; \
isync
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/network/network.c b/c/src/lib/libbsp/powerpc/mbx8xx/network/network.c
index 32c08798f5..943911007b 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/network/network.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/network/network.c
@@ -59,7 +59,6 @@
#define INET_ADDR_MAX_BUF_SIZE (sizeof "255.255.255.255")
-
/*
* RTEMS event used by interrupt handler to signal daemons.
* This must *not* be the same event used by the TCP/IP task synchronization.
@@ -126,7 +125,6 @@ struct m8xx_enet_struct {
};
static struct m8xx_enet_struct enet_driver[NIFACES];
-
static void m8xx_scc1_ethernet_on(const rtems_irq_connect_data* ptr)
{
}
@@ -418,7 +416,6 @@ m8xx_enet_initialize (struct m8xx_enet_struct *sc)
m8xx.scc1.gsmr_l = 0x1088003c;
}
-
#ifdef MPC860T
/*
* Please organize FEC controller code better by moving code from
@@ -468,7 +465,6 @@ m860_fec_initialize_hardware (struct m860_enet_struct *sc)
*/
m8xx.pgcra &= ~0x80;
-
/*
* Set SIU interrupt level to LVL2
*
@@ -575,8 +571,6 @@ m860_fec_initialize_hardware (struct m860_enet_struct *sc)
sc->txBdHead = sc->txBdTail = 0;
sc->txBdActiveCount = 0;
-
-
/*
* Mask all FEC interrupts and clear events
*/
@@ -593,7 +587,6 @@ m860_fec_initialize_hardware (struct m860_enet_struct *sc)
}
#endif
-
/*
* Soak up buffer descriptors that have been sent.
* Note that a buffer descriptor can't be retired as soon as it becomes
@@ -815,7 +808,6 @@ scc_rxDaemon (void *arg)
}
}
-
#ifdef MPC860T
static void
fec_rxDaemon (void *arg)
@@ -949,7 +941,6 @@ fec_rxDaemon (void *arg)
}
#endif
-
static void
scc_sendpacket (struct ifnet *ifp, struct mbuf *m)
{
@@ -1076,7 +1067,6 @@ scc_sendpacket (struct ifnet *ifp, struct mbuf *m)
}
}
-
#ifdef MPC860T
static void
fec_sendpacket (struct ifnet *ifp, struct mbuf *m)
@@ -1208,7 +1198,6 @@ fec_sendpacket (struct ifnet *ifp, struct mbuf *m)
}
#endif
-
/*
* Driver transmit daemon
*/
@@ -1242,7 +1231,6 @@ scc_txDaemon (void *arg)
}
}
-
#ifdef MPC860T
void
fec_txDaemon (void *arg)
@@ -1278,7 +1266,6 @@ fec_txDaemon (void *arg)
}
#endif
-
/*
* Send packet (caller provides header).
*/
@@ -1291,7 +1278,6 @@ m8xx_enet_start (struct ifnet *ifp)
ifp->if_flags |= IFF_OACTIVE;
}
-
/*
* Initialize and start the device
*/
@@ -1335,7 +1321,6 @@ scc_init (void *arg)
m8xx.scc1.gsmr_l |= 0x30;
}
-
#ifdef MPC860T
static void
fec_init (void *arg)
@@ -1366,7 +1351,6 @@ fec_init (void *arg)
else
m8xx.fec.r_cntrl &= ~0x8;
-
/*
* Tell the world that we're running.
*/
@@ -1379,7 +1363,6 @@ fec_init (void *arg)
}
#endif
-
/*
* Stop the device
*/
@@ -1396,7 +1379,6 @@ scc_stop (struct m8xx_enet_struct *sc)
m8xx.scc1.gsmr_l &= ~0x30;
}
-
#ifdef MPC860T
static void
fec_stop (struct m8xx_enet_struct *sc)
@@ -1412,7 +1394,6 @@ fec_stop (struct m8xx_enet_struct *sc)
}
#endif
-
/*
* Show interface statistics
*/
@@ -1440,7 +1421,6 @@ enet_stats (struct m8xx_enet_struct *sc)
printf (" Raw output wait:%-8lu\n", sc->txRawWait);
}
-
/*
* Driver ioctl handler
*/
@@ -1490,7 +1470,6 @@ scc_ioctl (struct ifnet *ifp, int command, caddr_t data)
return error;
}
-
#ifdef MPC860T
static int
fec_ioctl (struct ifnet *ifp, int command, caddr_t data)
@@ -1539,7 +1518,6 @@ fec_ioctl (struct ifnet *ifp, int command, caddr_t data)
}
#endif
-
/*
* Attach an SCC driver to the system
*/
@@ -1671,7 +1649,6 @@ rtems_scc1_driver_attach (struct rtems_bsdnet_ifconfig *config)
return 1;
};
-
#ifdef MPC860T
int
rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config)
@@ -1749,7 +1726,6 @@ rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config)
};
#endif
-
int
rtems_enet_driver_attach(struct rtems_bsdnet_ifconfig *config, int attaching)
{
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c
index 2fc1a2f194..e62cd0715b 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c
@@ -28,7 +28,6 @@
#include <libcpu/cpuIdent.h>
#include <libcpu/spr.h>
-
SPR_RW(SPRG0)
SPR_RW(SPRG1)
@@ -107,7 +106,6 @@ void bsp_pretasking_hook(void)
#endif
}
-
/*
* bsp_start()
*
@@ -179,7 +177,6 @@ void bsp_start(void)
*/
initialize_exceptions();
-
/*
* Allocate the memory for the RTEMS Work Space. This can come from
* a variety of places: hard coded address, malloc'ed from outside
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/vectors/vectors.S b/c/src/lib/libbsp/powerpc/mbx8xx/vectors/vectors.S
index 14720aee38..8b1793bf8a 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/vectors/vectors.S
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/vectors/vectors.S
@@ -8,13 +8,10 @@
* $Id$
*/
-
-
#include <rtems/asm.h>
#include <rtems/score/cpu.h>
#include <bsp/vectors.h>
-
#define SYNC \
sync; \
isync
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/vectors/vectors.h b/c/src/lib/libbsp/powerpc/mbx8xx/vectors/vectors.h
index 43fb7ecedf..3c37c54c73 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/vectors/vectors.h
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/vectors/vectors.h
@@ -130,7 +130,6 @@ typedef struct {
unsigned EXC_DAR;
}BSP_Exception_frame;
-
typedef void (*exception_handler_t) (BSP_Exception_frame* excPtr);
extern exception_handler_t globalExceptHdl;
/*
diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/include/bsp.h b/c/src/lib/libbsp/powerpc/motorola_powerpc/include/bsp.h
index fb79919160..c2abd385a5 100644
--- a/c/src/lib/libbsp/powerpc/motorola_powerpc/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/include/bsp.h
@@ -52,7 +52,6 @@
#include <bsp/openpic.h>
#define BSP_PIC_DO_EOI openpic_eoi(0)
-
#ifndef ASM
#define outport_byte(port,value) outb(value,port)
#define outport_word(port,value) outw(value,port)
@@ -105,7 +104,6 @@ extern int BSP_connect_clock_handler (void);
*/
extern unsigned long _BSP_clear_hostbridge_errors(int enableMCP, int quiet);
-
/*
* TM27 stuff
*/
@@ -137,7 +135,6 @@ void Install_tm27_vector(void (*_handler)())
asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
-
#define Clear_tm27_intr() \
do { \
uint32_t _clicks = 0xffffffff; \
@@ -154,7 +151,6 @@ void Install_tm27_vector(void (*_handler)())
} while (0)
#endif
-
#endif
#endif
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/configure.ac b/c/src/lib/libbsp/powerpc/mpc8260ads/configure.ac
index 8b7e2e235b..2b2b335b82 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/configure.ac
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/configure.ac
@@ -15,7 +15,6 @@ RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
RTEMS_CANONICALIZE_TOOLS
RTEMS_PROG_CCAS
-
RTEMS_BSPOPTS_SET([DATA_CACHE_ENABLE],[*],[0])
RTEMS_BSPOPTS_HELP([DATA_CACHE_ENABLE],
[If defined, the data cache will be enabled after address translation
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/console/console.c b/c/src/lib/libbsp/powerpc/mpc8260ads/console/console.c
index 29243f4783..27b93d0de4 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/console/console.c
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/console/console.c
@@ -98,12 +98,8 @@ static void _BSP_output_char( char c );
static rtems_status_code do_poll_read( rtems_device_major_number major, rtems_device_minor_number minor, void * arg);
static rtems_status_code do_poll_write( rtems_device_major_number major, rtems_device_minor_number minor, void * arg);
-
BSP_output_char_function_type BSP_output_char = _BSP_output_char;
-
-
-
/*
* do_poll_read
*
@@ -146,7 +142,6 @@ static rtems_status_code do_poll_read(
return RTEMS_SUCCESSFUL;
}
-
/*
* do_poll_write
*
@@ -190,7 +185,6 @@ static rtems_status_code do_poll_write(
}
-
/*
* Print functions prototyped in bspIo.h
*/
@@ -211,7 +205,6 @@ static void _BSP_output_char( char c )
}
-
/*
***************
* BOILERPLATE *
@@ -266,8 +259,6 @@ rtems_device_driver console_initialize(
m8xx_uart_scc_initialize(SCC4_MINOR); /* /dev/tty3 */
#endif
-
-
/*
* Set up interrupts
*/
@@ -279,7 +270,6 @@ rtems_device_driver console_initialize(
chmod("/dev/tty0",0660);
chown("/dev/tty0",2,0);
-
status = rtems_io_register_name ("/dev/tty1", major, SCC2_MINOR);
if (status != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (status);
@@ -313,7 +303,6 @@ rtems_device_driver console_initialize(
return RTEMS_SUCCESSFUL;
}
-
/*
* Open the device
*/
@@ -359,7 +348,6 @@ rtems_device_driver console_open(
if ( minor > NUM_PORTS-1 )
return RTEMS_INVALID_NUMBER;
-
#if UARTS_USE_TERMIOS == 1
#if UARTS_IO_MODE == 1 /* RTEMS interrupt-driven I/O with termios */
@@ -378,7 +366,6 @@ rtems_device_driver console_open(
}
-
/*
* Close the device
*/
@@ -399,7 +386,6 @@ rtems_device_driver console_close(
}
-
/*
* Read from the device
*/
@@ -412,7 +398,6 @@ rtems_device_driver console_read(
if ( minor > NUM_PORTS-1 )
return RTEMS_INVALID_NUMBER;
-
#if UARTS_USE_TERMIOS == 1
return rtems_termios_read( arg );
#else
@@ -421,7 +406,6 @@ rtems_device_driver console_read(
}
-
/*
* Write to the device
*/
@@ -434,7 +418,6 @@ rtems_device_driver console_write(
if ( minor > NUM_PORTS-1 )
return RTEMS_INVALID_NUMBER;
-
#if UARTS_USE_TERMIOS == 1
return rtems_termios_write( arg );
#else
@@ -444,7 +427,6 @@ rtems_device_driver console_write(
}
-
/*
* Handle ioctl request.
*/
@@ -457,7 +439,6 @@ rtems_device_driver console_control(
if ( minor > NUM_PORTS-1 )
return RTEMS_INVALID_NUMBER;
-
#if UARTS_USE_TERMIOS == 1
return rtems_termios_ioctl( arg );
#else
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/include/bsp.h b/c/src/lib/libbsp/powerpc/mpc8260ads/include/bsp.h
index 0ddbb8eb33..067752802e 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/include/bsp.h
@@ -60,8 +60,6 @@ extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int a
#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth1"
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach
-
-
/* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration;
@@ -115,7 +113,6 @@ extern rtems_configuration_table BSP_Configuration;
#define RAM_END 0x1000000
*/
-
/*
* Device Driver Table Entries
*/
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c b/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c
index 7de64a8884..d8abb1f29b 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c
@@ -38,7 +38,6 @@ static rtems_irq_connect_data default_rtems_entry;
static rtems_irq_global_settings* internal_config;
static rtems_irq_connect_data* rtems_hdl_tbl;
-
/*
* Check if symbolic IRQ name is an CPM IRQ
*/
@@ -141,8 +140,6 @@ static m82xxIrqMasks_t SIU_MaskBit[BSP_CPM_IRQ_NUMBER] =
};
-
-
void dump_irq_masks(void )
{
int i;
@@ -226,7 +223,6 @@ int BSP_irq_disable_at_cpm(const rtems_irq_symbolic_name irqLine)
m8260.simr_h &= ~(SIU_MaskBit[cpm_irq_index].mask_h);
m8260.simr_l &= ~(SIU_MaskBit[cpm_irq_index].mask_l);
-
return 0;
}
@@ -243,7 +239,6 @@ int BSP_irq_enabled_at_cpm(const rtems_irq_symbolic_name irqLine)
(m8260.simr_l & SIU_MaskBit[cpm_irq_index].mask_l));
}
-
/*
* ------------------------ RTEMS Single Irq Handler Mngt Routines ----------------
*/
@@ -304,7 +299,6 @@ int BSP_install_rtems_irq_handler (const rtems_irq_connect_data* irq)
return 1;
}
-
int BSP_get_current_rtems_irq_handler (rtems_irq_connect_data* irq)
{
if (!isValidInterrupt(irq->name)) {
@@ -418,7 +412,6 @@ int BSP_rtems_irq_mngt_get(rtems_irq_global_settings** config)
volatile unsigned int maxLoop = 0;
#endif
-
/*
* High level IRQ handler called from shared_raw_irq_code_entry
*/
@@ -436,8 +429,6 @@ void C_dispatch_irq_handler (CPU_Interrupt_frame *frame, unsigned int excNum)
unsigned loopCounter;
#endif
-
-
/*
* Handle decrementer interrupt
*/
@@ -507,8 +498,6 @@ void C_dispatch_irq_handler (CPU_Interrupt_frame *frame, unsigned int excNum)
}
}
-
-
void _ThreadProcessSignalsFromIrq (BSP_Exception_frame* ctx)
{
/*
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.h b/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.h
index d01dcc1e47..7d24745142 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.h
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.h
@@ -29,7 +29,6 @@
#ifndef LIBBSP_POWERPC_MBX8XX_IRQ_IRQ_H
#define LIBBSP_POWERPC_MBX8XX_IRQ_IRQ_H
-
#define BSP_ASM_IRQ_VECTOR_BASE 0x0
#ifndef ASM
@@ -144,7 +143,6 @@ typedef enum {
BSP_CPM_IRQ_PC1 = BSP_CPM_IRQ_LOWEST_OFFSET + 62,
BSP_CPM_IRQ_PC0 = BSP_CPM_IRQ_LOWEST_OFFSET + 63,
-
/*
* Some Processor exception handled as rtems IRQ symbolic name definition
*/
@@ -155,7 +153,6 @@ typedef enum {
#define CPM_INTERRUPT
-
/*
* Type definition for RTEMS managed interrupts
*/
@@ -229,9 +226,6 @@ typedef struct {
rtems_irq_prio* irqPrioTbl;
}rtems_irq_global_settings;
-
-
-
/*-------------------------------------------------------------------------+
| Function Prototypes.
+--------------------------------------------------------------------------*/
@@ -264,8 +258,6 @@ int BSP_irq_ack_at_cpm (const rtems_irq_symbolic_name irqLine);
*/
int BSP_irq_enabled_at_cpm (const rtems_irq_symbolic_name irqLine);
-
-
/*
* ------------------------ RTEMS Single Irq Handler Mngt Routines ----------------
*/
@@ -315,7 +307,6 @@ int BSP_get_current_rtems_irq_handler (rtems_irq_connect_data* ptr);
*/
int BSP_remove_rtems_irq_handler (const rtems_irq_connect_data*);
-
/*
* ------------------------ RTEMS Global Irq Handler Mngt Routines ----------------
*/
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq_asm.S b/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq_asm.S
index 64f0176109..a8971f5b1d 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq_asm.S
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq_asm.S
@@ -28,7 +28,6 @@
.text
.p2align 5
-
PUBLIC_VAR(decrementer_exception_vector_prolog_code)
SYM (decrementer_exception_vector_prolog_code):
@@ -258,7 +257,6 @@ nested:
*/
bl _ThreadProcessSignalsFromIrq
-
/*
* start restoring exception like frame
*/
@@ -272,10 +270,8 @@ nested:
mtcr r29
mtlr r28
-
lmw r4, GPR4_OFFSET(r1)
-
lwz r2, GPR2_OFFSET(r1)
lwz r0, GPR0_OFFSET(r1)
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq_init.c b/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq_init.c
index b0f8324ae7..952cf76d66 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq_init.c
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq_init.c
@@ -58,7 +58,6 @@ static rtems_irq_connect_data defaultIrq = {
without knowing more about the application they are kept the same.
*/
-
static rtems_irq_prio irqPrioTable[BSP_CPM_IRQ_NUMBER]={
/*
* actual priorities for interrupt :
@@ -73,7 +72,6 @@ static rtems_irq_prio irqPrioTable[BSP_CPM_IRQ_NUMBER]={
};
-
/*
* Initialize CPM interrupt management
*/
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c b/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c
index 64a4ee3d7d..41c6d3539c 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c
@@ -77,7 +77,6 @@
#include "if_hdlcsubr.h"
-
/*
u_char etherbroadcastaddr[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
*/
@@ -162,7 +161,6 @@ hdlc_output(ifp, m0, dst, rt0)
senderr(EAFNOSUPPORT);
}
-
if (mcopy)
(void) looutput(ifp, mcopy, dst, rt);
#if 0
@@ -241,7 +239,6 @@ hdlc_input(ifp, m)
if (m->m_flags & (M_BCAST|M_MCAST))
ifp->if_imcasts++;
-
/*
* RTEMS addition -- allow application to `tap into'
* the incoming packet stream.
@@ -254,7 +251,6 @@ hdlc_input(ifp, m)
schednetisr(NETISR_IP);
inq = &ipintrq;
-
s = splimp();
if (IF_QFULL(inq)) {
IF_DROP(inq);
@@ -294,7 +290,6 @@ hdlc_ifattach(ifp)
}
}
-
/* SYSCTL_NODE(_net_link, IFT_ETHER, ether, CTLFLAG_RW, 0, "Ethernet"); */
int
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.h b/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.h
index 9daa50524f..c4f42ea352 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.h
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.h
@@ -22,14 +22,11 @@
#ifndef __IF_HDLCSUBR_H
#define __IF_HDLCSUBR_H
-
struct ifnet;
struct mbuf;
struct sockaddr;
struct rtentry;
-
-
void hdlc_ifattach __P((struct ifnet *));
void hdlc_input __P((struct ifnet *, struct mbuf *));
int hdlc_output __P((struct ifnet *,
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/network/network.c b/c/src/lib/libbsp/powerpc/mpc8260ads/network/network.c
index 9de8b0ff26..c53bb73ed9 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/network/network.c
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/network/network.c
@@ -62,7 +62,6 @@
#define INET_ADDR_MAX_BUF_SIZE (sizeof "255.255.255.255")
-
extern void m8xx_dump_brgs( void );
/*
@@ -77,7 +76,6 @@ extern void m8xx_dump_brgs( void );
*/
#define START_TRANSMIT_EVENT RTEMS_EVENT_2
-
/*
* Receive buffer size -- Allow for a full ethernet packet plus CRC (1518).
* Round off to nearest multiple of RBUF_ALIGN.
@@ -128,7 +126,6 @@ struct m8260_hdlc_struct {
};
static struct m8260_hdlc_struct hdlc_driver[NIFACES];
-
static void m8xx_scc3_hdlc_on(const rtems_irq_connect_data* ptr)
{
}
@@ -187,7 +184,6 @@ m8xx_scc3_interrupt_handler ()
#endif
}
-
static rtems_irq_connect_data hdlcSCC3IrqData = {
BSP_CPM_IRQ_SCC3,
(rtems_irq_hdl) m8xx_scc3_interrupt_handler,
@@ -196,7 +192,6 @@ static rtems_irq_connect_data hdlcSCC3IrqData = {
(rtems_irq_is_enabled)m8xx_scc3_hdlc_isOn
};
-
/*
* Initialize the SCC hardware
* Configure I/O ports for SCC3
@@ -232,7 +227,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc)
m8260.psord &= ~0x00000080;
m8260.pdird |= 0x00200080;
-
/* External Rx Clock from CLK5 */
if( m8xx_get_clk( M8xx_CLK_5 ) == -1 )
printk( "Error allocating CLK5 for network device.\n" );
@@ -245,8 +239,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc)
else
m8260.cmxscr |= ((unsigned)brg << 8);
-
-
/*
* Allocate mbuf pointers
*/
@@ -283,7 +275,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc)
*/
m8260.scc3p.mrblr = RBUF_SIZE;
-
m8260.scc3p.un.hdlc.c_mask = 0xF0B8;
m8260.scc3p.un.hdlc.c_pres = 0xFFFF;
m8260.scc3p.un.hdlc.disfc = 0;
@@ -301,7 +292,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc)
m8260.scc3p.un.hdlc.haddr3 = 0xFFFF; /* Dummy */
m8260.scc3p.un.hdlc.haddr4 = 0xFFFF; /* Dummy */
-
/*
* Send "Init parameters" command
*/
@@ -326,7 +316,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc)
sc->txBdHead = sc->txBdTail = 0;
sc->txBdActiveCount = 0;
-
m8260.scc3.sccm = 0; /* No interrupts unmasked till necessary */
/*
@@ -364,8 +353,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc)
#endif
-
-
m8260.scc3.gsmr_h = 0;
m8260.scc3.gsmr_l = 0x10000000;
m8260.scc3.dsr = 0x7E7E; /* flag character */
@@ -377,8 +364,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc)
}
-
-
/*
* Soak up buffer descriptors that have been sent
* Note that a buffer descriptor can't be retired as soon as it becomes
@@ -592,7 +577,6 @@ scc_rxDaemon (void *arg)
}
}
-
static void
scc_sendpacket (struct ifnet *ifp, struct mbuf *m)
{
@@ -682,14 +666,12 @@ scc_sendpacket (struct ifnet *ifp, struct mbuf *m)
txBd->buffer = mtod (m, void *);
txBd->length = m->m_len;
-
/*
* Flush the buffer for this descriptor
*/
rtems_cache_flush_multiple_data_lines((void *)txBd->buffer, txBd->length);
-
/* throw off the header for Ethernet Emulation mode */
/*
txBd->buffer = mtod (m, void *);
@@ -734,7 +716,6 @@ scc_sendpacket (struct ifnet *ifp, struct mbuf *m)
}
}
-
/*
* Driver transmit daemon
*/
@@ -763,16 +744,13 @@ scc_txDaemon (void *arg)
if (!m)
break;
-
scc_sendpacket (ifp, m);
-
}
ifp->if_flags &= ~IFF_OACTIVE;
}
}
-
/*
* Send packet (caller provides header).
*/
@@ -830,8 +808,6 @@ scc_init (void *arg)
m8260.scc3.gsmr_l |= 0x30;
}
-
-
/*
* Stop the device
*/
@@ -848,7 +824,6 @@ scc_stop (struct m8260_hdlc_struct *sc)
m8260.scc3.gsmr_l &= ~0x30;
}
-
/*
* Show interface statistics
*/
@@ -918,8 +893,6 @@ scc_ioctl (struct ifnet *ifp, int command, caddr_t data)
return error;
}
-
-
/*
* Attach an SCC driver to the system
*/
@@ -1000,7 +973,6 @@ rtems_scc3_driver_attach (struct rtems_bsdnet_ifconfig *config)
return 1;
};
-
int
rtems_enet_driver_attach(struct rtems_bsdnet_ifconfig *config, int attaching)
{
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/start/start.S b/c/src/lib/libbsp/powerpc/mpc8260ads/start/start.S
index 241e60212a..aea3978628 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/start/start.S
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/start/start.S
@@ -41,7 +41,6 @@
* version of the data segment to the correct location.
*/
-
.section ".entry" /* This might have to be the first thing in the
* text section. At one time, it had to be
* first, but I don't believe it is true
@@ -68,8 +67,6 @@ PUBLIC_VAR (data_addr )
data_addr:
.long data.start
-
-
PUBLIC_VAR (text_addr)
text_addr:
.long text.start
@@ -78,7 +75,6 @@ PUBLIC_VAR (text_length)
text_length:
.long text.size
-
/*
* Initialization code
*/
@@ -86,7 +82,6 @@ text_length:
/* Get start address */
mflr r1
-
/* --------------------------------------------------
* Clear MSR[EE] to disable interrupts
* Clear MSR[IP] bit to put vectors at 0x00000000
@@ -101,9 +96,6 @@ text_length:
#endif
mtmsr r5
-
-
-
#ifdef ENABLE_CACHE
/* Enable caches */
mfspr r5, 1008
@@ -119,7 +111,6 @@ text_length:
#endif
#endif
-
/*--------------------------------------------------
* Set up the power management modes
* The 8260 has a dynamic power management mode that
@@ -135,12 +126,9 @@ text_length:
*
*-------------------------------------------------- */
-
-
/* clear the bss section */
bl bssclr
-
/*
* C_setup.
*/
@@ -151,7 +139,6 @@ text_length:
/* Set up stack pointer = beginning of text section - 56 */
addi r1, r1, -56-4
-
/* clear argc and argv */
xor r3, r3, r3
xor r4, r4, r4
@@ -159,16 +146,12 @@ text_length:
.extern SYM (boot_card)
bl SYM (boot_card) /* call the first C routine */
-
-
/* we don't expect to return from boot_card but if we do */
/* wait here for watchdog to kick us into hard reset */
-
twiddle:
b twiddle
-
/*
* bssclr - zero out bss
*/
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c
index 1aba24a0fd..da23286b58 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c
@@ -55,7 +55,6 @@
#include <stackchk.h>
#endif
-
SPR_RW(SPRG0)
SPR_RW(SPRG1)
@@ -73,7 +72,6 @@ rtems_cpu_table Cpu_table;
char *rtems_progname;
-
/*
* Use the shared implementations of the following routines.
* Look in rtems/c/src/lib/libbsp/shared/bsppost.c and
@@ -159,14 +157,8 @@ void _BSP_Uart2_disable()
}
-
-
-
-
-
extern void m8260_console_reserve_resources(rtems_configuration_table *);
-
/*
* Function: bsp_pretasking_hook
* Created: 95/03/10
@@ -199,8 +191,6 @@ bsp_pretasking_hook(void)
bsp_libc_init( &_HeapStart, &_HeapEnd - &_HeapStart, 0 );
-
-
#ifdef STACK_CHECKER_ON
/*
* Initialize the stack bounds checker
@@ -215,7 +205,6 @@ bsp_pretasking_hook(void)
#endif
}
-
void bsp_start(void)
{
extern void *_WorkspaceBase;
@@ -223,14 +212,12 @@ void bsp_start(void)
ppc_cpu_revision_t myCpuRevision;
register unsigned char* intrStack;
-
/* Set MPC8260ADS board LEDS and Uart enable lines */
_BSP_GPLED0_off();
_BSP_GPLED1_off();
_BSP_Uart1_enable();
_BSP_Uart2_enable();
-
/*
* Get CPU identification dynamically. Note that the get_ppc_cpu_type() function
* store the result in global variables so that it can be used latter...
@@ -238,8 +225,6 @@ void bsp_start(void)
myCpu = get_ppc_cpu_type();
myCpuRevision = get_ppc_cpu_revision();
-
-
cpu_init();
/*
@@ -293,7 +278,6 @@ void bsp_start(void)
BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
-
/*
BSP_Configuration.microseconds_per_tick = 1000;
*/
@@ -317,9 +301,6 @@ void bsp_start(void)
Cpu_table.timer_least_valid = 3;
Cpu_table.clock_speed = 40000000;
-
-
-
#ifdef REV_0_2
/* set up some board specific registers */
m8260.siumcr &= 0xF3FFFFFF; /* set TBEN ** BUG FIX ** */
@@ -331,13 +312,11 @@ void bsp_start(void)
m8260.brgc1 = M8260_BRG_EN + (uint32_t)(((uint16_t)((40016384)/(32768)) - 1) << 1) + 0;
*/
-
/*
* Initalize RTEMS IRQ system
*/
BSP_rtems_irq_mng_init(0);
-
/*
* Call this in case we use TERMIOS for console I/O
*/
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors.S b/c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors.S
index e22b8c247c..b0026946df 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors.S
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors.S
@@ -8,13 +8,10 @@
* $Id$
*/
-
-
#include <rtems/asm.h>
#include <rtems/score/cpu.h>
#include <bsp/vectors.h>
-
#define SYNC \
sync; \
isync
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors.h b/c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors.h
index 43fb7ecedf..3c37c54c73 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors.h
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors.h
@@ -130,7 +130,6 @@ typedef struct {
unsigned EXC_DAR;
}BSP_Exception_frame;
-
typedef void (*exception_handler_t) (BSP_Exception_frame* excPtr);
extern exception_handler_t globalExceptHdl;
/*
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors_init.c b/c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors_init.c
index f77648c63a..44ecb6819b 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors_init.c
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors_init.c
@@ -133,7 +133,6 @@ void initialize_exceptions()
/* _BSP_GPLED0_on(); */
-
if (!mpc8xx_init_exceptions(&exception_config)) {
/*
* At this stage we may not call BSP_Panic because it uses exceptions!!!
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/clock/clock.c b/c/src/lib/libbsp/powerpc/ppcn_60x/clock/clock.c
index 5015453a00..d1e2552711 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/clock/clock.c
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/clock/clock.c
@@ -56,7 +56,6 @@ rtems_device_minor_number rtems_clock_minor;
asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
-
/*
* Clock_isr
*
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/configure.ac b/c/src/lib/libbsp/powerpc/ppcn_60x/configure.ac
index 995fffe7a7..17d817f1a6 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/configure.ac
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/configure.ac
@@ -59,7 +59,6 @@ RTEMS_BSPOPTS_HELP([PPC_VECTOR_FILE_BASE],
[This defines the base address of the exception table.
NOTE: Vectors are actually at 0xFFF00000 but file starts at offset.])
-
# Explicitly list all Makefiles here
AC_CONFIG_FILES([Makefile
wrapup/Makefile])
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/console/vga.c b/c/src/lib/libbsp/powerpc/ppcn_60x/console/vga.c
index ca93acb48d..16b30e1eda 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/console/vga.c
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/console/vga.c
@@ -38,7 +38,6 @@
| **************************************************************************
+--------------------------------------------------------------------------*/
-
#include <bsp.h>
#include <stdlib.h>
@@ -72,7 +71,6 @@ static uint8_t videoCols = VGA_NUM_COLS; /* Number of columns in display. */
static uint8_t cursRow = 0; /* Current cursor row. */
static uint8_t cursCol = 0; /* Current cursor column. */
-
/*-------------------------------------------------------------------------+
| Function: setHardwareCursorPos
| Description: Set hardware video cursor at given offset into video RAM.
@@ -87,7 +85,6 @@ setHardwareCursorPos(uint16_t videoCursor)
VGA_WRITE_CRTC(0x0f, videoCursor & 0xff);
} /* setHardwareCursorPos */
-
/*-------------------------------------------------------------------------+
| Function: updateVideoRamPtr
| Description: Updates value of global variable "videoRamPtr" based on
@@ -102,7 +99,6 @@ updateVideoRamPtr(void)
videoRamPtr = videoRam + cursRow * videoCols + cursCol;
} /* updateVideoRamPtr */
-
/*-------------------------------------------------------------------------+
| Function: scrollUp
| Description: Scrolls display up n lines.
@@ -153,7 +149,6 @@ scrollUp(uint8_t lines)
}
} /* scrollUp */
-
/*-------------------------------------------------------------------------+
| Function: printCHAR
| Description: Print printable character to display.
@@ -208,7 +203,6 @@ printBS(void)
*(--videoRamPtr) = BLANK;
} /* printBS */
-
/*-------------------------------------------------------------------------+
| Function: printHT
| Description: Print HT (Horizontal Tab - '\t') character to display.
@@ -226,7 +220,6 @@ printHT(void)
while (cursCol % TABSIZE);
} /* printHT */
-
/*-------------------------------------------------------------------------+
| Function: printLF
| Description: Print LF (Line Feed - '\n') character to display.
@@ -246,7 +239,6 @@ printLF(void)
updateVideoRamPtr();
} /* printLF */
-
/*-------------------------------------------------------------------------+
| Function: printCR
| Description: Print CR (Carriage Return - '\r') to display.
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/include/bsp.h b/c/src/lib/libbsp/powerpc/ppcn_60x/include/bsp.h
index 412d76ace0..a289cdc99c 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/include/bsp.h
@@ -76,7 +76,6 @@ extern "C" {
#define BL_128M (0x3FF<2)
#define BL_256M (0x7FF<2)
-
/* Define bit fields for lower MPC603/4 BAT registers. */
#define BRPN_FIELD_60X 0xFFFE0000
@@ -194,7 +193,6 @@ extern "C" {
#define ELCRM_INT7_LVL 0x80
#define ELCRM_INT5_LVL 0x20
-
#define NONSPECIFIC_EOI 0x20
extern void En_Ext_Interrupt(int level);
@@ -382,7 +380,6 @@ void InitializeNvRAM(void);
asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
-
#define Clear_tm27_intr() \
do { \
uint32_t _clicks = 0xffffffff; \
@@ -398,7 +395,6 @@ void InitializeNvRAM(void);
asm volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
} while (0)
-
/* Constants */
/*
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/include/nvram.h b/c/src/lib/libbsp/powerpc/ppcn_60x/include/nvram.h
index 3bedee57d1..3eba8fb006 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/include/nvram.h
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/include/nvram.h
@@ -29,7 +29,6 @@ extern "C" {
void InitializeNvRAM(void);
-
/*
* These routines access data in the NvRAM's OS area
*/
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/include/tod.h b/c/src/lib/libbsp/powerpc/ppcn_60x/include/tod.h
index 9238e53366..0b3701ec65 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/include/tod.h
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/include/tod.h
@@ -13,7 +13,6 @@
* $Id$
*/
-
#ifndef TOD_H
#define TOD_H
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/network/amd79c970.h b/c/src/lib/libbsp/powerpc/ppcn_60x/network/amd79c970.h
index 8f81ebf568..bf8023a174 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/network/amd79c970.h
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/network/amd79c970.h
@@ -235,7 +235,6 @@ typedef volatile struct initblk {
uint32_t ib_tdra; /* xmit ring desc addr */
} initblk_t;
-
/*
* bits in mode register: allows alteration of the chips operating parameters
*/
@@ -286,7 +285,6 @@ typedef volatile struct rmde {
uint32_t align;
} rmde_t;
-
/*
* bits in the flags field
*/
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/bspstart.c
index ca313e001b..174e99afa4 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/bspstart.c
@@ -123,7 +123,6 @@ void bsp_pretasking_hook(void)
*/
InitializeUniverse();
-
#ifdef RTEMS_DEBUG
rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
#endif
@@ -143,7 +142,6 @@ void bsp_std_close( void )
close(stderr_fd);
}
-
/*
* bsp_predriver_hook
*
@@ -257,7 +255,6 @@ void bsp_start( void )
}
}
-
/*
* Allocate the memory for the RTEMS Work Space. This can come from
* a variety of places: hard coded address, malloc'ed from outside
@@ -288,5 +285,4 @@ void bsp_start( void )
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
Cpu_table.clicks_per_usec = ulCpuBusClock/4000000;
-
}
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/genpvec.c b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/genpvec.c
index 98348b1020..1492196fcb 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/genpvec.c
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/genpvec.c
@@ -60,7 +60,6 @@ typedef struct
rtems_vector_number vector; /* vector number */
} EE_ISR_Type;
-
/* Note: The following will not work if we add a method to remove
* handlers at a later time.
*/
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/setvec.c b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/setvec.c
index 435da9dc02..0c8255836f 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/setvec.c
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/setvec.c
@@ -25,7 +25,6 @@
#include <rtems.h>
#include <bsp.h>
-
/*
* This routine installs vector number vector.
*
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c
index 6a1a427a0f..b8f2cb501e 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c
@@ -38,8 +38,6 @@ rtems_isr bsp_spurious_handler(
)
{
-
-
DEBUG_puts( "Spurious Trap" );
switch ( trap ) {
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/tod/tod.c b/c/src/lib/libbsp/powerpc/ppcn_60x/tod/tod.c
index 2b2c03392f..22c7090bec 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/tod/tod.c
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/tod/tod.c
@@ -144,7 +144,6 @@ Routine Description:
This function was added to bridge the BCD format of the IBM roms
and the binary formate of NT
-
Arguments:
Register - Supplies the number of the register whose value is read.
@@ -178,7 +177,6 @@ Routine Description:
This function was added to bridge the BCD format of the IBM roms
and the binary formate of NT
-
Arguments:
Register - Supplies the number of the register whose value is read.
@@ -610,7 +608,6 @@ void setRealTimeFromRTEMS()
rtems_semaphore_release(semRTC);
}
-
int checkRealTime()
{
return 0;
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/universe/universe.c b/c/src/lib/libbsp/powerpc/ppcn_60x/universe/universe.c
index ca0d048450..bf3b065942 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/universe/universe.c
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/universe/universe.c
@@ -253,7 +253,6 @@ void InitializeUniverse()
PCI_bus_write( &UNIVERSE->LSI0_BD, 0x05000000 );
PCI_bus_write( &UNIVERSE->LSI0_TO, 0x7C000000 );
-
#if 0
/*
* Set the PCI Slave Image 0 Control register with posted write enable,
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/vectors/align_h.S b/c/src/lib/libbsp/powerpc/ppcn_60x/vectors/align_h.S
index bd490d2509..5a1cd73e1f 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/vectors/align_h.S
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/vectors/align_h.S
@@ -90,7 +90,6 @@
.set Open_srr0,152
.set Open_srr1,156
-
/*
* This code makes several assumptions for processing efficiency
* * General purpose registers are continuous in the image, beginning with
diff --git a/c/src/lib/libbsp/powerpc/psim/configure.ac b/c/src/lib/libbsp/powerpc/psim/configure.ac
index 396130fc10..65632c7bdc 100644
--- a/c/src/lib/libbsp/powerpc/psim/configure.ac
+++ b/c/src/lib/libbsp/powerpc/psim/configure.ac
@@ -29,7 +29,6 @@ RTEMS_BSPOPTS_HELP([PPC_VECTOR_FILE_BASE],
[This defines the base address of the exception table.
NOTE: Vectors are actually at 0xFFF00000 but file starts at offset.])
-
# Explicitly list all Makefiles here
AC_CONFIG_FILES([Makefile
wrapup/Makefile])
diff --git a/c/src/lib/libbsp/powerpc/psim/include/bsp.h b/c/src/lib/libbsp/powerpc/psim/include/bsp.h
index 887317328e..8b112a8858 100644
--- a/c/src/lib/libbsp/powerpc/psim/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/psim/include/bsp.h
@@ -69,7 +69,6 @@ extern "C" {
#define MAX_LONG_TEST_DURATION 300 /* 5 minutes = 300 seconds */
#define MAX_SHORT_TEST_DURATION 3 /* 3 seconds */
-
/*
* Stuff for Time Test 27
*/
@@ -85,7 +84,6 @@ extern "C" {
asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
-
#define Clear_tm27_intr() \
do { \
uint32_t _clicks = 0xffffffff; \
@@ -115,7 +113,6 @@ extern "C" {
* NOTE: Use the standard Clock driver entry
*/
-
/*
* Information placed in the linkcmds file.
*/
diff --git a/c/src/lib/libbsp/powerpc/psim/shmsupp/mpisr.c b/c/src/lib/libbsp/powerpc/psim/shmsupp/mpisr.c
index 7bdd192648..18f83828d6 100644
--- a/c/src/lib/libbsp/powerpc/psim/shmsupp/mpisr.c
+++ b/c/src/lib/libbsp/powerpc/psim/shmsupp/mpisr.c
@@ -16,7 +16,6 @@
#include <bsp.h>
#include <shm_driver.h>
-
/* void _Shm_setvec( )
*
* This driver routine sets the SHM interrupt vector to point to the
diff --git a/c/src/lib/libbsp/powerpc/psim/vectors/align_h.S b/c/src/lib/libbsp/powerpc/psim/vectors/align_h.S
index 24befd4b79..b1bcfb1566 100644
--- a/c/src/lib/libbsp/powerpc/psim/vectors/align_h.S
+++ b/c/src/lib/libbsp/powerpc/psim/vectors/align_h.S
@@ -90,7 +90,6 @@
.set Open_srr0,152
.set Open_srr1,156
-
/*
* This code makes several assumptions for processing efficiency
* * General purpose registers are continuous in the image, beginning with
diff --git a/c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c b/c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c
index feb01efb96..d2f15c8896 100644
--- a/c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c
+++ b/c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c
@@ -29,8 +29,6 @@ void PCI_bus_delay ()
asm(" nop");
}
-
-
/*
* PCI_bus_write
*/
diff --git a/c/src/lib/libbsp/powerpc/score603e/PCI_bus/universe.c b/c/src/lib/libbsp/powerpc/score603e/PCI_bus/universe.c
index fda1760b0e..223fa40d30 100644
--- a/c/src/lib/libbsp/powerpc/score603e/PCI_bus/universe.c
+++ b/c/src/lib/libbsp/powerpc/score603e/PCI_bus/universe.c
@@ -21,7 +21,6 @@
********************************************************************
********************************************************************/
-
/********************************************************************
********************************************************************
********* *********
@@ -138,7 +137,6 @@ typedef struct {
volatile Universe_Memory *UNIVERSE =
(volatile Universe_Memory *)SCORE603E_UNIVERSE_BASE;
-
/********************************************************************
********************************************************************
********* *********
@@ -242,7 +240,6 @@ void initialize_universe()
}
-
/*
* Set the slave VME base address to the specified base address.
* Note: Lower 12 bits[11:0] will be masked out prior to setting the VMEbus
diff --git a/c/src/lib/libbsp/powerpc/score603e/clock/clock.c b/c/src/lib/libbsp/powerpc/score603e/clock/clock.c
index 7d768acea7..5c7b2bf1b0 100644
--- a/c/src/lib/libbsp/powerpc/score603e/clock/clock.c
+++ b/c/src/lib/libbsp/powerpc/score603e/clock/clock.c
@@ -56,7 +56,6 @@ rtems_device_minor_number rtems_clock_minor;
asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
-
/*
* Clock_isr
*
diff --git a/c/src/lib/libbsp/powerpc/score603e/configure.ac b/c/src/lib/libbsp/powerpc/score603e/configure.ac
index 493013fe96..ed3bf6a266 100644
--- a/c/src/lib/libbsp/powerpc/score603e/configure.ac
+++ b/c/src/lib/libbsp/powerpc/score603e/configure.ac
@@ -15,7 +15,6 @@ RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
RTEMS_CANONICALIZE_TOOLS
RTEMS_PROG_CCAS
-
RTEMS_BSPOPTS_SET([CONSOLE_USE_INTERRUPTS],[*],[0])
RTEMS_BSPOPTS_HELP([CONSOLE_USE_INTERRUPTS],
[whether using console interrupts])
diff --git a/c/src/lib/libbsp/powerpc/score603e/console/85c30.c b/c/src/lib/libbsp/powerpc/score603e/console/85c30.c
index 0bad370f35..487f8e1a10 100644
--- a/c/src/lib/libbsp/powerpc/score603e/console/85c30.c
+++ b/c/src/lib/libbsp/powerpc/score603e/console/85c30.c
@@ -25,7 +25,6 @@
#define STATUS_REGISTER 0x00
#define DATA_REGISTER 0x08
-
#define Z8530_Status_Is_RX_character_available( _status ) \
( (_status) & 0x01 )
@@ -57,7 +56,6 @@ static const unsigned char Stop_bit_85c30[] = {
static const unsigned char Parity_85c30[] = {
Z8530_PARITY_NONE, Z8530_PARITY_ODD, Z8530_PARITY_EVEN };
-
/* PAGE
*
* Read_85c30_register
@@ -102,7 +100,6 @@ static void Write_85c30_register(
rtems_bsp_delay_in_bus_cycles( 40 );
}
-
/* PAGE
*
* Reset_85c30_chip
@@ -119,7 +116,6 @@ void Reset_85c30_chip(
Write_85c30_register( ctrl_1, 0x09, 0x40 );
}
-
/* PAGE
*
* initialize_85c30_port
@@ -285,7 +281,6 @@ void initialize_85c30_port(
*/
Write_85c30_register( ctrl, 9, 0x0A );
-
/* XXX */
/*
@@ -362,7 +357,6 @@ int inbyte_nonblocking_85c30(
return data;
}
-
/*
* Interrupt driven console IO
*/
diff --git a/c/src/lib/libbsp/powerpc/score603e/console/console.c b/c/src/lib/libbsp/powerpc/score603e/console/console.c
index 78cf33c9e0..249ae2c6f1 100644
--- a/c/src/lib/libbsp/powerpc/score603e/console/console.c
+++ b/c/src/lib/libbsp/powerpc/score603e/console/console.c
@@ -158,8 +158,6 @@ rtems_device_driver console_control(
return rtems_termios_ioctl (arg);
}
-
-
/*
* Interrupt driven console IO
*/
@@ -223,7 +221,6 @@ void console_initialize_interrupts( void )
for (i=0; i < NUM_Z85C30_CHIPS; i++)
set_vector( console_isr, Chips_85C30[i].vector, 1 );
-
atexit( console_exit );
}
@@ -235,7 +232,6 @@ void console_outbyte_interrupts(
/* XXXXXX */
#endif
-
/* PAGE
*
* console_initialize
@@ -269,7 +265,6 @@ rtems_device_driver console_initialize(
* Initialize Hardware
*/
-
/*
* INITIALIZE_COM_PORTS is defined in the linker script. If it is
* true all serial chips on the board are to be reset at startup
@@ -403,7 +398,6 @@ rtems_device_driver console_open(
};
#endif
-
/*
* Verify the minor number is valid.
*/
@@ -428,7 +422,6 @@ rtems_device_driver console_open(
return sc;
}
-
#if (CONSOLE_USE_INTERRUPTS)
/*
diff --git a/c/src/lib/libbsp/powerpc/score603e/console/consolebsp.h b/c/src/lib/libbsp/powerpc/score603e/console/consolebsp.h
index 7e20003b41..41f42ad873 100644
--- a/c/src/lib/libbsp/powerpc/score603e/console/consolebsp.h
+++ b/c/src/lib/libbsp/powerpc/score603e/console/consolebsp.h
@@ -22,7 +22,6 @@
extern "C" {
#endif
-
/*
*
* Note: The Ports are numbered 0..NUM_Z85C30_CHIPS with port 0 and 1
@@ -30,7 +29,6 @@ extern "C" {
* second chip...
*/
-
/*
* Z85c30 configuration informaiton.
*/
@@ -85,7 +83,6 @@ typedef struct {
} Console_Protocol;
-
/*
* Structure used for chip level information.
*/
@@ -117,7 +114,6 @@ typedef struct {
extern Chip_85C30_info Chips_85C30 [ NUM_Z85C30_CHIPS ];
extern const Port_85C30_info Ports_85C30 [ NUM_Z85C30_PORTS ];
-
/*
* 85c30.c prototypes.
*/
diff --git a/c/src/lib/libbsp/powerpc/score603e/console/tbl85c30.c b/c/src/lib/libbsp/powerpc/score603e/console/tbl85c30.c
index 2212260e0c..8c8d26302c 100644
--- a/c/src/lib/libbsp/powerpc/score603e/console/tbl85c30.c
+++ b/c/src/lib/libbsp/powerpc/score603e/console/tbl85c30.c
@@ -24,7 +24,6 @@
#define CONSOLE_DEFAULT_WRITE_CHARACTER_BITS CONSOLE_CHARACTER_BITS_8
#define CONSOLE_DEFAULT_CONSOLE_CLOCK CONSOLE_x16_CLOCK
-
#define DEFAULT_PROTOCOL { CONSOLE_DEFAULT_BAUD_RATE, \
CONSOLE_DEFAULT_STOP_BITS, \
CONSOLE_DEFAULT_PARITY, \
diff --git a/c/src/lib/libbsp/powerpc/score603e/include/bsp.h b/c/src/lib/libbsp/powerpc/score603e/include/bsp.h
index 12ba21e3c7..4fe70b199b 100644
--- a/c/src/lib/libbsp/powerpc/score603e/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/score603e/include/bsp.h
@@ -97,7 +97,6 @@ extern "C" {
asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
-
#define Clear_tm27_intr() \
do { \
uint32_t _clicks = 0xffffffff; \
@@ -113,7 +112,6 @@ extern "C" {
asm volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
} while (0)
-
/* Constants */
/*
@@ -128,7 +126,6 @@ extern "C" {
* NOTE: Use the standard Clock driver entry
*/
-
/*
* Information placed in the linkcmds file.
*/
@@ -198,7 +195,6 @@ void init_PCI();
void instruction_cache_enable ();
void data_cache_enable ();
-
void initialize_PCI_bridge ();
uint16_t read_and_clear_irq ();
void set_irq_mask(
diff --git a/c/src/lib/libbsp/powerpc/score603e/include/gen2.h b/c/src/lib/libbsp/powerpc/score603e/include/gen2.h
index 64d9c10ba5..fbc78c3fe3 100644
--- a/c/src/lib/libbsp/powerpc/score603e/include/gen2.h
+++ b/c/src/lib/libbsp/powerpc/score603e/include/gen2.h
@@ -56,7 +56,6 @@ extern "C" {
#define SCORE603E_PCI_DEVICE_ADDRESS( _offset) \
((volatile uint32_t*)( SCORE603E_PCI_PMC_DEVICE_BASE + _offset ))
-
#define SCORE603E_PMC_SERIAL_ADDRESS( _offset ) \
((volatile uint8_t*)(SCORE603E_PCI_REGISTER_BASE + _offset))
@@ -91,7 +90,6 @@ extern "C" {
#define SCORE603E_JP1_JP2_PROM_BASE 0xfff00000
#define SCORE603E_NOT_JP1_2_FLASH_BASE 0xff800000
-
#if (SCORE603E_USE_SDS) | (SCORE603E_USE_OPEN_FIRMWARE) | (SCORE603E_USE_NONE)
#define SCORE603E_VME_A16_OFFSET 0x04000000
#elif (SCORE603E_USE_DINK)
@@ -144,7 +142,6 @@ extern "C" {
#define SCORE603E_85C30_4_CLOCK_X SCORE603E_85C30_PMC_CLOCK_X
#define SCORE603E_85C30_5_CLOCK_X SCORE603E_85C30_PMC_CLOCK_X
-
#define SCORE603E_UNIVERSE_CHIP_ID 0x000010E3
/*
@@ -172,7 +169,6 @@ extern "C" {
#define PMC_SET_422_LOOPBACK(_word) (_word | 0x01)
#define PMC_CLEAR_422_LOOPBACK(_word) (_word & 0xfe)
-
/*
* Score603e Interupt Definations.
*/
@@ -239,7 +235,6 @@ extern "C" {
#define MAX_BOARD_IRQS SCORE603E_IRQ19
-
/*
* BSP_TIMER_AVG_OVERHEAD and BSP_TIMER_LEAST_VALID for the shared timer
* driver.
diff --git a/c/src/lib/libbsp/powerpc/score603e/include/tod.h b/c/src/lib/libbsp/powerpc/score603e/include/tod.h
index 41530e6f28..c4f20d30d5 100644
--- a/c/src/lib/libbsp/powerpc/score603e/include/tod.h
+++ b/c/src/lib/libbsp/powerpc/score603e/include/tod.h
@@ -13,7 +13,6 @@
* $Id$
*/
-
#ifndef TOD_H
#define TOD_H
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c b/c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c
index e1b0091355..da5ffa2a35 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c
@@ -89,7 +89,6 @@ void unmask_irq(
set_irq_mask( value );
}
-
void init_irq_data_register()
{
uint32_t index;
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c b/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c
index 3f016c3612..a752fe4e37 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c
@@ -46,11 +46,8 @@
#define PPC603e_SPR_IABR 1010
#define PPC603e_SPR_EAR 282
-
-
#define PCI_MEM_CMD (SCORE603E_PCI_MEM_BASE >> 16)
-
typedef struct {
uint32_t counter_1_100;
uint32_t counter_hours;
@@ -171,7 +168,6 @@ void init_PCI()
); \
} while (0)
-
void instruction_cache_enable ()
{
uint32_t value;
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
index b3b2c22607..299066969d 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
@@ -136,7 +136,6 @@ void initialize_PMC() {
#endif
-
#if (1)
/*
@@ -159,8 +158,6 @@ void initialize_PMC() {
#endif
}
-
-
/*PAGE
*
* SCORE603e_bsp_postdriver_hook
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c b/c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c
index b1e59ed579..c552505765 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c
@@ -19,7 +19,6 @@
#include <stdio.h> /* for sprintf */
-
/*
* Proto types for this file
*/
@@ -42,7 +41,6 @@ typedef struct
rtems_vector_number vector; /* vector number */
} EE_ISR_Type;
-
/* Note: The following will not work if we add a method to remove
* handlers at a later time.
*/
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/setvec.c b/c/src/lib/libbsp/powerpc/score603e/startup/setvec.c
index b10521f05e..e6c5048a7c 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/setvec.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/setvec.c
@@ -42,7 +42,6 @@
#include <rtems.h>
#include <bsp.h>
-
/*
* This routine installs vector number vector.
*
@@ -56,7 +55,6 @@ rtems_isr_entry set_vector( /* returns old vector */
rtems_isr_entry previous_isr;
rtems_status_code status;
-
/*
* vectors greater than PPC603e_IRQ_LAST are handled by the General purpose
* interupt handler.
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/bootldr.h b/c/src/lib/libbsp/powerpc/shared/bootloader/bootldr.h
index 594737efea..bf83667afe 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/bootldr.h
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/bootldr.h
@@ -173,7 +173,6 @@ extern void * codemove(void *, const void *, size_t, unsigned long);
#define isa_io_base (bd->io_base)
-
void * __palloc(u_long, int);
void pfree(void *);
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/em86.c b/c/src/lib/libbsp/powerpc/shared/bootloader/em86.c
index 1ca667a82f..f600ec7b52 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/em86.c
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/em86.c
@@ -32,7 +32,6 @@
#include <rtems/bspIo.h>
#endif
-
/* Code options, put them on the compiler command line */
/* #define EIP_STATS */ /* EIP based profiling */
/* #undef EIP_STATS */
@@ -78,7 +77,6 @@ typedef struct _x86 {
x86 v86_private __attribute__((aligned(32)));
-
/* Emulator is in another source file */
extern
void em86_enter(x86 * p);
@@ -461,7 +459,6 @@ void cleanup_v86_mess(void) {
p->ioperm=0;
}
-
int init_v86(void) {
x86 *p = (x86 *) bd->v86_private;
@@ -502,7 +499,6 @@ void em86_main(struct pci_dev *dev){
#define IOMASK 0
#endif
-
#ifndef __BOOT__
int i;
/* Allow or disable access to all ports */
@@ -550,7 +546,6 @@ void em86_main(struct pci_dev *dev){
p->rom = palloc(length*512);
if (!p->rom) return;
-
for(dst=(u_int *) p->rom,
src=(volatile u_int *)(ptr_mem_map->isa_mem_base+0xc0000),
left = length*512/sizeof(u_int);
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/em86real.S b/c/src/lib/libbsp/powerpc/shared/bootloader/em86real.S
index ad38fb24fb..e5560f4879 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/em86real.S
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/em86real.S
@@ -193,7 +193,6 @@
*
*/
-
/* Now the details of flag evaluation with the necessary macros */
/* Alignment check is toggable so the system believes it is a 486, but
@@ -1721,7 +1720,6 @@ outl_eax_dx: li r4,DX
eieio
NEXT
-
/* Macro used for add and sub */
#define ARITH(op,fl) \
op##b_reg_mem: lbzx op1,MEM; SET_FLAGS(fl(B)); lbzx op2,REG; \
@@ -2612,7 +2610,6 @@ _finish_strw: li r4,SI
sthbrx r3,state,r4 # update cx
NEXT
-
lodsb_a16: bl _setup_stringw
1: lbzx r0,STRINGSRC # [rep] lodsb
add offset,offset,r7
@@ -3878,7 +3875,6 @@ ldlptrw: lhzux r7,MEM
lwz ssb,ssbase(state)
blr
-
/* Intructions that may modify the current code segment: the next optimization
* might be to avoid calling C code when the code segment does not change. But
* it's probably not worth the effort.
@@ -4532,7 +4528,6 @@ grp3##bwl: ENTRY(test##bwl##_imm,t); OP(ud); \
grp3table(w,3)
grp3table(l,3)
-
grp4b: BOP(incb); BOP(decb); \
OP(ud); OP(ud); \
OP(ud); OP(ud); \
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/head.S b/c/src/lib/libbsp/powerpc/shared/bootloader/head.S
index cb6d9134fc..0d82791524 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/head.S
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/head.S
@@ -38,9 +38,6 @@
li r10,0x26 ; \
sc
-
-
-
#define MONITOR_ENTER \
mfmsr r10 ; \
ori r10,r10,MSR_IP ; \
@@ -48,8 +45,6 @@
li r10,0x63 ; \
sc
-
-
START_GOT
GOT_ENTRY(_GOT2_TABLE_)
GOT_ENTRY(_FIXUP_TABLE_)
@@ -98,7 +93,6 @@ start:
cmplwi cr2,r0,1
beq 2,2f
-
/*
* commented out, 11/7/2002, gregm. This instruction sequence seems to
* be pathological on the 603e.
@@ -113,7 +107,6 @@ start:
#endif
*/
-
2: bl reloc
/* save all the parameters and the orginal msr/hid0/r31 */
@@ -314,8 +307,6 @@ moved: lwz r1,stack(bd)
1: bctr
#endif
-
-
/* relocation function, r30 must point to got2+0x8000 */
reloc:
/* Adjust got2 pointers, no need to check for 0, this code already puts
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/lib.c b/c/src/lib/libbsp/powerpc/shared/bootloader/lib.c
index ae6cf1fafc..ce610fab04 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/lib.c
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/lib.c
@@ -15,7 +15,6 @@
* $Id$
*/
-
void* memset(void *p, int c, unsigned int n)
{
char *q =p;
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c b/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c
index 6b4718e7ea..373b13bb45 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c
@@ -33,7 +33,6 @@ struct wait_queue;
struct buffer_head;
typedef struct { int counter; } atomic_t;
-
typedef struct page {
/* these must be first (free area handling) */
struct page *next;
@@ -48,7 +47,6 @@ typedef struct page {
struct buffer_head * buffers;
} mem_map_t;
-
extern opaque mm_private, pci_private, v86_private, console_private;
#define CONSOLE_ON_SERIAL "console=ttyS0"
@@ -74,7 +72,6 @@ static void exit(void) {
while(1);
}
-
void hang(const char *s, u_long x, ctxt *p) {
u_long *r1;
#ifdef DEBUG
@@ -91,7 +88,6 @@ void hang(const char *s, u_long x, ctxt *p) {
exit();
};
-
void *zalloc(void *x, unsigned items, unsigned size)
{
void *p = salloc(items*size);
@@ -115,7 +111,6 @@ void zfree(void *x, void *addr, unsigned nb)
#define DEFLATED 8
-
void gunzip(void *dst, int dstlen, unsigned char *src, int *lenp)
{
z_stream s;
@@ -422,7 +417,6 @@ setup_hw(void)
*cp = 0;
}
-
/* Functions to deal with the residual data */
static int same_DevID(unsigned short vendor,
unsigned short Number,
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/mm.c b/c/src/lib/libbsp/powerpc/shared/bootloader/mm.c
index 4371ae6a0d..3cef24a30c 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/mm.c
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/mm.c
@@ -129,7 +129,6 @@ void print_maps(map *, const char *);
* designed to properly handle MMU interrupts to fill the hash table.
*/
-
void _handler(int vec, ctxt *p) {
map *area;
struct _mm_private *mm = (struct _mm_private *) bd->mm_private;
@@ -261,7 +260,6 @@ int insert_map(map **head, map *p) {
return 0;
}
-
/* Removal from linked list */
static
@@ -421,7 +419,6 @@ MEM_MAP seg_fix[] = {
{ 0x0480, 0x80800, 0x00800 },
{ 0x0440, 0x80000, 0x00800 } };
-
/* The Motorola NT firmware does not set up all required info in the residual
* data. This routine changes some things in a way that the bootloader and
* linux are happy.
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/pci.c b/c/src/lib/libbsp/powerpc/shared/bootloader/pci.c
index 8f17d06b46..dfa31a2a16 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/pci.c
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/pci.c
@@ -15,7 +15,6 @@
* $Id$
*/
-
#include <sys/types.h>
#include <rtems/bspIo.h>
#include <libcpu/spr.h>
@@ -27,16 +26,13 @@
#include <string.h>
-
typedef unsigned int u32;
-
/*
#define DEBUG
#define PCI_DEBUG
*/
-
/* Used to reorganize PCI space on stupid machines which spread resources
* across a wide address space. This is bad when P2P bridges are present
* or when it limits the mappings that a resource hog like a PCI<->VME
@@ -166,19 +162,15 @@ static struct blacklist_entry blacklist[] = {
{0xffff, 0, 0, 0}
};
-
/* This function filters resources and then inserts them into a list of
* configurable pci resources.
*/
-
#define AREA(r) \
(((r->type&PCI_BASE_ADDRESS_SPACE)==PCI_BASE_ADDRESS_SPACE_IO) ? PCI_AREA_IO :\
((r->type&PCI_BASE_ADDRESS_MEM_PREFETCH) ? PCI_AREA_PREFETCHABLE :\
PCI_AREA_MEMORY))
-
-
static int insert_before(pci_resource *e, pci_resource *t) {
if (e->dev->bus->number != t->dev->bus->number)
return e->dev->bus->number > t->dev->bus->number;
@@ -186,10 +178,6 @@ static int insert_before(pci_resource *e, pci_resource *t) {
return (e->size > t->size);
}
-
-
-
-
static void insert_resource(pci_resource *r) {
struct blacklist_entry *b;
pci_resource *p;
@@ -280,10 +268,6 @@ static void insert_resource(pci_resource *r) {
}
}
-
-
-
-
/* This version only works for bus 0. I don't have any P2P bridges to test
* a more sophisticated version which has therefore not been implemented.
* Prefetchable memory is not yet handled correctly either.
@@ -323,11 +307,6 @@ static u_long find_range(u_char bus, u_char type,
return total;
}
-
-
-
-
-
static inline void init_free_area(pci_area_head *h, u_long start,
u_long end, u_int mask, int high) {
pci_area *p;
@@ -342,11 +321,6 @@ static inline void init_free_area(pci_area_head *h, u_long start,
h->high = high;
}
-
-
-
-
-
static void insert_area(pci_area_head *h, pci_area *p) {
pci_area *q = h->head;
if (!p) return;
@@ -371,10 +345,6 @@ static void insert_area(pci_area_head *h, pci_area *p) {
}
}
-
-
-
-
static
void remove_area(pci_area_head *h, pci_area *p)
{
@@ -390,11 +360,6 @@ void remove_area(pci_area_head *h, pci_area *p)
if (q) q->next=p->next;
}
-
-
-
-
-
static pci_area * alloc_area(pci_area_head *h, struct pci_bus *bus,
u_long required, u_long mask, u_int flags) {
pci_area *p;
@@ -460,10 +425,6 @@ static pci_area * alloc_area(pci_area_head *h, struct pci_bus *bus,
return new;
}
-
-
-
-
static inline
void alloc_space(pci_area *p, pci_resource *r)
{
@@ -476,10 +437,6 @@ void alloc_space(pci_area *p, pci_resource *r)
}
}
-
-
-
-
static void reconfigure_bus_space(u_char bus, u_char type, pci_area_head *h)
{
pci_resource *first, *past, *r;
@@ -500,12 +457,6 @@ static void reconfigure_bus_space(u_char bus, u_char type, pci_area_head *h)
}
}
-
-
-
-
-
-
#define BUS0_IO_START 0x10000
#define BUS0_IO_END 0x1ffff
#define BUS0_MEM_START 0x1000000
@@ -516,10 +467,6 @@ static void reconfigure_bus_space(u_char bus, u_char type, pci_area_head *h)
#define BUSREST_MEM_START 0xb000000
#define BUSREST_MEM_END 0x10000000
-
-
-
-
static void reconfigure_pci(void) {
pci_resource *r;
struct pci_dev *dev;
@@ -535,7 +482,6 @@ static void reconfigure_pci(void) {
init_free_area(&pci->io, BUS0_IO_START, BUS0_IO_END, 0xfff, 0);
init_free_area(&pci->mem, BUS0_MEM_START, BUS0_MEM_END, 0xfffff, 0);
-
/* First reconfigure the I/O space, this will be more
* complex when there is more than 1 bus. And 64 bits
* devices are another kind of problems.
@@ -586,11 +532,6 @@ static void reconfigure_pci(void) {
}
}
-
-
-
-
-
static int
indirect_pci_read_config_byte(unsigned char bus, unsigned char dev_fn,
unsigned char offset, unsigned char *val) {
@@ -660,7 +601,6 @@ static const struct pci_config_access_functions indirect_functions = {
indirect_pci_write_config_dword
};
-
static int
direct_pci_read_config_byte(unsigned char bus, unsigned char dev_fn,
unsigned char offset, unsigned char *val) {
@@ -750,11 +690,6 @@ static const struct pci_config_access_functions direct_functions = {
direct_pci_write_config_dword
};
-
-
-
-
-
void pci_read_bases(struct pci_dev *dev, unsigned int howmany)
{
unsigned int reg, nextreg;
@@ -821,13 +756,6 @@ void pci_read_bases(struct pci_dev *dev, unsigned int howmany)
}
}
-
-
-
-
-
-
-
u_int pci_scan_bus(struct pci_bus *bus)
{
unsigned int devfn, l, max, class;
@@ -1018,15 +946,6 @@ u_int pci_scan_bus(struct pci_bus *bus)
return max;
}
-
-
-
-
-
-
-
-
-
#if 0
void
@@ -1043,11 +962,6 @@ pci_fixup(void)
}
}
-
-
-
-
-
static void print_pci_info()
{
pci_resource *r;
@@ -1102,17 +1016,6 @@ static void print_pci_info()
#endif
-
-
-
-
-
-
-
-
-
-
-
static struct _addr_start
{
uint32_t start_pcimem;
@@ -1120,10 +1023,6 @@ static struct _addr_start
uint32_t start_prefetch;
} astart;
-
-
-
-
static pci_resource *enum_device_resources( struct pci_dev *pdev, int i )
{
pci_resource *r;
@@ -1138,21 +1037,12 @@ static pci_resource *enum_device_resources( struct pci_dev *pdev, int i )
return r;
}
-
-
-
-
-
-
-
-
static void recursive_bus_reconfigure( struct pci_bus *pbus )
{
struct pci_dev *pdev;
struct pci_bus *childbus;
int isroot = 0;
-
if( !pbus )
{
/* start with the root bus */
@@ -1164,13 +1054,11 @@ static void recursive_bus_reconfigure( struct pci_bus *pbus )
isroot = -1;
}
-
#define WRITE_BRIDGE_IO
#define WRITE_BRIDGE_MEM
#define WRITE_BRIDGE_PF
#define WRITE_BRIDGE_ENABLE
-
/*
** Run thru the p2p bridges on this bus and recurse into subordinate busses
*/
@@ -1198,8 +1086,6 @@ static void recursive_bus_reconfigure( struct pci_bus *pbus )
childbus->subordinate );
#endif
-
-
/*
**use the current values & the saved ones to figure out
** the address spaces for the bridge
@@ -1230,9 +1116,6 @@ static void recursive_bus_reconfigure( struct pci_bus *pbus )
pcibios_write_config_byte(pdev->bus->number, pdev->devfn, PCI_IO_LIMIT, limit8 );
#endif
-
-
-
if( addrhold.start_pcimem == astart.start_pcimem )
{
limit16 = 0;
@@ -1252,8 +1135,6 @@ static void recursive_bus_reconfigure( struct pci_bus *pbus )
pcibios_write_config_word(pdev->bus->number, pdev->devfn, PCI_MEMORY_LIMIT, limit16 );
#endif
-
-
if( astart.start_prefetch == addrhold.start_prefetch )
{
limit16 = 0;
@@ -1289,11 +1170,6 @@ static void recursive_bus_reconfigure( struct pci_bus *pbus )
}
}
-
-
-
-
-
if( !isroot )
{
#ifdef PCI_DEBUG
@@ -1370,15 +1246,6 @@ static void recursive_bus_reconfigure( struct pci_bus *pbus )
}
-
-
-
-
-
-
-
-
-
void pci_init(void)
{
PPC_DEVICE *hostbridge;
@@ -1439,5 +1306,4 @@ void pci_init(void)
print_pci_resources("Allocated PCI resources:\n");
}
-
/* eof */
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/pci.h b/c/src/lib/libbsp/powerpc/shared/bootloader/pci.h
index 3884760c8b..619497d5b7 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/pci.h
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/pci.h
@@ -1155,5 +1155,4 @@ extern struct pci_dev *pci_devices; /* list of all devices */
#define PCIBIOS_SET_FAILED 0x88
#define PCIBIOS_BUFFER_TOO_SMALL 0x89
-
#endif /* BOOTLOADER_PCI_H */
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/zlib.c b/c/src/lib/libbsp/powerpc/shared/bootloader/zlib.c
index 70e97abb6e..2eb7c1b777 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/zlib.c
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/zlib.c
@@ -105,7 +105,6 @@ extern char *z_errmsg[]; /* indexed by 1-zlib_error */
# define Tracecv(c,x)
#endif
-
typedef uLong (*check_func) OF((uLong check, Bytef *buf, uInt len));
/* voidpf zcalloc OF((voidpf opaque, unsigned items, unsigned size)); */
@@ -229,7 +228,6 @@ local int inflate_trees_free OF((
inflate_huft *, /* tables to free */
z_stream *)); /* for zfree function */
-
/*+++++*/
/* infcodes.h -- header to use infcodes.c
* Copyright (C) 1995 Mark Adler
@@ -258,7 +256,6 @@ local void inflate_codes_free OF((
inflate_codes_statef *,
z_stream *));
-
/*+++++*/
/* inflate.c -- zlib interface to inflate modules
* Copyright (C) 1995 Mark Adler
@@ -299,7 +296,6 @@ struct internal_state {
};
-
int inflateReset(z)
z_stream *z;
{
@@ -315,7 +311,6 @@ z_stream *z;
return Z_OK;
}
-
int inflateEnd(z)
z_stream *z;
{
@@ -331,7 +326,6 @@ z_stream *z;
return Z_OK;
}
-
int inflateInit2(z, w)
z_stream *z;
int w;
@@ -377,14 +371,12 @@ int w;
return Z_OK;
}
-
int inflateInit(z)
z_stream *z;
{
return inflateInit2(z, DEF_WBITS);
}
-
#define NEEDBYTE {if(z->avail_in==0)goto empty;r=Z_OK;}
#define NEXTBYTE (z->avail_in--,z->total_in++,*z->next_in++)
@@ -513,7 +505,6 @@ z_stream *z;
return inflate_addhistory(z->state->blocks, z);
}
-
int inflateSync(z)
z_stream *z;
{
@@ -625,7 +616,6 @@ struct inflate_blocks_state {
};
-
/* defines for inflate input/output */
/* update pointers and return */
#define UPDBITS {s->bitb=b;s->bitk=k;}
@@ -681,7 +671,6 @@ local int inflate_fast OF((
inflate_blocks_statef *,
z_stream *));
-
/*+++++*/
/* infblock.c -- interpret and process block types to last block
* Copyright (C) 1995 Mark Adler
@@ -737,7 +726,6 @@ local uInt border[] = { /* Order of the bit length code lengths */
the two sets of lengths.
*/
-
local void inflate_blocks_reset(s, z, c)
inflate_blocks_statef *s;
z_stream *z;
@@ -762,7 +750,6 @@ uLongf *c;
Trace("inflate: blocks reset\n");
}
-
local inflate_blocks_statef *inflate_blocks_new(z, c, w)
z_stream *z;
check_func c;
@@ -786,7 +773,6 @@ uInt w;
return s;
}
-
local int inflate_blocks(s, z, r)
inflate_blocks_statef *s;
z_stream *z;
@@ -1049,7 +1035,6 @@ int r;
}
}
-
local int inflate_blocks_free(s, z, c)
inflate_blocks_statef *s;
z_stream *z;
@@ -1115,7 +1100,6 @@ z_stream *z;
return Z_OK;
}
-
/*
* At the end of a Deflate-compressed PPP packet, we expect to have seen
* a `stored' block type value but not the (zero) length bytes.
@@ -1129,7 +1113,6 @@ local int inflate_packet_flush(s)
return Z_OK;
}
-
/*+++++*/
/* inftrees.c -- generate Huffman trees for efficient decoding
* Copyright (C) 1995 Mark Adler
@@ -1142,7 +1125,6 @@ local int inflate_packet_flush(s)
#define exop word.what.Exop
#define bits word.what.Bits
-
local int huft_build OF((
uIntf *, /* code lengths in bits */
uInt, /* number of codes */
@@ -1212,7 +1194,6 @@ local uInt cpdext[] = { /* Extra bits for distance codes */
possibly even between compilers. Your mileage may vary.
*/
-
/* If BMAX needs to be larger than 16, then h and x[] should be uLong. */
#define BMAX 15 /* maximum bit length of any code */
#define N_MAX 288 /* maximum number of codes in any set */
@@ -1257,7 +1238,6 @@ z_stream *zs; /* for zalloc function */
int y; /* number of dummy codes added */
uInt z; /* number of entries in current table */
-
/* Generate counts for each bit length */
p = c;
#define C0 *p++ = 0;
@@ -1275,7 +1255,6 @@ z_stream *zs; /* for zalloc function */
return Z_OK;
}
-
/* Find minimum and maximum length, bound *m by those */
l = *m;
for (j = 1; j <= BMAX; j++)
@@ -1292,7 +1271,6 @@ z_stream *zs; /* for zalloc function */
l = i;
*m = l;
-
/* Adjust last length count to fill out codes, if needed */
for (y = 1 << j; j < i; j++, y <<= 1)
if ((y -= c[j]) < 0)
@@ -1301,7 +1279,6 @@ z_stream *zs; /* for zalloc function */
return Z_DATA_ERROR;
c[i] += y;
-
/* Generate starting offsets into the value table for each length */
x[1] = j = 0;
p = c + 1; xp = x + 2;
@@ -1309,7 +1286,6 @@ z_stream *zs; /* for zalloc function */
*xp++ = (j += *p++);
}
-
/* Make a table of values in order of bit lengths */
p = b; i = 0;
do {
@@ -1317,7 +1293,6 @@ z_stream *zs; /* for zalloc function */
v[x[j]++] = i;
} while (++i < n);
-
/* Generate the Huffman codes and for each, make the table entries */
x[0] = i = 0; /* first Huffman code is zero */
p = v; /* grab values in bit order */
@@ -1418,12 +1393,10 @@ z_stream *zs; /* for zalloc function */
}
}
-
/* Return Z_BUF_ERROR if we were given an incomplete table */
return y != 0 && g != 1 ? Z_BUF_ERROR : Z_OK;
}
-
local int inflate_trees_bits(c, bb, tb, z)
uIntf *c; /* 19 code lengths */
uIntf *bb; /* bits tree desired/actual depth */
@@ -1444,7 +1417,6 @@ z_stream *z; /* for zfree function */
return r;
}
-
local int inflate_trees_dynamic(nl, nd, c, bl, bd, tl, td, z)
uInt nl; /* number of literal/length codes */
uInt nd; /* number of distance codes */
@@ -1494,7 +1466,6 @@ z_stream *z; /* for zfree function */
return Z_OK;
}
-
/* build fixed tables only once--keep them here */
local int fixed_lock = 0;
local int fixed_built = 0;
@@ -1506,7 +1477,6 @@ local uInt fixed_bd;
local inflate_huft *fixed_tl;
local inflate_huft *fixed_td;
-
local voidpf falloc(q, n, s)
voidpf q; /* opaque pointer (not used) */
uInt n; /* number of items */
@@ -1519,7 +1489,6 @@ uInt s; /* size of item */
return (voidpf)(fixed_mem + fixed_left);
}
-
local void ffree(q, p, n)
voidpf q;
voidpf p;
@@ -1529,7 +1498,6 @@ uInt n;
if (q) q = p; /* to make some compilers happy */
}
-
local int inflate_trees_fixed(bl, bd, tl, td)
uIntf *bl; /* literal desired/actual bit depth */
uIntf *bd; /* distance desired/actual bit depth */
@@ -1579,7 +1547,6 @@ inflate_huft * FAR *td; /* distance tree result */
return Z_OK;
}
-
local int inflate_trees_free(t, z)
inflate_huft *t; /* table to free */
z_stream *z; /* for zfree function */
@@ -1651,7 +1618,6 @@ struct inflate_codes_state {
};
-
local inflate_codes_statef *inflate_codes_new(bl, bd, tl, td, z)
uInt bl, bd;
inflate_huft *tl, *td;
@@ -1672,7 +1638,6 @@ z_stream *z;
return c;
}
-
local int inflate_codes(s, z, r)
inflate_blocks_statef *s;
z_stream *z;
@@ -1832,7 +1797,6 @@ int r;
}
}
-
local void inflate_codes_free(c, z)
inflate_codes_statef *c;
z_stream *z;
@@ -1913,7 +1877,6 @@ int r;
return r;
}
-
/*+++++*/
/* inffast.c -- process literals and length/distance pairs fast
* Copyright (C) 1995 Mark Adler
@@ -2074,7 +2037,6 @@ z_stream *z;
return Z_OK;
}
-
/*+++++*/
/* zutil.c -- target dependent utility functions for the compression library
* Copyright (C) 1995 Jean-loup Gailly.
@@ -2095,7 +2057,6 @@ char *z_errmsg[] = {
"buffer error", /* Z_BUF_ERROR (-5) */
""};
-
/*+++++*/
/* adler32.c -- compute the Adler-32 checksum of a data stream
* Copyright (C) 1995 Mark Adler
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/zlib.h b/c/src/lib/libbsp/powerpc/shared/bootloader/zlib.h
index 11b040595c..cce54696dc 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/zlib.h
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/zlib.h
@@ -274,7 +274,6 @@ extern int inflateInit OF((z_stream *strm));
inflate().
*/
-
extern int inflate OF((z_stream *strm, int flush));
/*
Performs one or both of the following actions:
@@ -325,7 +324,6 @@ extern int inflate OF((z_stream *strm, int flush));
when Z_FINISH is used. In the Z_DATA_ERROR case, the application may then
call inflateSync to look for a good compression block. */
-
extern int inflateEnd OF((z_stream *strm));
/*
All dynamically allocated data structures for this stream are freed.
diff --git a/c/src/lib/libbsp/powerpc/shared/clock/p_clock.c b/c/src/lib/libbsp/powerpc/shared/clock/p_clock.c
index fe90a3d01e..c181d398bb 100644
--- a/c/src/lib/libbsp/powerpc/shared/clock/p_clock.c
+++ b/c/src/lib/libbsp/powerpc/shared/clock/p_clock.c
@@ -24,7 +24,6 @@ static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
(rtems_irq_disable)clockOff,
(rtems_irq_is_enabled) clockIsOn};
-
int BSP_disconnect_clock_handler (void)
{
return BSP_remove_rtems_irq_handler (&clockIrqData);
diff --git a/c/src/lib/libbsp/powerpc/shared/console/console.c b/c/src/lib/libbsp/powerpc/shared/console/console.c
index 2a3a1d6c60..510cd6ede5 100644
--- a/c/src/lib/libbsp/powerpc/shared/console/console.c
+++ b/c/src/lib/libbsp/powerpc/shared/console/console.c
@@ -75,7 +75,6 @@ static TtySTblRec ttyS[]={
},
};
-
/*-------------------------------------------------------------------------+
| Console device driver INITIALIZE entry point.
+--------------------------------------------------------------------------+
@@ -157,7 +156,6 @@ static int console_first_open(int major, int minor, void *arg)
return 0;
}
-
static int console_last_close(int major, int minor, void *arg)
{
BSP_uart_remove_isr(minor, ttyS[minor].isr);
@@ -219,7 +217,6 @@ console_close(rtems_device_major_number major,
return res;
} /* console_close */
-
/*-------------------------------------------------------------------------+
| Console device driver READ entry point.
+--------------------------------------------------------------------------+
@@ -234,7 +231,6 @@ console_read(rtems_device_major_number major,
return rtems_termios_read (arg);
} /* console_read */
-
/*-------------------------------------------------------------------------+
| Console device driver WRITE entry point.
+--------------------------------------------------------------------------+
@@ -250,8 +246,6 @@ console_write(rtems_device_major_number major,
} /* console_write */
-
-
/*
* Handle ioctl request.
*/
diff --git a/c/src/lib/libbsp/powerpc/shared/console/consoleIo.h b/c/src/lib/libbsp/powerpc/shared/console/consoleIo.h
index 98441d22de..02dcaae386 100644
--- a/c/src/lib/libbsp/powerpc/shared/console/consoleIo.h
+++ b/c/src/lib/libbsp/powerpc/shared/console/consoleIo.h
@@ -13,7 +13,6 @@
#ifndef __CONSOLE_IO_H
#define __CONSOLE_IO_H
-
typedef enum {
CONSOLE_LOG = 1,
CONSOLE_SERIAL = 2,
@@ -38,5 +37,4 @@ extern int debug_getc(void);
extern int debug_tstc(void);
int kbdreset(void);
-
#endif
diff --git a/c/src/lib/libbsp/powerpc/shared/console/inch.c b/c/src/lib/libbsp/powerpc/shared/console/inch.c
index 4b30a22978..42c3cc7df7 100644
--- a/c/src/lib/libbsp/powerpc/shared/console/inch.c
+++ b/c/src/lib/libbsp/powerpc/shared/console/inch.c
@@ -209,7 +209,6 @@ void _IBMPC_keyboard_isr()
}
} /* _IBMPC_keyboard_isr */
-
/*-------------------------------------------------------------------------+
| Function: _IBMPC_chrdy
| Description: Check keyboard ISR buffer and return character if not empty.
@@ -233,7 +232,6 @@ _IBMPC_chrdy(char *c)
return FALSE;
} /* _IBMPC_chrdy */
-
/*-------------------------------------------------------------------------+
| Function: _IBMPC_inch
| Description: Poll keyboard until a character is ready and return it.
@@ -251,7 +249,6 @@ _IBMPC_inch(void)
return c;
} /* _IBMPC_inch */
-
/*
* Routine that can be used before interrupt management is initialized.
*/
diff --git a/c/src/lib/libbsp/powerpc/shared/console/keyboard.h b/c/src/lib/libbsp/powerpc/shared/console/keyboard.h
index 72643617fb..4e7e272d80 100644
--- a/c/src/lib/libbsp/powerpc/shared/console/keyboard.h
+++ b/c/src/lib/libbsp/powerpc/shared/console/keyboard.h
@@ -308,7 +308,6 @@
#define K_F245 K(KT_FN,254)
#define K_UNDO K(KT_FN,255)
-
#define K_HOLE K(KT_SPEC,0)
#define K_ENTER K(KT_SPEC,1)
#define K_SH_REGS K(KT_SPEC,2)
diff --git a/c/src/lib/libbsp/powerpc/shared/console/polled_io.c b/c/src/lib/libbsp/powerpc/shared/console/polled_io.c
index 7172e8d222..9d7985be7f 100644
--- a/c/src/lib/libbsp/powerpc/shared/console/polled_io.c
+++ b/c/src/lib/libbsp/powerpc/shared/console/polled_io.c
@@ -316,9 +316,6 @@ struct kbdiacr accent_table[MAX_DIACR] = {
unsigned int accent_table_size = 68;
-
-
-
/* These #defines have been copied from drivers/char/pc_keyb.h, by
* Martin Mares (mj@ucw.cz).
* converted to offsets by Till Straumann <strauman@slac.stanford.edu>
@@ -384,7 +381,6 @@ SPR_RO(PVR)
#endif /* USE_KBD_SUPPORT */
-
/* Early messages after mm init but before console init are kept in log
* buffers.
*/
@@ -411,7 +407,6 @@ static board_memory_map mem_map = {
board_memory_map *ptr_mem_map = &mem_map;
-
struct _console_global_data {
console_log *log;
int vacuum_sent;
@@ -494,7 +489,6 @@ int vacuum_tstc(void) {
#define LSR_TEMT 0x40 /* Xmitter empty */
#define LSR_ERR 0x80 /* Error */
-
#ifdef STATIC_LOG_ALLOC
static int global_index = 0;
@@ -510,7 +504,6 @@ static void pfree(void* p)
}
#endif
-
void log_putc(const u_char c) {
console_log *l;
for(l=console_global_data.log; l; l=l->next) {
@@ -544,7 +537,6 @@ void puts(const u_char *s)
}
}
-
static
void flush_log(void) {
console_log *p, *next;
@@ -884,7 +876,6 @@ int select_console(ioType t) {
/* we use this so that we can do without the ctype library */
#define is_digit(c) ((c) >= '0' && (c) <= '9')
-
/* provide this for the bootloader only; otherwise
* use libcpu implementation
*/
diff --git a/c/src/lib/libbsp/powerpc/shared/console/uart.c b/c/src/lib/libbsp/powerpc/shared/console/uart.c
index 7fb5597873..2532bef720 100644
--- a/c/src/lib/libbsp/powerpc/shared/console/uart.c
+++ b/c/src/lib/libbsp/powerpc/shared/console/uart.c
@@ -167,7 +167,6 @@ BSP_uart_init(int uart, int baud, int hwFlow)
/* 8-bit, no parity , 1 stop */
uwrite(uart, LCR, CHR_8_BITS);
-
/* Set DTR, RTS and OUT2 high */
uwrite(uart, MCR, DTR | RTS | OUT_2);
@@ -374,7 +373,6 @@ BSP_uart_polled_status(int uart)
return BSP_UART_STATUS_ERROR;
}
-
/*
* Polled mode write function
*/
@@ -489,7 +487,6 @@ BSP_uart_remove_isr(int uart, rtems_irq_hdl handler)
return doit(uart, handler, BSP_remove_rtems_irq_handler);
}
-
/* ================ Termios support =================*/
static volatile int termios_stopped_com[2] = {0,0};
@@ -539,7 +536,6 @@ BSP_uart_termios_write_com(int minor, const char *buf, int len)
/* If there TX buffer is busy - something is royally screwed up */
/* assert((uread(BSP_UART_COM1, LSR) & THRE) != 0); */
-
if(termios_stopped_com[uart])
{
/* CTS low */
diff --git a/c/src/lib/libbsp/powerpc/shared/include/bsp.h b/c/src/lib/libbsp/powerpc/shared/include/bsp.h
index fb79919160..c2abd385a5 100644
--- a/c/src/lib/libbsp/powerpc/shared/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/shared/include/bsp.h
@@ -52,7 +52,6 @@
#include <bsp/openpic.h>
#define BSP_PIC_DO_EOI openpic_eoi(0)
-
#ifndef ASM
#define outport_byte(port,value) outb(value,port)
#define outport_word(port,value) outw(value,port)
@@ -105,7 +104,6 @@ extern int BSP_connect_clock_handler (void);
*/
extern unsigned long _BSP_clear_hostbridge_errors(int enableMCP, int quiet);
-
/*
* TM27 stuff
*/
@@ -137,7 +135,6 @@ void Install_tm27_vector(void (*_handler)())
asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
-
#define Clear_tm27_intr() \
do { \
uint32_t _clicks = 0xffffffff; \
@@ -154,7 +151,6 @@ void Install_tm27_vector(void (*_handler)())
} while (0)
#endif
-
#endif
#endif
diff --git a/c/src/lib/libbsp/powerpc/shared/include/nvram.h b/c/src/lib/libbsp/powerpc/shared/include/nvram.h
index 3f6f77988a..a822382e51 100644
--- a/c/src/lib/libbsp/powerpc/shared/include/nvram.h
+++ b/c/src/lib/libbsp/powerpc/shared/include/nvram.h
@@ -13,7 +13,6 @@
#define NVRAM_AS1 0x75
#define NVRAM_DATA 0x77
-
/* RTC Offsets */
#define MOTO_RTC_SECONDS 0x1FF9
diff --git a/c/src/lib/libbsp/powerpc/shared/irq/i8259.c b/c/src/lib/libbsp/powerpc/shared/irq/i8259.c
index 806a7eb19b..a5090cd18f 100644
--- a/c/src/lib/libbsp/powerpc/shared/irq/i8259.c
+++ b/c/src/lib/libbsp/powerpc/shared/irq/i8259.c
@@ -107,7 +107,6 @@ int BSP_irq_enabled_at_i8259s (const rtems_irq_symbolic_name irqLine)
return (~(i8259s_cache & mask));
}
-
/*-------------------------------------------------------------------------+
| Function: BSP_irq_ack_at_i8259s
| Description: Signal generic End Of Interrupt (EOI) to appropriate PIC.
diff --git a/c/src/lib/libbsp/powerpc/shared/irq/irq.c b/c/src/lib/libbsp/powerpc/shared/irq/irq.c
index 356c7921f9..7cdd46b13f 100644
--- a/c/src/lib/libbsp/powerpc/shared/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/shared/irq/irq.c
@@ -76,7 +76,6 @@ static inline int is_processor_irq(const rtems_irq_symbolic_name irqLine)
);
}
-
/*
* ------------------------ RTEMS Irq helper functions ----------------
*/
@@ -118,7 +117,6 @@ static int isValidInterrupt(int irq)
return 1;
}
-
/*
* ------------------------ RTEMS Shared Irq Handler Mngt Routines ----------------
*/
@@ -153,7 +151,6 @@ int BSP_install_rtems_shared_irq_handler (const rtems_irq_connect_data* irq)
/* link chain to new topmost handler */
rtems_hdl_tbl[irq->name].next_handler = (void *)vchain;
-
if (is_isa_irq(irq->name)) {
/*
* Enable interrupt at PIC level
@@ -183,7 +180,6 @@ int BSP_install_rtems_shared_irq_handler (const rtems_irq_connect_data* irq)
return 1;
}
-
/*
* ------------------------ RTEMS Single Irq Handler Mngt Routines ----------------
*/
@@ -245,7 +241,6 @@ int BSP_install_rtems_irq_handler (const rtems_irq_connect_data* irq)
return 1;
}
-
int BSP_get_current_rtems_irq_handler (rtems_irq_connect_data* irq)
{
unsigned int level;
@@ -517,7 +512,6 @@ void C_dispatch_irq_handler (CPU_Interrupt_frame *frame, unsigned int excNum)
register unsigned msr;
register unsigned new_msr;
-
if (excNum == ASM_DEC_VECTOR) {
_CPU_MSR_GET(msr);
new_msr = msr | MSR_EE;
@@ -566,7 +560,6 @@ void C_dispatch_irq_handler (CPU_Interrupt_frame *frame, unsigned int excNum)
}
}
-
_CPU_MSR_SET(msr);
if (isaIntr) {
@@ -586,8 +579,6 @@ void C_dispatch_irq_handler (CPU_Interrupt_frame *frame, unsigned int excNum)
}
}
-
-
void _ThreadProcessSignalsFromIrq (BSP_Exception_frame* ctx)
{
/*
diff --git a/c/src/lib/libbsp/powerpc/shared/irq/irq.h b/c/src/lib/libbsp/powerpc/shared/irq/irq.h
index f2457d36e5..c9b38606a2 100644
--- a/c/src/lib/libbsp/powerpc/shared/irq/irq.h
+++ b/c/src/lib/libbsp/powerpc/shared/irq/irq.h
@@ -21,7 +21,6 @@
#ifndef LIBBSP_POWERPC_MCP750_IRQ_IRQ_H
#define LIBBSP_POWERPC_MCP750_IRQ_IRQ_H
-
/*
* 8259 edge/level control definitions at VIA
*/
@@ -63,7 +62,6 @@
extern "C" {
#endif
-
/*
* Symblolic IRQ names and related definitions.
*/
@@ -128,9 +126,6 @@ typedef enum {
}rtems_irq_symbolic_name;
-
-
-
/*
* Type definition for RTEMS managed interrupts
*/
@@ -213,9 +208,6 @@ typedef struct {
rtems_irq_prio* irqPrioTbl;
}rtems_irq_global_settings;
-
-
-
/*-------------------------------------------------------------------------+
| Function Prototypes.
+--------------------------------------------------------------------------*/
diff --git a/c/src/lib/libbsp/powerpc/shared/irq/irq_asm.S b/c/src/lib/libbsp/powerpc/shared/irq/irq_asm.S
index 7eb018d606..dbdfc964c8 100644
--- a/c/src/lib/libbsp/powerpc/shared/irq/irq_asm.S
+++ b/c/src/lib/libbsp/powerpc/shared/irq/irq_asm.S
@@ -21,7 +21,6 @@
#include <bsp/vectors.h>
#include <libcpu/raw_exception.h>
-
#define SYNC \
sync; \
isync
diff --git a/c/src/lib/libbsp/powerpc/shared/motorola/motorola.c b/c/src/lib/libbsp/powerpc/shared/motorola/motorola.c
index f30cfc5d2d..c196228776 100644
--- a/c/src/lib/libbsp/powerpc/shared/motorola/motorola.c
+++ b/c/src/lib/libbsp/powerpc/shared/motorola/motorola.c
@@ -12,13 +12,11 @@
* $Id$
*/
-
#include <bsp/motorola.h>
#include <rtems/bspIo.h>
#include <libcpu/io.h>
#include <string.h>
-
/*
** Board-specific table that maps interrupt names to onboard pci
** peripherals as well as local pci busses. This table is used at
@@ -67,8 +65,6 @@
#define NULL_PINMAP {-1,{-1,-1,-1,-1}}
#define NULL_INTMAP {-1,-1,-1,{}}
-
-
static struct _int_map mcp750_intmap[] = {
{ 0, 16, 0, {{1, {5, 19,-1,-1}}, /* pmc slot */
@@ -85,9 +81,6 @@ static struct _int_map mcp750_intmap[] = {
NULL_INTMAP };
-
-
-
static struct _int_map mtx603_intmap[] = {
{0, 14, 0, {{1, {10,16,-1,-1}}, /* onboard ethernet */
@@ -116,13 +109,6 @@ static struct _int_map mtx603_intmap[] = {
NULL_INTMAP };
-
-
-
-
-
-
-
/*
* This table represents the standard PCI swizzle defined in the
* PCI bus specification. Table taken from Linux 2.4.18, prep_pci.c,
@@ -141,14 +127,6 @@ static int prep_pci_swizzle(int slot, int pin)
return prep_pci_intpins[ slot % 4 ][ pin-1 ];
}
-
-
-
-
-
-
-
-
typedef struct {
/*
* 0x100 mask assumes for Raven and Hawk boards
@@ -163,7 +141,6 @@ typedef struct {
int (*swizzler)(int, int);
} mot_info_t;
-
static const mot_info_t mot_boards[] = {
{0x300, 0x00, "MVME 2400", NULL, NULL},
{0x010, 0x00, "Genesis", NULL, NULL},
@@ -188,8 +165,6 @@ static const mot_info_t mot_boards[] = {
{0x000, 0x00, ""}
};
-
-
prep_t currentPrepType;
motorolaBoard currentBoard;
prep_t checkPrepBoardType(RESIDUAL *res)
@@ -250,21 +225,18 @@ motorolaBoard getMotorolaBoard()
return currentBoard;
}
-
const char* motorolaBoardToString(motorolaBoard board)
{
if (board == MOTOROLA_UNKNOWN) return "Unknown motorola board";
return (mot_boards[board].name);
}
-
const struct _int_map *motorolaIntMap(motorolaBoard board)
{
if (board == MOTOROLA_UNKNOWN) return NULL;
return mot_boards[board].intmap;
}
-
const void *motorolaIntSwizzle(motorolaBoard board)
{
if (board == MOTOROLA_UNKNOWN) return NULL;
diff --git a/c/src/lib/libbsp/powerpc/shared/motorola/motorola.h b/c/src/lib/libbsp/powerpc/shared/motorola/motorola.h
index 11d3fff4c4..f690f9ea24 100644
--- a/c/src/lib/libbsp/powerpc/shared/motorola/motorola.h
+++ b/c/src/lib/libbsp/powerpc/shared/motorola/motorola.h
@@ -18,13 +18,6 @@
#include <bsp/residual.h>
#include <bsp/pci.h>
-
-
-
-
-
-
-
typedef enum {
PREP_IBM = 0,
PREP_Radstone = 1,
@@ -72,5 +65,4 @@ extern const char* motorolaBoardToString(motorolaBoard);
extern const struct _int_map *motorolaIntMap(motorolaBoard board);
extern const void *motorolaIntSwizzle(motorolaBoard board);
-
#endif /* LIBBSP_POWERPC_SHARED_MOTOROLA_MOTOROLA_H */
diff --git a/c/src/lib/libbsp/powerpc/shared/openpic/openpic.c b/c/src/lib/libbsp/powerpc/shared/openpic/openpic.c
index 0a619ba1c2..b7aa4777ce 100644
--- a/c/src/lib/libbsp/powerpc/shared/openpic/openpic.c
+++ b/c/src/lib/libbsp/powerpc/shared/openpic/openpic.c
@@ -34,13 +34,11 @@
#define REGISTER_DEBUG
#undef REGISTER_DEBUG
-
volatile struct OpenPIC *OpenPIC = NULL;
static unsigned int NumProcessors;
static unsigned int NumSources;
-
/*
* Accesses to the current processor's registers
*/
@@ -48,7 +46,6 @@ static unsigned int NumSources;
#define THIS_CPU Processor[cpu]
#define CHECK_THIS_CPU check_arg_cpu(cpu)
-
/*
* Sanity checks
*/
@@ -84,8 +81,6 @@ static unsigned int NumSources;
#define check_arg_cpu(cpu) do {} while (0)
#endif
-
-
/*
* I/O functions
*/
@@ -109,7 +104,6 @@ static inline void openpic_write(volatile unsigned int *addr, unsigned int val)
out_le32(addr, val);
}
-
static inline unsigned int openpic_readfield(volatile unsigned int *addr, unsigned int mask)
{
unsigned int val = openpic_read(addr);
@@ -133,7 +127,6 @@ static inline void openpic_setfield(volatile unsigned int *addr, unsigned int ma
openpic_writefield(addr, mask, mask);
}
-
/*
* Update a Vector/Priority register in a safe manner. The interrupt will
* be disabled.
@@ -148,10 +141,8 @@ static void openpic_safe_writefield(volatile unsigned int *addr, unsigned int ma
openpic_writefield(addr, mask | OPENPIC_MASK, field | OPENPIC_MASK);
}
-
/* -------- Global Operations ---------------------------------------------- */
-
/*
* Initialize the OpenPIC
*
@@ -272,7 +263,6 @@ void openpic_init(int main_pic, unsigned char *polarities, unsigned char *senses
}
}
-
/*
* Reset the OpenPIC
*/
@@ -283,7 +273,6 @@ void openpic_reset(void)
OPENPIC_CONFIG_RESET);
}
-
/*
* Enable/disable 8259 Pass Through Mode
*/
@@ -300,7 +289,6 @@ void openpic_disable_8259_pass_through(void)
OPENPIC_CONFIG_8259_PASSTHROUGH_DISABLE);
}
-
/*
* Find out the current interrupt
*/
@@ -315,7 +303,6 @@ unsigned int openpic_irq(unsigned int cpu)
return vec;
}
-
/*
* Signal end of interrupt (EOI) processing
*/
@@ -326,7 +313,6 @@ void openpic_eoi(unsigned int cpu)
openpic_write(&OpenPIC->THIS_CPU.EOI, 0);
}
-
/*
* Get/set the current task priority
*/
@@ -363,7 +349,6 @@ void openpic_set_spurious(unsigned int vec)
vec);
}
-
/*
* Initialize one or more CPUs
*/
@@ -373,10 +358,8 @@ void openpic_init_processor(unsigned int cpumask)
openpic_write(&OpenPIC->Global.Processor_Initialization, cpumask);
}
-
/* -------- Interprocessor Interrupts -------------------------------------- */
-
/*
* Initialize an interprocessor interrupt (and disable it)
*
@@ -395,7 +378,6 @@ void openpic_initipi(unsigned int ipi, unsigned int pri, unsigned int vec)
(pri << OPENPIC_PRIORITY_SHIFT) | vec);
}
-
/*
* Send an IPI to one or more CPUs
*/
@@ -407,10 +389,8 @@ void openpic_cause_IPI(unsigned int cpu, unsigned int ipi, unsigned int cpumask)
openpic_write(&OpenPIC->THIS_CPU.IPI_Dispatch(ipi), cpumask);
}
-
/* -------- Timer Interrupts ----------------------------------------------- */
-
/*
* Initialize a timer interrupt (and disable it)
*
@@ -429,7 +409,6 @@ void openpic_inittimer(unsigned int timer, unsigned int pri, unsigned int vec)
(pri << OPENPIC_PRIORITY_SHIFT) | vec);
}
-
/*
* Map a timer interrupt to one or more CPUs
*/
@@ -440,10 +419,8 @@ void openpic_maptimer(unsigned int timer, unsigned int cpumask)
openpic_write(&OpenPIC->Global.Timer[timer].Destination, cpumask);
}
-
/* -------- Interrupt Sources ---------------------------------------------- */
-
/*
* Enable/disable an interrupt source
*/
@@ -466,7 +443,6 @@ unsigned long flags;
rtems_interrupt_enable(flags);
}
-
/*
* Initialize an interrupt source (and disable it!)
*
@@ -490,7 +466,6 @@ void openpic_initirq(unsigned int irq, unsigned int pri, unsigned int vec, int p
(sense ? OPENPIC_SENSE_LEVEL : 0));
}
-
/*
* Map an interrupt source to one or more CPUs
*/
diff --git a/c/src/lib/libbsp/powerpc/shared/openpic/openpic.h b/c/src/lib/libbsp/powerpc/shared/openpic/openpic.h
index e6b83138db..776b5ec723 100644
--- a/c/src/lib/libbsp/powerpc/shared/openpic/openpic.h
+++ b/c/src/lib/libbsp/powerpc/shared/openpic/openpic.h
@@ -37,7 +37,6 @@
#ifndef _RTEMS_OPENPIC_H
#define _RTEMS_OPENPIC_H
-
/*
* OpenPIC supports up to 2048 interrupt sources and up to 32 processors
*/
@@ -50,7 +49,6 @@
#define OPENPIC_NUM_PRI 16
#define OPENPIC_NUM_VECTORS 256
-
/*
* Vector numbers
*/
@@ -60,7 +58,6 @@
#define OPENPIC_VEC_IPI 0x50 /* and up */
#define OPENPIC_VEC_SPURIOUS 99
-
/*
* OpenPIC Registers are 32 bits and aligned on 128 bit boundaries
*/
@@ -70,7 +67,6 @@ typedef struct _OpenPIC_Reg {
char Pad[0xc];
} OpenPIC_Reg;
-
/*
* Per Processor Registers
*/
@@ -103,7 +99,6 @@ typedef struct _OpenPIC_Processor {
char Pad5[0xf40];
} OpenPIC_Processor;
-
/*
* Timer Registers
*/
@@ -115,7 +110,6 @@ typedef struct _OpenPIC_Timer {
OpenPIC_Reg _Destination; /* Read/Write */
} OpenPIC_Timer;
-
/*
* Global Registers
*/
@@ -159,7 +153,6 @@ typedef struct _OpenPIC_Global {
char Pad1[0xee00];
} OpenPIC_Global;
-
/*
* Interrupt Source Registers
*/
@@ -169,7 +162,6 @@ typedef struct _OpenPIC_Source {
OpenPIC_Reg _Destination; /* Read/Write */
} OpenPIC_Source;
-
/*
* OpenPIC Register Map
*/
@@ -192,7 +184,6 @@ struct OpenPIC {
extern volatile struct OpenPIC *OpenPIC;
-
/*
* Current Task Priority Register
*/
@@ -243,7 +234,6 @@ extern volatile struct OpenPIC *OpenPIC;
#define OPENPIC_PRIORITY_SHIFT 16
#define OPENPIC_VECTOR_MASK 0x000000ff
-
/*
* Interrupt Source Registers
*/
@@ -251,7 +241,6 @@ extern volatile struct OpenPIC *OpenPIC;
#define OPENPIC_SENSE_POLARITY 0x00800000 /* Undoc'd */
#define OPENPIC_SENSE_LEVEL 0x00400000
-
/*
* Timer Registers
*/
@@ -260,7 +249,6 @@ extern volatile struct OpenPIC *OpenPIC;
#define OPENPIC_TIMER_TOGGLE 0x80000000
#define OPENPIC_TIMER_COUNT_INHIBIT 0x80000000
-
/*
* Aliases to make life simpler
*/
@@ -293,7 +281,6 @@ extern volatile struct OpenPIC *OpenPIC;
#define Vector_Priority _Vector_Priority.Reg
#define Destination _Destination.Reg
-
/*
* Vendor and Device IDs
*/
@@ -301,7 +288,6 @@ extern volatile struct OpenPIC *OpenPIC;
#define OPENPIC_VENDOR_ID_APPLE 0x14
#define OPENPIC_DEVICE_ID_APPLE_HYDRA 0x46
-
/*
* OpenPIC Operations
*/
diff --git a/c/src/lib/libbsp/powerpc/shared/pci/pci.c b/c/src/lib/libbsp/powerpc/shared/pci/pci.c
index ba5a97d44d..b822100f3d 100644
--- a/c/src/lib/libbsp/powerpc/shared/pci/pci.c
+++ b/c/src/lib/libbsp/powerpc/shared/pci/pci.c
@@ -216,22 +216,9 @@ const pci_config_access_functions pci_direct_functions = {
direct_pci_write_config_dword
};
-
-
-
-
-
-
-
-
-
-
-
-
#define PRINT_MSG() \
printk("pci : Device %d:%02x routed to interrupt_line %d\n", pbus, pslot, int_name )
-
/*
** Validate a test interrupt name and print a warning if its not one of
** the names defined in the routing record.
@@ -269,16 +256,11 @@ static int test_intname(
return 0;
}
-
-
-
-
struct pcibridge
{
int bus,slot;
};
-
static int FindPCIbridge( int mybus, struct pcibridge *pb )
{
int pbus, pslot;
@@ -321,19 +303,11 @@ static int FindPCIbridge( int mybus, struct pcibridge *pb )
#endif
}
-
}
}
return -1;
}
-
-
-
-
-
-
-
void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) )
{
unsigned char cvalue;
@@ -406,7 +380,6 @@ void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) )
}
}
-
if( !ismatch )
{
/*
@@ -444,7 +417,6 @@ void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) )
*/
if( tbus ) int_pin = (*swizzler)(tslot,int_pin);
-
/*
** int_pin points to the interrupt channel
** this card ends up delivering interrupts
@@ -476,7 +448,6 @@ void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) )
}
}
-
if( !ismatch )
{
struct pcibridge pb;
@@ -511,27 +482,16 @@ void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) )
}
donesearch:
-
if( !ismatch && int_pin != 0 && int_name == 255 )
{
printk("pci : Unable to match device %d:%d with an int routing table entry\n", pbus, pslot );
}
-
}
}
}
}
-
-
-
-
-
-
-
-
-
/*
* This routine determines the maximum bus number in the system
*/
diff --git a/c/src/lib/libbsp/powerpc/shared/pci/pci.h b/c/src/lib/libbsp/powerpc/shared/pci/pci.h
index 4ce74f7307..3385dac78e 100644
--- a/c/src/lib/libbsp/powerpc/shared/pci/pci.h
+++ b/c/src/lib/libbsp/powerpc/shared/pci/pci.h
@@ -1153,7 +1153,6 @@ pci_write_config_dword(unsigned char bus, unsigned char slot, unsigned char func
extern unsigned char BusCountPCI();
extern void InitializePCI();
-
struct _pin_routes
{
int pin, int_name[4];
@@ -1166,7 +1165,6 @@ struct _int_map
void FixupPCI( const struct _int_map *, int (*swizzler)(int,int) );
-
/* scan for a specific device */
/* find a particular PCI device
* (currently, only bus0 is scanned for device/fun0)
diff --git a/c/src/lib/libbsp/powerpc/shared/residual/residual.c b/c/src/lib/libbsp/powerpc/shared/residual/residual.c
index 7d5b1a4aa8..4d5ce41640 100644
--- a/c/src/lib/libbsp/powerpc/shared/residual/residual.c
+++ b/c/src/lib/libbsp/powerpc/shared/residual/residual.c
@@ -19,7 +19,6 @@
#include <libcpu/io.h>
#include <libcpu/byteorder.h>
-
static int same_DevID(unsigned short vendor,
unsigned short Number,
char * str)
diff --git a/c/src/lib/libbsp/powerpc/shared/start/start.S b/c/src/lib/libbsp/powerpc/shared/start/start.S
index 8c90a442f0..cf88c54903 100644
--- a/c/src/lib/libbsp/powerpc/shared/start/start.S
+++ b/c/src/lib/libbsp/powerpc/shared/start/start.S
@@ -28,7 +28,6 @@
li r10,0x63 ; \
sc
-
.text
.globl __rtems_entry_point
.type __rtems_entry_point,@function
@@ -146,7 +145,6 @@ MMUoff:
.globl _return_to_ppcbug
.type _return_to_ppcbug,@function
-
_return_to_ppcbug:
mflr r30
bl MMUoff
@@ -198,5 +196,4 @@ flush_tlbs:
sync
blr
-
.comm environ,4,4
diff --git a/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c b/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c
index 82ade603ef..319a37b15b 100644
--- a/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c
@@ -149,7 +149,6 @@ void bsp_pretasking_hook(void)
bsp_libc_init((void *) 0, heap_size, heap_sbrk_spared);
-
#ifdef RTEMS_DEBUG
rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
#endif
@@ -319,7 +318,6 @@ void bsp_start( void )
printk("pci : Interrupt routing not available for this bsp\n");
}
-
#ifdef SHOW_MORE_INIT_SETTINGS
printk("Number of PCI buses found is : %d\n", BusCountPCI());
#endif
@@ -336,7 +334,6 @@ void bsp_start( void )
__asm__ __volatile ("sc");
#endif
-
BSP_mem_size = residualCopy.TotalMemory;
BSP_bus_frequency = residualCopy.VitalProductData.ProcessorBusHz;
BSP_processor_frequency = residualCopy.VitalProductData.ProcessorHz;
@@ -348,7 +345,6 @@ void bsp_start( void )
*/
_BSP_clear_hostbridge_errors(0 /* enableMCP */, 0/*quiet*/);
-
/* Allocate and set up the page table mappings
* This is only available on >604 CPUs.
*
@@ -401,7 +397,6 @@ void bsp_start( void )
*/
BSP_rtems_irq_mng_init(0);
-
/* Activate the page table mappings only after
* initializing interrupts because the irq_mng_init()
* routine needs to modify the text
diff --git a/c/src/lib/libbsp/powerpc/shared/startup/pgtbl_setup.c b/c/src/lib/libbsp/powerpc/shared/startup/pgtbl_setup.c
index 7f957bfc48..67cfe3ad9d 100644
--- a/c/src/lib/libbsp/powerpc/shared/startup/pgtbl_setup.c
+++ b/c/src/lib/libbsp/powerpc/shared/startup/pgtbl_setup.c
@@ -6,7 +6,6 @@
#include <rtems/bspIo.h>
#include <libcpu/pte121.h>
-
/* Default setup of the page tables. This is a weak
* alias, so applications may easily override this
* default setup.
@@ -24,7 +23,6 @@
Triv121PgTbl
BSP_pgtbl_setup(unsigned long) __attribute__ (( weak, alias("__BSP_default_pgtbl_setup") ));
-
Triv121PgTbl
__BSP_default_pgtbl_setup(unsigned int *pmemsize)
{
diff --git a/c/src/lib/libbsp/powerpc/shared/vectors/vectors.S b/c/src/lib/libbsp/powerpc/shared/vectors/vectors.S
index 55f990ec33..8d5c76521d 100644
--- a/c/src/lib/libbsp/powerpc/shared/vectors/vectors.S
+++ b/c/src/lib/libbsp/powerpc/shared/vectors/vectors.S
@@ -8,13 +8,10 @@
* $Id$
*/
-
-
#include <rtems/asm.h>
#include <rtems/score/cpu.h>
#include <bsp/vectors.h>
-
#define SYNC \
sync; \
isync
diff --git a/c/src/lib/libbsp/powerpc/shared/vectors/vectors.h b/c/src/lib/libbsp/powerpc/shared/vectors/vectors.h
index 976af3d7f4..4e5ce04d41 100644
--- a/c/src/lib/libbsp/powerpc/shared/vectors/vectors.h
+++ b/c/src/lib/libbsp/powerpc/shared/vectors/vectors.h
@@ -135,7 +135,6 @@ typedef struct {
unsigned EXC_DAR;
}BSP_Exception_frame;
-
typedef void (*exception_handler_t) (BSP_Exception_frame* excPtr);
extern exception_handler_t globalExceptHdl;
/*
diff --git a/c/src/lib/libbsp/powerpc/ss555/console/console.c b/c/src/lib/libbsp/powerpc/ss555/console/console.c
index fdfbf88a73..64d4503fee 100644
--- a/c/src/lib/libbsp/powerpc/ss555/console/console.c
+++ b/c/src/lib/libbsp/powerpc/ss555/console/console.c
@@ -84,7 +84,6 @@ static void _BSP_null_char( char c ) {return;}
BSP_output_char_function_type BSP_output_char = _BSP_null_char;
-
/*
* do_poll_read
*
@@ -126,7 +125,6 @@ static rtems_status_code do_poll_read(
return RTEMS_SUCCESSFUL;
}
-
/*
* do_poll_write
*
@@ -168,7 +166,6 @@ static rtems_status_code do_poll_write(
return RTEMS_SUCCESSFUL;
}
-
/*
* Print functions prototyped in bspIo.h
*/
@@ -187,7 +184,6 @@ static void _BSP_output_char( char c )
m5xx_uart_pollWrite( PRINTK_MINOR, &cr, 1 );
}
-
/*
***************
* BOILERPLATE *
@@ -237,7 +233,6 @@ rtems_device_driver console_initialize(
return RTEMS_SUCCESSFUL;
}
-
/*
* Open the device
*/
@@ -296,7 +291,6 @@ rtems_device_driver console_open(
return sc;
}
-
/*
* Close the device
*/
@@ -316,7 +310,6 @@ rtems_device_driver console_close(
#endif
}
-
/*
* Read from the device
*/
@@ -336,7 +329,6 @@ rtems_device_driver console_read(
#endif
}
-
/*
* Write to the device
*/
@@ -356,7 +348,6 @@ rtems_device_driver console_write(
#endif
}
-
/*
* Handle ioctl request.
*/
diff --git a/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c
index 626b510732..95df3b3e25 100644
--- a/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c
@@ -35,7 +35,6 @@
#include <bsp/irq.h>
#include <bsp.h>
-
SPR_RW(SPRG0)
SPR_RW(SPRG1)
@@ -117,7 +116,6 @@ void bsp_pretasking_hook(void)
#endif
}
-
/*
* bsp_start()
*
diff --git a/c/src/lib/libbsp/powerpc/ss555/startup/iss555.c b/c/src/lib/libbsp/powerpc/ss555/startup/iss555.c
index 133fad3b2d..66e851cc1b 100644
--- a/c/src/lib/libbsp/powerpc/ss555/startup/iss555.c
+++ b/c/src/lib/libbsp/powerpc/ss555/startup/iss555.c
@@ -26,7 +26,6 @@ SPR_RW(MI_GRA);
SPR_RW(L2U_GRA);
SPR_RW(BBCMCR);
-
/*
* Initialize SS555
*/
diff --git a/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.c b/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.c
index 660747d5b8..27f7282143 100644
--- a/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.c
+++ b/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.c
@@ -34,7 +34,6 @@
#include <rtems/score/thread.h>
#include <rtems/score/interr.h>
-
/* _CPU_Initialize
*
* This routine performs processor dependent initialization.
@@ -140,8 +139,6 @@ void _CPU_Context_Initialize(
#endif
}
-
-
/*PAGE
*
* _CPU_Install_interrupt_stack
diff --git a/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu_asm.S b/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu_asm.S
index 74845982b2..b121b1c0c8 100644
--- a/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu_asm.S
+++ b/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu_asm.S
@@ -253,7 +253,6 @@ PROC (_CPU_Context_restore_fp):
#endif
blr
-
/* _CPU_Context_switch
*
* This routine performs a normal non-FP context switch.
diff --git a/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c b/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c
index 11ddae9bf6..702506251c 100644
--- a/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c
+++ b/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c
@@ -302,7 +302,6 @@ void _CPU_Context_Initialize(
#endif
}
-
/* _CPU_ISR_install_vector
*
* This kernel routine installs the RTEMS handler for the
@@ -410,7 +409,6 @@ void _CPU_Fatal_error(uint32_t _error)
#define PPC_SYNCHRONOUS_TRAP ( _trap ) ((_trap)+PPC_SYNCHRONOUS_TRAP_BIT_MASK)
#define PPC_REAL_TRAP_NUMBER ( _trap ) ((_trap)%PPC_SYNCHRONOUS_TRAP_BIT_MASK)
-
const CPU_Trap_table_entry _CPU_Trap_slot_template = {
#if (PPC_ABI == PPC_ABI_POWEROPEN || PPC_ABI == PPC_ABI_GCC27)
@@ -444,7 +442,6 @@ uint32_t ppc_exception_vector_addr(
uint32_t vector
);
-
/*PAGE
*
* _CPU_ISR_install_raw_handler
diff --git a/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu_asm.S b/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu_asm.S
index cd35eb02af..7b578bafca 100644
--- a/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu_asm.S
+++ b/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu_asm.S
@@ -224,7 +224,6 @@ PROC (_CPU_Context_restore_fp):
#endif
blr
-
/* _CPU_Context_switch
*
* This routine performs a normal non-FP context switch.
diff --git a/c/src/lib/libbsp/powerpc/support/old_exception_processing/ppccache.c b/c/src/lib/libbsp/powerpc/support/old_exception_processing/ppccache.c
index 622adc58a3..d2b6be2e15 100644
--- a/c/src/lib/libbsp/powerpc/support/old_exception_processing/ppccache.c
+++ b/c/src/lib/libbsp/powerpc/support/old_exception_processing/ppccache.c
@@ -28,7 +28,6 @@
); \
} while (0)
-
void powerpc_instruction_cache_enable ()
{
uint32_t value;
diff --git a/c/src/lib/libbsp/sh/gensh1/include/bsp.h b/c/src/lib/libbsp/sh/gensh1/include/bsp.h
index 95c522ac0c..6e1d02d4f4 100644
--- a/c/src/lib/libbsp/sh/gensh1/include/bsp.h
+++ b/c/src/lib/libbsp/sh/gensh1/include/bsp.h
@@ -106,7 +106,6 @@ extern uint32_t WorkSpaceEnd ;
extern void *CPU_Interrupt_stack_low ;
extern void *CPU_Interrupt_stack_high ;
-
/* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration;
diff --git a/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c b/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
index feb935c998..4f9ca51fc2 100644
--- a/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
+++ b/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
@@ -120,7 +120,6 @@ void bsp_start(void)
(uint32_t) (&CPU_Interrupt_stack_low) ;
#endif
-
Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */
Cpu_table.postdriver_hook = bsp_postdriver_hook;
diff --git a/c/src/lib/libbsp/sh/gensh2/console/config.c b/c/src/lib/libbsp/sh/gensh2/console/config.c
index dfd1a46a80..b7e87b2555 100644
--- a/c/src/lib/libbsp/sh/gensh2/console/config.c
+++ b/c/src/lib/libbsp/sh/gensh2/console/config.c
@@ -24,7 +24,6 @@
#include <rtems/score/iosh7045.h>
#include <rtems/termiostypes.h>
-
/*
* Function set for interrupt enabled termios console
*/
@@ -72,7 +71,6 @@ static const struct termios term1 = {
{ 0 }
};
-
static const struct termios term2 = {
0,
0,
@@ -82,7 +80,6 @@ static const struct termios term2 = {
{ 0 }
};
-
console_tbl Console_Port_Tbl[] = {
{
"/dev/sci0", /* sDeviceName */
diff --git a/c/src/lib/libbsp/sh/gensh2/include/bsp.h b/c/src/lib/libbsp/sh/gensh2/include/bsp.h
index a52beb5a85..ce3671040a 100644
--- a/c/src/lib/libbsp/sh/gensh2/include/bsp.h
+++ b/c/src/lib/libbsp/sh/gensh2/include/bsp.h
@@ -110,7 +110,6 @@ extern "C" {
#define rtems_bsp_delay( microseconds ) CPU_delay(microseconds)
#define sh_delay( microseconds ) CPU_delay( microseconds )
-
/*
* Defined in the linker script 'linkcmds'
*/
@@ -123,7 +122,6 @@ extern uint32_t WorkSpaceEnd ;
extern void *CPU_Interrupt_stack_low ;
extern void *CPU_Interrupt_stack_high ;
-
/* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration;
diff --git a/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c b/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c
index 0b85e5081a..179b01c643 100644
--- a/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c
+++ b/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c
@@ -126,7 +126,6 @@ void bsp_start(void)
&CPU_Interrupt_stack_high - &CPU_Interrupt_stack_low ;
#endif
-
Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */
Cpu_table.postdriver_hook = bsp_postdriver_hook;
diff --git a/c/src/lib/libbsp/sh/gensh4/include/bsp.h b/c/src/lib/libbsp/sh/gensh4/include/bsp.h
index 26904aa82a..759107c05a 100644
--- a/c/src/lib/libbsp/sh/gensh4/include/bsp.h
+++ b/c/src/lib/libbsp/sh/gensh4/include/bsp.h
@@ -51,7 +51,6 @@ extern "C" {
#include "rtems/score/sh7750_regs.h"
-
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
@@ -121,7 +120,6 @@ extern "C" {
#define delay( microseconds ) CPU_delay(microseconds)
#define sh_delay( microseconds ) CPU_delay( microseconds )
-
/*
* Defined in the linker script 'linkcmds'
*/
@@ -147,7 +145,6 @@ extern rtems_configuration_table BSP_Configuration;
extern void bsp_cleanup( void );
-
/*
* Device Driver Table Entries
*/
diff --git a/c/src/lib/libbsp/sh/gensh4/start/start.S b/c/src/lib/libbsp/sh/gensh4/start/start.S
index 0aa7ec66d8..a70f0048a8 100644
--- a/c/src/lib/libbsp/sh/gensh4/start/start.S
+++ b/c/src/lib/libbsp/sh/gensh4/start/start.S
@@ -109,7 +109,6 @@ hw_init_end:
mov.l copy_end_k, r1
mov.l copy_start_in_rom_k, r2
-
! if copy_from == copy_to do not copy anything
cmp/eq r0, r2
bt real_address
@@ -171,7 +170,6 @@ zero_bss:
mov.l initial_fpscr_k,r0
lds r0,fpscr
-
! call the mainline
mov #0,r4 ! argc
mov.l main_k,r0
diff --git a/c/src/lib/libbsp/sh/gensh4/startup/bspstart.c b/c/src/lib/libbsp/sh/gensh4/startup/bspstart.c
index f0b9f04ff8..5eaa59989a 100644
--- a/c/src/lib/libbsp/sh/gensh4/startup/bspstart.c
+++ b/c/src/lib/libbsp/sh/gensh4/startup/bspstart.c
@@ -129,7 +129,6 @@ void bsp_start(void)
(uint32_t) (&CPU_Interrupt_stack_low) ;
#endif
-
Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */
Cpu_table.postdriver_hook = bsp_postdriver_hook;
diff --git a/c/src/lib/libbsp/sh/shared/console.c b/c/src/lib/libbsp/sh/shared/console.c
index b5796a578f..1bde1a8981 100644
--- a/c/src/lib/libbsp/sh/shared/console.c
+++ b/c/src/lib/libbsp/sh/shared/console.c
@@ -74,7 +74,6 @@ rtems_device_driver console_initialize(
return RTEMS_SUCCESSFUL;
}
-
/*
* Open entry point
*/
diff --git a/c/src/lib/libbsp/sh/shsim/clock/clockdrv.c b/c/src/lib/libbsp/sh/shsim/clock/clockdrv.c
index c49150fba6..f61b66e42d 100644
--- a/c/src/lib/libbsp/sh/shsim/clock/clockdrv.c
+++ b/c/src/lib/libbsp/sh/shsim/clock/clockdrv.c
@@ -14,7 +14,6 @@
#define Clock_driver_support_install_isr( _new, _old ) \
do { _old = 0; } while(0)
-
#define Clock_driver_support_initialize_hardware()
#define Clock_driver_support_shutdown_hardware()
diff --git a/c/src/lib/libbsp/sh/shsim/gdbsci/gdbsci.c b/c/src/lib/libbsp/sh/shsim/gdbsci/gdbsci.c
index db6b4b1fa2..1b4732a925 100644
--- a/c/src/lib/libbsp/sh/shsim/gdbsci/gdbsci.c
+++ b/c/src/lib/libbsp/sh/shsim/gdbsci/gdbsci.c
@@ -243,7 +243,6 @@ rtems_device_driver sh_gdbsci_initialize(
return RTEMS_SUCCESSFUL;
}
-
/*
* Open entry point
*/
diff --git a/c/src/lib/libbsp/sh/shsim/include/bsp.h b/c/src/lib/libbsp/sh/shsim/include/bsp.h
index 787800f7b6..c96e1de2fd 100644
--- a/c/src/lib/libbsp/sh/shsim/include/bsp.h
+++ b/c/src/lib/libbsp/sh/shsim/include/bsp.h
@@ -97,7 +97,6 @@ extern uint32_t WorkSpaceEnd ;
extern void *CPU_Interrupt_stack_low ;
extern void *CPU_Interrupt_stack_high ;
-
/* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration;
diff --git a/c/src/lib/libbsp/sh/shsim/startup/bspstart.c b/c/src/lib/libbsp/sh/shsim/startup/bspstart.c
index 83027db6f3..8c7b2f5ebf 100644
--- a/c/src/lib/libbsp/sh/shsim/startup/bspstart.c
+++ b/c/src/lib/libbsp/sh/shsim/startup/bspstart.c
@@ -117,7 +117,6 @@ void bsp_start( void )
(uint32_t) (&CPU_Interrupt_stack_low) ;
#endif
-
Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */
Cpu_table.postdriver_hook = bsp_postdriver_hook;
diff --git a/c/src/lib/libbsp/sh/shsim/trap34/console-io.c b/c/src/lib/libbsp/sh/shsim/trap34/console-io.c
index b8088886bd..a88c273be4 100644
--- a/c/src/lib/libbsp/sh/shsim/trap34/console-io.c
+++ b/c/src/lib/libbsp/sh/shsim/trap34/console-io.c
@@ -19,7 +19,6 @@
#include <stdlib.h>
#include <assert.h>
-
#define SYS_exit 1
#define SYS_read 3
#define SYS_write 4
diff --git a/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c b/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c
index c434f6892e..1d4b23e661 100644
--- a/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c
+++ b/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c
@@ -25,7 +25,6 @@
*/
volatile uint32_t Clock_driver_ticks;
-
/*
* These are set by clock driver during its init
*/
@@ -63,7 +62,6 @@ Clock_isr (rtems_vector_number vector)
rtems_clock_tick();
}
-
/* Clock_exit --
* This shuts down the timer if it was enabled and removes it
* from the interrupt mask.
@@ -84,7 +82,6 @@ Clock_exit(void)
}
}
-
/* Install_clock --
* This initialises timer1 with the BSP timeslice config value
* as a reference and sets up the interrupt handler for clock ticks.
@@ -117,7 +114,6 @@ Install_clock(rtems_isr_entry clock_isr)
}
}
-
/* Clock_initialize --
* This is called to setup the clock driver. It calls the hardware
* setup function and make the driver major/minor values available
@@ -145,7 +141,6 @@ Clock_initialize(rtems_device_major_number major,
return RTEMS_SUCCESSFUL;
}
-
/* Clock_control --
* I/O control (IOCTL) function for Clock driver. At this moment this
* just runs the interrupt handler or re-registers the interrupt handler
diff --git a/c/src/lib/libbsp/sh/simsh4/console/console.c b/c/src/lib/libbsp/sh/simsh4/console/console.c
index f6d12c20d2..c0af42111b 100644
--- a/c/src/lib/libbsp/sh/simsh4/console/console.c
+++ b/c/src/lib/libbsp/sh/simsh4/console/console.c
@@ -20,7 +20,6 @@
#include <rtems/libio.h>
#include <syscall.h>
-
/* Console operations mode:
* 0 - raw (non-termios) polled input/output
* 1 - termios-based polled input/output
@@ -32,7 +31,6 @@
int console_mode = CONSOLE_MODE_RAW;
-
/* console_poll_read --
* poll read operation for simulator console through trap 34 mechanism.
*
diff --git a/c/src/lib/libbsp/sh/simsh4/include/bsp.h b/c/src/lib/libbsp/sh/simsh4/include/bsp.h
index 4b9205b4b5..e978e624c8 100644
--- a/c/src/lib/libbsp/sh/simsh4/include/bsp.h
+++ b/c/src/lib/libbsp/sh/simsh4/include/bsp.h
@@ -103,7 +103,6 @@ extern "C" {
#define delay( microseconds ) CPU_delay(microseconds)
#define sh_delay( microseconds ) CPU_delay( microseconds )
-
/*
* Defined in the linker script 'linkcmds'
*/
@@ -116,7 +115,6 @@ extern uint32_t WorkSpaceEnd ;
extern void *CPU_Interrupt_stack_low ;
extern void *CPU_Interrupt_stack_high ;
-
/* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration;
@@ -138,7 +136,6 @@ extern void bsp_cleanup( void );
{ ramdisk_initialize, ramdisk_open, ramdisk_close, \
ramdisk_read, ramdisk_write, ramdisk_control }
-
/*
* NOTE: Use the standard Clock driver entry
*/
diff --git a/c/src/lib/libbsp/sh/simsh4/include/ramdisk.h b/c/src/lib/libbsp/sh/simsh4/include/ramdisk.h
index 82e0dc51e1..f77a3f6eeb 100644
--- a/c/src/lib/libbsp/sh/simsh4/include/ramdisk.h
+++ b/c/src/lib/libbsp/sh/simsh4/include/ramdisk.h
@@ -22,7 +22,6 @@
extern "C" {
#endif
-
rtems_device_driver ramdisk_initialize(rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg);
diff --git a/c/src/lib/libbsp/sh/simsh4/include/syscall.h b/c/src/lib/libbsp/sh/simsh4/include/syscall.h
index f141df764c..79fcc07a20 100644
--- a/c/src/lib/libbsp/sh/simsh4/include/syscall.h
+++ b/c/src/lib/libbsp/sh/simsh4/include/syscall.h
@@ -20,7 +20,6 @@
#define SYS_fstat 22
#define SYS_time 23
-
#define SYS_ARG 24
#define SYS_stat 38
diff --git a/c/src/lib/libbsp/sh/simsh4/start/start.S b/c/src/lib/libbsp/sh/simsh4/start/start.S
index 0466ded3e5..3b7cce61f6 100644
--- a/c/src/lib/libbsp/sh/simsh4/start/start.S
+++ b/c/src/lib/libbsp/sh/simsh4/start/start.S
@@ -54,7 +54,6 @@ SYM (start):
mov.l _vbr_base_k,r0
ldc r0,vbr
-
#ifdef START_HW_INIT /* from $RTEMS_BSP.cfg */
! Initialize minimal hardware
mov.l hw_init_k, r0
@@ -112,7 +111,6 @@ ___trap34:
!perrno:
! .long _errno
-
END_CODE
.align 2
diff --git a/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c b/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c
index f0b9f04ff8..5eaa59989a 100644
--- a/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c
+++ b/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c
@@ -129,7 +129,6 @@ void bsp_start(void)
(uint32_t) (&CPU_Interrupt_stack_low) ;
#endif
-
Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */
Cpu_table.postdriver_hook = bsp_postdriver_hook;
diff --git a/c/src/lib/libbsp/sh/simsh4/timer/timer.c b/c/src/lib/libbsp/sh/simsh4/timer/timer.c
index 236f4fd226..5b47dc7d47 100644
--- a/c/src/lib/libbsp/sh/simsh4/timer/timer.c
+++ b/c/src/lib/libbsp/sh/simsh4/timer/timer.c
@@ -27,7 +27,6 @@ rtems_boolean Timer_driver_Find_average_overhead;
/* External assembler interrupt handler routine */
extern rtems_isr timerisr(rtems_vector_number vector);
-
/* Timer_initialize --
* Initialize timer 2 for accurate time measurement.
*
@@ -75,7 +74,6 @@ Read_timer( void )
return 0;
}
-
/* Empty_function --
* Empty function call used in loops to measure basic cost of looping
* in Timing Test Suite.
diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c
index dfecda6643..ca9d45693e 100644
--- a/c/src/lib/libbsp/shared/bootcard.c
+++ b/c/src/lib/libbsp/shared/bootcard.c
@@ -69,7 +69,6 @@ int boot_card(int argc, char **argv, char **envp)
if ( envp )
envp_p = envp;
-
/*
* Set default values for the CPU Table fields all ports must have.
* These values can be overridden in bsp_start() but they are
@@ -86,7 +85,6 @@ int boot_card(int argc, char **argv, char **envp)
Cpu_table.stack_allocate_hook = NULL;
Cpu_table.stack_free_hook = NULL;
-
/*
* Copy the configuration table so we and the BSP wants to change it.
*/
diff --git a/c/src/lib/libbsp/shared/clock_driver_stub.c b/c/src/lib/libbsp/shared/clock_driver_stub.c
index 1b7a77ac70..55e4c6b164 100644
--- a/c/src/lib/libbsp/shared/clock_driver_stub.c
+++ b/c/src/lib/libbsp/shared/clock_driver_stub.c
@@ -14,7 +14,6 @@
#define Clock_driver_support_install_isr( _new, _old ) \
do { _old = 0; } while(0)
-
#define Clock_driver_support_initialize_hardware()
#define Clock_driver_support_shutdown_hardware()
diff --git a/c/src/lib/libbsp/shared/console-polled.c b/c/src/lib/libbsp/shared/console-polled.c
index e95863c51e..3cb2b36652 100644
--- a/c/src/lib/libbsp/shared/console-polled.c
+++ b/c/src/lib/libbsp/shared/console-polled.c
@@ -102,7 +102,6 @@ rtems_device_driver console_open(
0 /* outputUsesInterrupts */
};
-
assert( minor <= 1 );
if ( minor > 2 )
return RTEMS_INVALID_NUMBER;
diff --git a/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c b/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c
index bbb038dfa1..cabf5598fa 100644
--- a/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c
+++ b/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c
@@ -39,7 +39,6 @@
extern const char gdb_hexchars[];
-
/*
* Prototypes for CPU dependent routines that are conditional
* at the bottom of this file.
@@ -50,12 +49,6 @@ void rtems_gdb_stub_get_registers_from_context(
Thread_Control *th
);
-
-
-
-
-
-
/* Check whether it is OK to enable thread support */
int rtems_gdb_stub_thread_support_ok(void)
{
@@ -65,10 +58,6 @@ int rtems_gdb_stub_thread_support_ok(void)
return 0;
}
-
-
-
-
/*
* rtems_gdb_stub_id_to_index
*
@@ -111,8 +100,6 @@ int rtems_gdb_stub_id_to_index(
return first_posix_id + (thread_obj_id - min_id);
}
-
-
/* Return the RTEMS thread id from a gdb thread id */
Thread_Control *rtems_gdb_index_to_stub_id(
int thread
@@ -175,20 +162,12 @@ Thread_Control *rtems_gdb_index_to_stub_id(
return th;
}
-
-
-
-
-
/* Get id of the thread stopped by exception */
int rtems_gdb_stub_get_current_thread(void)
{
return rtems_gdb_stub_id_to_index( _Thread_Executing->Object.id );
}
-
-
-
/* Get id of the next thread after athread, if argument <= 0 find the
first available thread, return thread if found or 0 if not */
int rtems_gdb_stub_get_next_thread(int athread)
@@ -257,11 +236,6 @@ int rtems_gdb_stub_get_next_thread(int athread)
return 0;
}
-
-
-
-
-
/* Get thread registers, return 0 if thread does not
exist, and 1 otherwise */
int rtems_gdb_stub_get_thread_regs(
@@ -281,11 +255,6 @@ int rtems_gdb_stub_get_thread_regs(
return 0;
}
-
-
-
-
-
/* Set thread registers, return 0 if thread does not
exist or register values will screw up the threads,
and 1 otherwise */
@@ -302,11 +271,6 @@ int rtems_gdb_stub_set_thread_regs(
return 1;
}
-
-
-
-
-
/* Get thread information, return 0 if thread does not
exist and 1 otherwise */
int rtems_gdb_stub_get_thread_info(
@@ -432,11 +396,6 @@ int rtems_gdb_stub_get_thread_info(
/*******************************************************/
-
-
-
-
-
/* Format: x<type-1x>,<address-x>,<length-x>, where x is 'z' or 'Z' */
int parse_zbreak(const char *in, int *type, unsigned char **addr, int *len)
{
@@ -670,17 +629,6 @@ pack_qm_header(char *out, int count, int done, int athread)
return;
}
-
-
-
-
-
-
-
-
-
-
-
void rtems_gdb_process_query(
char *inbuffer,
char *outbuffer,
@@ -705,9 +653,6 @@ void rtems_gdb_process_query(
*optr = 0;
break;
-
-
-
case 'P':
/* Thread info query */
if (!do_threads) {
@@ -737,10 +682,6 @@ void rtems_gdb_process_query(
}
break;
-
-
-
-
case 'L':
/* Thread list query */
if (!do_threads) {
@@ -797,11 +738,6 @@ void rtems_gdb_process_query(
}
break;
-
-
-
-
-
default:
if (memcmp(inbuffer, "qOffsets", 8) == 0) {
unsigned char *t, *d, *b;
@@ -849,11 +785,6 @@ void rtems_gdb_process_query(
}
}
-
-
-
-
-
/* Present thread in the variable length string format */
char*
thread2vhstr(char *buf, int thread)
@@ -957,7 +888,6 @@ vhstr2thread(const char *buf, int *thread)
ASSERT(buf != NULL);
ASSERT(thread != NULL);
-
/* If we have leading zeros, skip them */
found_zero = 0;
@@ -1004,7 +934,6 @@ vhstr2thread(const char *buf, int *thread)
return buf;
}
-
/* Present integer in the variable length string format */
char*
int2vhstr(char *buf, int val)
@@ -1095,7 +1024,6 @@ vhstr2int(const char *buf, int *ival)
ASSERT(buf != NULL);
ASSERT(ival != NULL);
-
/* If we have leading zeros, skip them */
found_zero = 0;
@@ -1194,8 +1122,6 @@ static volatile char mem_err = 0;
void set_mem_err(void);
static void (*volatile mem_fault_routine) (void) = NULL;
-
-
/* convert count bytes of the memory pointed to by mem into hex string,
placing result in buf, return pointer to next location in hex strng
in case of success or NULL otherwise */
@@ -1270,7 +1196,6 @@ set_mem_err (void)
mem_err = 1;
}
-
/* These are separate functions so that they are so short and sweet
that the compiler won't save any registers (if there is a fault
to mem_fault, they won't get restored, so there better not be any
@@ -1288,14 +1213,6 @@ set_byte (unsigned char *addr, int val)
*addr = val;
}
-
-
-
-
-
-
-
-
/*
* From here down, the code is CPU model specific and generally maps
* the RTEMS thread context format to gdb's.
@@ -1359,13 +1276,8 @@ int rtems_gdb_stub_get_offsets(
return 1;
}
-
-
-
-
#elif defined(__mips__)
-
void rtems_gdb_stub_get_registers_from_context(
int *registers,
Thread_Control *th
@@ -1387,7 +1299,6 @@ void rtems_gdb_stub_get_registers_from_context(
registers[PC] = (unsigned)th->Registers.c0_epc;
}
-
int rtems_gdb_stub_get_offsets(
unsigned char **text_addr,
unsigned char **data_addr,
@@ -1411,7 +1322,6 @@ int rtems_gdb_stub_get_offsets(
#elif defined(__mc68000__)
-
void rtems_gdb_stub_get_registers_from_context(
int *registers,
Thread_Control *th
@@ -1448,7 +1358,6 @@ void rtems_gdb_stub_get_registers_from_context(
#endif
}
-
int rtems_gdb_stub_get_offsets(
unsigned char **text_addr,
unsigned char **data_addr,
diff --git a/c/src/lib/libbsp/shared/tod.c b/c/src/lib/libbsp/shared/tod.c
index 0f90f11915..3eac5c1e10 100644
--- a/c/src/lib/libbsp/shared/tod.c
+++ b/c/src/lib/libbsp/shared/tod.c
@@ -101,7 +101,6 @@ rtems_device_driver rtc_initialize(
return RTEMS_SUCCESSFUL;
}
-
/*PAGE
*
* This routine copies the time from the real time clock to RTEMS
@@ -203,7 +202,6 @@ int setRealTime(
return 0;
}
-
/*PAGE
*
* checkRealTime
diff --git a/c/src/lib/libbsp/shared/tod.h b/c/src/lib/libbsp/shared/tod.h
index 8e3f115d90..3f5f9069da 100644
--- a/c/src/lib/libbsp/shared/tod.h
+++ b/c/src/lib/libbsp/shared/tod.h
@@ -13,7 +13,6 @@
* $Id$
*/
-
#ifndef TOD_H
#define TOD_H
diff --git a/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c b/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c
index 47c9d3d1d0..2006474e08 100644
--- a/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c
+++ b/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c
@@ -71,7 +71,6 @@
typedef unsigned int pci_ulong;
#define PCI_TO_LOCAL_ADDR(memaddr) ((pci_ulong)(memaddr) + PCI_MEM_BASE)
-
#elif defined(__vxworks)
typedef unsigned long pci_ulong;
#define PCI_TO_LOCAL_ADDR(memaddr) (memaddr)
@@ -176,7 +175,6 @@ return READ_LE0((volatile LERegister *)(((unsigned long)adrs)+off));
#define PORT_UNALIGNED(addr,port) \
( (port)%4 ? ((addr) & 0xffff) : ((addr) & 4095) )
-
#define UNIV_REV(base) (READ_LE(base,2*sizeof(LERegister)) & 0xff)
#if defined(__rtems__) && 0
@@ -198,7 +196,6 @@ char buf[200];
}
#endif
-
/* private printing wrapper */
static void
uprintf(FILE *f, char *fmt, ...)
@@ -468,7 +465,6 @@ unsigned long mode=0;
#undef base
}
-
static int
showUniversePort(
int ismaster,
@@ -600,7 +596,6 @@ unsigned long cntrl, start, bound, offst, mask, x;
return 0;
}
-
static int
mapOverAll(int ismaster, int (*func)(int,int,volatile LERegister *,void*), void *arg)
{
@@ -697,7 +692,6 @@ vmeUniverseReset(void)
/* disable VME bus image of VME CSR */
vmeUniverseWriteReg(0, UNIV_REGOFF_VCSR_CTL);
-
/* I had problems with a Joerger vtr10012_8 card who would
* only be accessible after tweaking the U2SPEC register
* (the t27 parameter helped).
@@ -1043,7 +1037,6 @@ unsigned long lvl,msk,lintstat,linten,status;
UNIV_REGOFF_VINT_STAT);
*/
-
/* re-enable the previous level */
vmeUniverseWriteReg(linten, UNIV_REGOFF_LINT_EN);
}
@@ -1123,7 +1116,6 @@ rtems_irq_connect_data aarrggh;
return 0;
}
-
int
vmeUniverseInstallISR(unsigned long vector, VmeUniverseISR hdl, void *arg)
{
@@ -1185,5 +1177,4 @@ vmeUniverseIntDisable(unsigned int level)
return 0;
}
-
#endif
diff --git a/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.h b/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.h
index 06ecffedf9..fc996dee04 100644
--- a/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.h
+++ b/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.h
@@ -203,7 +203,6 @@ typedef struct VmeUniverseDMAPacketRec_ {
#define UNIV_REGOFF_D_LLUE 0x224
# define UNIV_D_LLUE_UPDATE (1<<31)
-
/* PCI (local) interrupt enable register */
#define UNIV_REGOFF_LINT_EN 0x300
# define UNIV_LINT_EN_LM3 (1<<23) /* location monitor 3 mask */
@@ -434,7 +433,6 @@ extern "C" {
extern volatile LERegister *vmeUniverse0BaseAddr;
extern int vmeUniverse0PciIrqLine;
-
/* Initialize the driver */
int
vmeUniverseInit(void);
@@ -636,7 +634,6 @@ vmeUniverseIntEnable(unsigned int level);
int
vmeUniverseIntDisable(unsigned int level);
-
/* use these special vectors to connect a handler to the
* universe specific interrupts (such as "DMA done",
* VOWN, error irqs etc.)
diff --git a/c/src/lib/libbsp/sparc/erc32/include/bsp.h b/c/src/lib/libbsp/sparc/erc32/include/bsp.h
index 1e936df29b..ee207fe9d4 100644
--- a/c/src/lib/libbsp/sparc/erc32/include/bsp.h
+++ b/c/src/lib/libbsp/sparc/erc32/include/bsp.h
@@ -165,7 +165,6 @@ extern int end; /* last address in the program */
* NOTE: Use the standard Clock driver entry
*/
-
/* miscellaneous stuff assumed to exist */
void bsp_cleanup( void );
diff --git a/c/src/lib/libbsp/sparc/erc32/include/erc32.h b/c/src/lib/libbsp/sparc/erc32/include/erc32.h
index 959b4ba527..532b1b1466 100644
--- a/c/src/lib/libbsp/sparc/erc32/include/erc32.h
+++ b/c/src/lib/libbsp/sparc/erc32/include/erc32.h
@@ -225,7 +225,6 @@ typedef struct {
#define ERC32_CONFIGURATION_ACCESS_PROTECTION_ENABLED 0x00000008
#define ERC32_CONFIGURATION_ACCESS_PROTECTION_DISABLED 0x00000000
-
/*
* The following defines the bits in the Memory Configuration Register.
*/
@@ -508,7 +507,6 @@ extern uint32_t _ERC32_MEC_Timer_Control_Mirror;
(_value) = (_ERC32_MEC_Timer_Control_Mirror >> 8) & 0xf; \
} while ( 0 )
-
#endif /* !ASM */
#ifdef __cplusplus
diff --git a/c/src/lib/libbsp/sparc/erc32/startup/boardinit.S b/c/src/lib/libbsp/sparc/erc32/startup/boardinit.S
index acdda46cc2..eb140ad05e 100644
--- a/c/src/lib/libbsp/sparc/erc32/startup/boardinit.S
+++ b/c/src/lib/libbsp/sparc/erc32/startup/boardinit.S
@@ -12,7 +12,6 @@
.global __bsp_board_init
__bsp_board_init:
-
/* Check if MEC is initialised. If not, this means that we are
running on the simulator. Initiate some of the parameters
that are done by the boot-prom otherwise.
diff --git a/c/src/lib/libbsp/sparc/erc32/timer/timer.c b/c/src/lib/libbsp/sparc/erc32/timer/timer.c
index 5903dc484d..f40be89f3b 100644
--- a/c/src/lib/libbsp/sparc/erc32/timer/timer.c
+++ b/c/src/lib/libbsp/sparc/erc32/timer/timer.c
@@ -20,7 +20,6 @@
* $Id$
*/
-
#include <bsp.h>
rtems_boolean Timer_driver_Find_average_overhead;
diff --git a/c/src/lib/libbsp/sparc/leon/console/console.c b/c/src/lib/libbsp/sparc/leon/console/console.c
index 9723c7b281..c313542317 100644
--- a/c/src/lib/libbsp/sparc/leon/console/console.c
+++ b/c/src/lib/libbsp/sparc/leon/console/console.c
@@ -204,7 +204,6 @@ void console_exit()
LEON_REG.UART_Status_1 = 0;
LEON_REG.UART_Status_2 = 0;
-
}
#define CONSOLE_UART_1_TRAP LEON_TRAP_TYPE( LEON_INTERRUPT_UART_1_RX_TX )
diff --git a/c/src/lib/libbsp/sparc/leon/include/bsp.h b/c/src/lib/libbsp/sparc/leon/include/bsp.h
index 758768e059..8dc392487f 100644
--- a/c/src/lib/libbsp/sparc/leon/include/bsp.h
+++ b/c/src/lib/libbsp/sparc/leon/include/bsp.h
@@ -53,7 +53,6 @@ extern int rtems_leon_open_eth_driver_attach (struct rtems_bsdnet_ifconfig *conf
#define RTEMS_BSP_NETWORK_DRIVER_NAME "open_eth1"
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_leon_open_eth_driver_attach
-
/*
* Define the time limits for RTEMS Test Suite test durations.
* Long test and short test duration limits are provided. These
@@ -165,7 +164,6 @@ extern int end; /* last address in the program */
* NOTE: Use the standard Clock driver entry
*/
-
/* miscellaneous stuff assumed to exist */
void bsp_cleanup( void );
diff --git a/c/src/lib/libbsp/sparc/leon/include/leon.h b/c/src/lib/libbsp/sparc/leon/include/leon.h
index ac9822e3fa..dff0dc8356 100644
--- a/c/src/lib/libbsp/sparc/leon/include/leon.h
+++ b/c/src/lib/libbsp/sparc/leon/include/leon.h
@@ -213,7 +213,6 @@ typedef struct {
#define LEON_MEMORY_CONFIGURATION_RAM_SIZE_MASK 0x00001E00
-
/*
* The following defines the bits in the Timer Control Register.
*/
@@ -245,7 +244,6 @@ typedef struct {
#define LEON_REG_UART_STATUS_FE 0x00000040 /* RX Framing Error */
#define LEON_REG_UART_STATUS_ERR 0x00000078 /* Error Mask */
-
/*
* The following defines the bits in the LEON UART Status Registers.
*/
diff --git a/c/src/lib/libbsp/sparc/leon/leon_open_eth/leon_open_eth.c b/c/src/lib/libbsp/sparc/leon/leon_open_eth/leon_open_eth.c
index 966abbfd05..cece0053a8 100644
--- a/c/src/lib/libbsp/sparc/leon/leon_open_eth/leon_open_eth.c
+++ b/c/src/lib/libbsp/sparc/leon/leon_open_eth/leon_open_eth.c
@@ -3,7 +3,6 @@
*
*/
-
#include <bsp.h>
#include <libchip/open_eth.h>
#if (OPEN_ETH_DEBUG & OPEN_ETH_DEBUG_PRINT_REGISTERS)
diff --git a/c/src/lib/libbsp/sparc/leon/startup/boardinit.S b/c/src/lib/libbsp/sparc/leon/startup/boardinit.S
index 652346b9f6..2c6f6b8ce0 100644
--- a/c/src/lib/libbsp/sparc/leon/startup/boardinit.S
+++ b/c/src/lib/libbsp/sparc/leon/startup/boardinit.S
@@ -24,7 +24,6 @@ __bsp_board_init:
bne 2f
nop
-
flush
set 0x1000f, %l1
st %l1, [%l0 + LEON_REG_CACHECTRL_OFFSET] ! enable caches
diff --git a/c/src/lib/libbsp/sparc/leon/timer/timer.c b/c/src/lib/libbsp/sparc/leon/timer/timer.c
index 22cbe0446a..9a8324b3ed 100644
--- a/c/src/lib/libbsp/sparc/leon/timer/timer.c
+++ b/c/src/lib/libbsp/sparc/leon/timer/timer.c
@@ -19,7 +19,6 @@
* $Id$
*/
-
#include <bsp.h>
rtems_boolean Timer_driver_Find_average_overhead;
diff --git a/c/src/lib/libbsp/sparc/shared/bspclean.c b/c/src/lib/libbsp/sparc/shared/bspclean.c
index c88025e8f6..d07328266b 100644
--- a/c/src/lib/libbsp/sparc/shared/bspclean.c
+++ b/c/src/lib/libbsp/sparc/shared/bspclean.c
@@ -32,6 +32,5 @@ void bsp_cleanup( void )
* set %g1 to 1 to detect clean exit.
*/
-
asm volatile( "mov 1, %g1; ta 0" );
}
diff --git a/c/src/lib/libbsp/sparc/shared/bspstart.c b/c/src/lib/libbsp/sparc/shared/bspstart.c
index 2509c3fa50..18668976df 100644
--- a/c/src/lib/libbsp/sparc/shared/bspstart.c
+++ b/c/src/lib/libbsp/sparc/shared/bspstart.c
@@ -125,7 +125,6 @@ void bsp_pretasking_hook(void)
bsp_libc_init((void *) heap_start, heap_size, 0);
-
#if SIMSPARC_FAST_IDLE
/*
* Install the fast idle task switch extension
diff --git a/c/src/lib/libbsp/sparc/shared/start.S b/c/src/lib/libbsp/sparc/shared/start.S
index 90c0fb8702..61f3406c3f 100644
--- a/c/src/lib/libbsp/sparc/shared/start.S
+++ b/c/src/lib/libbsp/sparc/shared/start.S
@@ -28,7 +28,6 @@
#define SOFT_TRAP BAD_TRAP
-
.seg "text"
PUBLIC(start)
.global start, __bsp_mem_init
@@ -45,7 +44,6 @@ start:
* before RTEMS installs its own trap table.
*/
-
PUBLIC(trap_table)
SYM(trap_table):
@@ -88,7 +86,6 @@ SYM(trap_table):
BAD_TRAP; ! 1E external 5
BAD_TRAP; ! 1F watchdog timeout
-
BAD_TRAP; BAD_TRAP; BAD_TRAP; BAD_TRAP; ! 20 - 23 undefined
BAD_TRAP; ! 24 cp_disabled
BAD_TRAP; BAD_TRAP; BAD_TRAP; ! 25 - 27 undefined
@@ -219,7 +216,6 @@ SYM(hard_reset):
call __bsp_board_init
nop
-
set (SYM(rdb_start)), %g6 ! End of work-space area
st %sp, [%g6]
set (SYM(Configuration)), %l1
@@ -238,7 +234,6 @@ SYM(hard_reset):
* LENGTH: (__bss_start - _data_start) bytes
*/
-
sethi %hi(_endtext),%g2
or %g2,%lo(_endtext),%g2 ! g2 = start of initialized data in ROM
diff --git a/c/src/lib/libbsp/unix/posix/console/console.c b/c/src/lib/libbsp/unix/posix/console/console.c
index 92a3b90e63..2f1eb0260e 100644
--- a/c/src/lib/libbsp/unix/posix/console/console.c
+++ b/c/src/lib/libbsp/unix/posix/console/console.c
@@ -28,7 +28,6 @@ console_initialize(rtems_device_major_number major,
return 0;
}
-
/*
* Open entry point
*/
diff --git a/c/src/lib/libbsp/unix/posix/startup/bspstart.c b/c/src/lib/libbsp/unix/posix/startup/bspstart.c
index 9c573aff80..bcfc685232 100644
--- a/c/src/lib/libbsp/unix/posix/startup/bspstart.c
+++ b/c/src/lib/libbsp/unix/posix/startup/bspstart.c
@@ -88,7 +88,6 @@ void bsp_pretasking_hook(void)
bsp_libc_init((void *)heap_start, Heap_size, 1024 * 1024);
-
#ifdef RTEMS_DEBUG
rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
#endif
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c b/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
index 660747d5b8..27f7282143 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
@@ -34,7 +34,6 @@
#include <rtems/score/thread.h>
#include <rtems/score/interr.h>
-
/* _CPU_Initialize
*
* This routine performs processor dependent initialization.
@@ -140,8 +139,6 @@ void _CPU_Context_Initialize(
#endif
}
-
-
/*PAGE
*
* _CPU_Install_interrupt_stack
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S b/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S
index 74845982b2..b121b1c0c8 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S
@@ -253,7 +253,6 @@ PROC (_CPU_Context_restore_fp):
#endif
blr
-
/* _CPU_Context_switch
*
* This routine performs a normal non-FP context switch.
diff --git a/c/src/lib/libcpu/powerpc/old-exceptions/cpu.c b/c/src/lib/libcpu/powerpc/old-exceptions/cpu.c
index 11ddae9bf6..702506251c 100644
--- a/c/src/lib/libcpu/powerpc/old-exceptions/cpu.c
+++ b/c/src/lib/libcpu/powerpc/old-exceptions/cpu.c
@@ -302,7 +302,6 @@ void _CPU_Context_Initialize(
#endif
}
-
/* _CPU_ISR_install_vector
*
* This kernel routine installs the RTEMS handler for the
@@ -410,7 +409,6 @@ void _CPU_Fatal_error(uint32_t _error)
#define PPC_SYNCHRONOUS_TRAP ( _trap ) ((_trap)+PPC_SYNCHRONOUS_TRAP_BIT_MASK)
#define PPC_REAL_TRAP_NUMBER ( _trap ) ((_trap)%PPC_SYNCHRONOUS_TRAP_BIT_MASK)
-
const CPU_Trap_table_entry _CPU_Trap_slot_template = {
#if (PPC_ABI == PPC_ABI_POWEROPEN || PPC_ABI == PPC_ABI_GCC27)
@@ -444,7 +442,6 @@ uint32_t ppc_exception_vector_addr(
uint32_t vector
);
-
/*PAGE
*
* _CPU_ISR_install_raw_handler
diff --git a/c/src/lib/libcpu/powerpc/old-exceptions/cpu_asm.S b/c/src/lib/libcpu/powerpc/old-exceptions/cpu_asm.S
index cd35eb02af..7b578bafca 100644
--- a/c/src/lib/libcpu/powerpc/old-exceptions/cpu_asm.S
+++ b/c/src/lib/libcpu/powerpc/old-exceptions/cpu_asm.S
@@ -224,7 +224,6 @@ PROC (_CPU_Context_restore_fp):
#endif
blr
-
/* _CPU_Context_switch
*
* This routine performs a normal non-FP context switch.
diff --git a/c/src/lib/libcpu/powerpc/old-exceptions/ppccache.c b/c/src/lib/libcpu/powerpc/old-exceptions/ppccache.c
index 622adc58a3..d2b6be2e15 100644
--- a/c/src/lib/libcpu/powerpc/old-exceptions/ppccache.c
+++ b/c/src/lib/libcpu/powerpc/old-exceptions/ppccache.c
@@ -28,7 +28,6 @@
); \
} while (0)
-
void powerpc_instruction_cache_enable ()
{
uint32_t value;