diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-20 10:35:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-20 13:52:14 +0200 |
commit | 99648958668d3a33ee57974479b36201fe303f34 (patch) | |
tree | 6f27ea790e2823c6156e71219a4f54680263fac6 /c/src/lib/libbsp/powerpc/qemuppc/startup/cmain.c | |
parent | bsps: Move start files to bsps (diff) | |
download | rtems-99648958668d3a33ee57974479b36201fe303f34.tar.bz2 |
bsps: Move startup files to bsps
Adjust build support files to new directory layout.
This patch is a part of the BSP source reorganization.
Update #3285.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/qemuppc/startup/cmain.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/qemuppc/startup/cmain.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/c/src/lib/libbsp/powerpc/qemuppc/startup/cmain.c b/c/src/lib/libbsp/powerpc/qemuppc/startup/cmain.c deleted file mode 100644 index bf46d03177..0000000000 --- a/c/src/lib/libbsp/powerpc/qemuppc/startup/cmain.c +++ /dev/null @@ -1,55 +0,0 @@ -#include <bsp/bootcard.h> -#include <bsp/linker-symbols.h> - -static void -__outb(int port, unsigned char v) -{ - *((volatile unsigned char *)(0x80000000 + port)) = v; -} - -#if 0 -/* currently unused but keep just in case */ - -static unsigned char -__inb(int port) -{ - return *((volatile unsigned char *)(0x80000000 + port)); -} -#endif - -static void -__memcpy (unsigned char *d, unsigned char *s, int len) -{ - while (len--) - *d++ = *s++; -} - -static void -__bzero (unsigned char *d, int len) -{ - while (len--) - *d++ = 0; -} - - -/* - * Prototype this here because it is just the entry symbol and - * not referenced from any compileable code. - */ -void cmain (void); - -void cmain (void) -{ - /* - * init variable sections - */ - __memcpy (bsp_section_data_begin, bsp_section_data_load_begin, (int)bsp_section_data_size); - __bzero (bsp_section_bss_begin, (int)bsp_section_bss_size); - __bzero (bsp_section_sbss_begin, (int)bsp_section_sbss_size); - /* printk( "start of BSP\n"); */ - boot_card(0); - /* printk( "end of BSP\n"); */ - __outb (0x92, 0x01); - while (1) - ; -} |