Remove user_initialize(); Make sure all integer types are signed that need to be
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3474 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
92b691c853
commit
0b6e9f33f5
|
@ -85,19 +85,6 @@
|
|||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* Stub that must be provided only if the toolchain does not support weak
|
||||
* functions.
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* examples/hello/main.c
|
||||
*
|
||||
* Copyright (C) 2008 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2008, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -52,19 +52,6 @@
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* Stub that must be provided only if the toolchain does not support weak
|
||||
* functions.
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//***************************************************************************
|
||||
// examples/helloxx/main.c
|
||||
//
|
||||
// Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
||||
// Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
|
||||
// Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
|
@ -86,18 +86,6 @@ static CHelloWorld g_HelloWorld;
|
|||
// Public Functions
|
||||
//***************************************************************************
|
||||
|
||||
//***************************************************************************
|
||||
// user_initialize
|
||||
//***************************************************************************
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
// Stub that must be provided only if the toolchain does not support weak
|
||||
// functions.
|
||||
}
|
||||
#endif
|
||||
|
||||
//***************************************************************************
|
||||
// user_start
|
||||
//***************************************************************************
|
||||
|
|
|
@ -140,14 +140,6 @@ static int hidkbd_waiter(int argc, char *argv[])
|
|||
return 0;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void user_initialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -77,19 +77,6 @@
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* Stub that must be provided only if the toolchain does
|
||||
* not support weak functions.
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -266,14 +266,6 @@ static void do_frees(void **mem, const int *size, const int *seq, int n)
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void user_initialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* mount_main.c
|
||||
* examples/mount/mount_main.c
|
||||
*
|
||||
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -566,14 +566,6 @@ static void succeed_stat(const char *path)
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void user_initialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -61,19 +61,6 @@
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* Stub that must be provided only if the toolchain does
|
||||
* not support weak functions.
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -75,22 +75,6 @@
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
/* In order to support user_initialize if CONFIG_PAGING is defined, this
|
||||
* function (and only this function) would need to get moved to the locked
|
||||
* text region.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_PAGING
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* stub */
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* examples/null/null_main.c
|
||||
*
|
||||
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -57,14 +57,6 @@
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void user_initialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* examples/nx/nx_main.c
|
||||
*
|
||||
* Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2008-2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -609,14 +609,6 @@ static int nxeg_initialize(void)
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void user_initialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* examples/nxflat/nxflat_main.c
|
||||
*
|
||||
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -144,14 +144,6 @@ static inline void testheader(FAR const char *progname)
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void user_initialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* examples/ostest/main.c
|
||||
*
|
||||
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -449,15 +449,6 @@ static void stdio_test(void)
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* stub */
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* examples/pashello/pashello.c
|
||||
*
|
||||
* Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -98,16 +98,6 @@ static void prun(FAR struct pexec_s *st)
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* examples/pipe/pipe_main.c
|
||||
*
|
||||
* Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -68,14 +68,6 @@
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void user_initialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -73,14 +73,6 @@
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void user_initialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* examples/romfs/romfs_main.c
|
||||
*
|
||||
* Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -451,14 +451,6 @@ static void checkdirectories(struct node_s *entry)
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void user_initialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -97,18 +97,6 @@ static const char g_msg_body[] = CONFIG_EXAMPLE_SENDMAIL_BODY "\r\n";
|
|||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* Stub that must be provided only if the toolchain does not support weak
|
||||
* functions.
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* examples/serloop/main.c
|
||||
*
|
||||
* Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -55,19 +55,6 @@
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* Stub that must be provided only if the toolchain does not support weak
|
||||
* functions.
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -165,19 +165,6 @@ int g_thttpdnsymbols;
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* Stub that must be provided only if the toolchain does not support weak
|
||||
* functions.
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -58,19 +58,6 @@
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* Stub that must be provided only if the toolchain does
|
||||
* not support weak functions.
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -104,19 +104,6 @@
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* Stub that must be provided only if the toolchain does
|
||||
* not support weak functions.
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* examples/usbserial/main.c
|
||||
*
|
||||
* Copyright (C) 2008, 2010 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2008, 2010-2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -187,19 +187,6 @@ static void dumptrace(void)
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* Stub that must be provided only if the toolchain does not support weak
|
||||
* functions.
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* examples/usbstorage/usbstrg_main.c
|
||||
*
|
||||
* Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2008-2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -283,19 +283,6 @@ static int usbstrg_enumerate(struct usbtrace_s *trace, void *arg)
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* Stub that must be provided only if the toolchain does not support weak
|
||||
* functions.
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -104,18 +104,6 @@ static void callback(FAR char **buffer, int offset, int datend,
|
|||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
/****************************************************************************
|
||||
* user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
void user_initialize(void)
|
||||
{
|
||||
/* Stub that must be provided only if the toolchain does not support weak
|
||||
* functions.
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
|
|
|
@ -141,14 +141,6 @@ static int wlan_waiter(int argc, char *argv[])
|
|||
return 0;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void user_initialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: user_start
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1648,6 +1648,12 @@
|
|||
separately linked images: (1) a kernel-mode RTOS image, and (2) a user-
|
||||
mode application image that communicates to the RTOS kernel via system
|
||||
calls. A lot more still must be done.
|
||||
* user_initialize(): Eliminated the user_initialize() initialization hook.
|
||||
It is difficult to maintain and redundant: Board level initialization
|
||||
an up_initialize() provide the same kind of capability.
|
||||
* arch/*/include/*/type.h: On some compilers, char defaults as unsigned.
|
||||
Explicitly add signed to integer types if signed is what is required.
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -67,20 +67,20 @@
|
|||
* long long and double are not supported.
|
||||
*/
|
||||
|
||||
typedef char _int8_t;
|
||||
typedef signed char _int8_t;
|
||||
typedef unsigned char _uint8_t;
|
||||
|
||||
typedef int _int16_t;
|
||||
typedef signed int _int16_t;
|
||||
typedef unsigned int _uint16_t;
|
||||
|
||||
typedef long _int32_t;
|
||||
typedef signed long _int32_t;
|
||||
typedef unsigned long _uint32_t;
|
||||
|
||||
/* For SDCC, a Generic pointer is 3 bytes in length with the
|
||||
* first byte holding data space information.
|
||||
*/
|
||||
|
||||
typedef long _intptr_t;
|
||||
typedef signed long _intptr_t;
|
||||
typedef unsigned long _uintptr_t;
|
||||
|
||||
/* This is the size of the interrupt state save returned by
|
||||
|
|
|
@ -63,22 +63,22 @@
|
|||
* files
|
||||
*/
|
||||
|
||||
typedef char _int8_t;
|
||||
typedef signed char _int8_t;
|
||||
typedef unsigned char _uint8_t;
|
||||
|
||||
typedef short _int16_t;
|
||||
typedef signed short _int16_t;
|
||||
typedef unsigned short _uint16_t;
|
||||
|
||||
typedef int _int32_t;
|
||||
typedef signed int _int32_t;
|
||||
typedef unsigned int _uint32_t;
|
||||
|
||||
typedef long long _int64_t;
|
||||
typedef signed long long _int64_t;
|
||||
typedef unsigned long long _uint64_t;
|
||||
#define __INT64_DEFINED
|
||||
|
||||
/* A pointer is 4 bytes */
|
||||
|
||||
typedef int _intptr_t;
|
||||
typedef signed int _intptr_t;
|
||||
typedef unsigned int _uintptr_t;
|
||||
|
||||
/* This is the size of the interrupt state save returned by irqsave(). For
|
||||
|
@ -87,9 +87,9 @@ typedef unsigned int _uintptr_t;
|
|||
*/
|
||||
|
||||
#ifdef __thumb2__
|
||||
typedef unsigned short irqstate_t;
|
||||
typedef unsigned short irqstate_t;
|
||||
#else /* __thumb2__ */
|
||||
typedef unsigned int irqstate_t;
|
||||
typedef unsigned int irqstate_t;
|
||||
#endif /* __thumb2__ */
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
|
|
@ -63,27 +63,27 @@
|
|||
* files
|
||||
*/
|
||||
|
||||
typedef char _int8_t;
|
||||
typedef signed char _int8_t;
|
||||
typedef unsigned char _uint8_t;
|
||||
|
||||
typedef short _int16_t;
|
||||
typedef signed short _int16_t;
|
||||
typedef unsigned short _uint16_t;
|
||||
|
||||
typedef int _int32_t;
|
||||
typedef signed int _int32_t;
|
||||
typedef unsigned int _uint32_t;
|
||||
|
||||
typedef long long _int64_t;
|
||||
typedef signed long long _int64_t;
|
||||
typedef unsigned long long _uint64_t;
|
||||
#define __INT64_DEFINED
|
||||
|
||||
/* A pointer is 4 bytes */
|
||||
|
||||
typedef int _intptr_t;
|
||||
typedef signed int _intptr_t;
|
||||
typedef unsigned int _uintptr_t;
|
||||
|
||||
/* This is the size of the interrupt state save returned by irqsave(). */
|
||||
|
||||
typedef unsigned int irqstate_t;
|
||||
typedef unsigned int irqstate_t;
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
|
|
|
@ -63,9 +63,9 @@
|
|||
* files
|
||||
*/
|
||||
|
||||
typedef char _int8_t;
|
||||
typedef signed char _int8_t;
|
||||
typedef unsigned char _uint8_t;
|
||||
typedef short _int16_t;
|
||||
typedef signed short _int16_t;
|
||||
typedef unsigned short _uint16_t;
|
||||
|
||||
/* Normally, mc68hc1x code is compiled with the -mshort option
|
||||
|
@ -74,20 +74,20 @@ typedef unsigned short _uint16_t;
|
|||
*/
|
||||
|
||||
# if __INT__ == 16
|
||||
typedef long _int32_t;
|
||||
typedef signed long _int32_t;
|
||||
typedef unsigned long _uint32_t;
|
||||
#else
|
||||
typedef int _int32_t;
|
||||
typedef signed int _int32_t;
|
||||
typedef unsigned int _uint32_t;
|
||||
#endif
|
||||
|
||||
typedef long long _int64_t;
|
||||
typedef signed long long _int64_t;
|
||||
typedef unsigned long long _uint64_t;
|
||||
#define __INT64_DEFINED
|
||||
|
||||
/* A pointer is two bytes */
|
||||
|
||||
typedef short _intptr_t;
|
||||
typedef signed short _intptr_t;
|
||||
typedef unsigned short _uintptr_t;
|
||||
|
||||
/* This is the size of the interrupt state save returned by irqsave()*/
|
||||
|
|
|
@ -63,10 +63,10 @@
|
|||
* files
|
||||
*/
|
||||
|
||||
typedef char _int8_t;
|
||||
typedef signed char _int8_t;
|
||||
typedef unsigned char _uint8_t;
|
||||
|
||||
typedef short _int16_t;
|
||||
typedef signed short _int16_t;
|
||||
typedef unsigned short _uint16_t;
|
||||
|
||||
/* Normally, mc68hc1x code is compiled with the -mshort option
|
||||
|
@ -75,20 +75,20 @@ typedef unsigned short _uint16_t;
|
|||
*/
|
||||
|
||||
# if __INT__ == 16
|
||||
typedef long _int32_t;
|
||||
typedef signed long _int32_t;
|
||||
typedef unsigned long _uint32_t;
|
||||
#else
|
||||
typedef int _int32_t;
|
||||
typedef signed int _int32_t;
|
||||
typedef unsigned int _uint32_t;
|
||||
#endif
|
||||
|
||||
typedef long long _int64_t;
|
||||
typedef signed long long _int64_t;
|
||||
typedef unsigned long long _uint64_t;
|
||||
#define __INT64_DEFINED
|
||||
|
||||
/* A pointer is two bytes */
|
||||
|
||||
typedef short _intptr_t;
|
||||
typedef signed short _intptr_t;
|
||||
typedef unsigned short _uintptr_t;
|
||||
|
||||
/* This is the size of the interrupt state save returned by irqsave()*/
|
||||
|
|
|
@ -65,22 +65,22 @@
|
|||
* int is 16-bits and long is 32-bits
|
||||
*/
|
||||
|
||||
typedef char _int8_t;
|
||||
typedef signed char _int8_t;
|
||||
typedef unsigned char _uint8_t;
|
||||
|
||||
typedef int _int16_t;
|
||||
typedef signed int _int16_t;
|
||||
typedef unsigned int _uint16_t;
|
||||
|
||||
typedef long _int32_t;
|
||||
typedef signed long _int32_t;
|
||||
typedef unsigned long _uint32_t;
|
||||
|
||||
typedef long long _int64_t;
|
||||
typedef signed long long _int64_t;
|
||||
typedef unsigned long long _uint64_t;
|
||||
#define __INT64_DEFINED
|
||||
|
||||
/* A pointer is 2 bytes */
|
||||
|
||||
typedef unsigned int _intptr_t;
|
||||
typedef signed int _intptr_t;
|
||||
typedef unsigned int _uintptr_t;
|
||||
|
||||
/* This is the size of the interrupt state save returned by
|
||||
|
|
|
@ -63,22 +63,22 @@
|
|||
* files
|
||||
*/
|
||||
|
||||
typedef char _int8_t;
|
||||
typedef signed char _int8_t;
|
||||
typedef unsigned char _uint8_t;
|
||||
|
||||
typedef short _int16_t;
|
||||
typedef signed short _int16_t;
|
||||
typedef unsigned short _uint16_t;
|
||||
|
||||
typedef int _int32_t;
|
||||
typedef signed int _int32_t;
|
||||
typedef unsigned int _uint32_t;
|
||||
|
||||
typedef long long _int64_t;
|
||||
typedef signed long long _int64_t;
|
||||
typedef unsigned long long _uint64_t;
|
||||
#define __INT64_DEFINED
|
||||
|
||||
/* A pointer is 4 bytes */
|
||||
|
||||
typedef int _intptr_t;
|
||||
typedef signed int _intptr_t;
|
||||
typedef unsigned int _uintptr_t;
|
||||
|
||||
/* This is the size of the interrupt state save returned by
|
||||
|
|
|
@ -63,22 +63,22 @@
|
|||
* files
|
||||
*/
|
||||
|
||||
typedef char _int8_t;
|
||||
typedef signed char _int8_t;
|
||||
typedef unsigned char _uint8_t;
|
||||
|
||||
typedef short _int16_t;
|
||||
typedef signed short _int16_t;
|
||||
typedef unsigned short _uint16_t;
|
||||
|
||||
typedef int _int32_t;
|
||||
typedef signed int _int32_t;
|
||||
typedef unsigned int _uint32_t;
|
||||
|
||||
typedef long long _int64_t;
|
||||
typedef signed long long _int64_t;
|
||||
typedef unsigned long long _uint64_t;
|
||||
#define __INT64_DEFINED
|
||||
|
||||
/* A pointer is 4 bytes */
|
||||
|
||||
typedef unsigned int _intptr_t;
|
||||
typedef signed int _intptr_t;
|
||||
typedef unsigned int _uintptr_t;
|
||||
|
||||
/* This is the size of the interrupt state save returned by
|
||||
|
|
|
@ -64,22 +64,22 @@
|
|||
* files
|
||||
*/
|
||||
|
||||
typedef char _int8_t;
|
||||
typedef signed char _int8_t;
|
||||
typedef unsigned char _uint8_t;
|
||||
|
||||
typedef short _int16_t;
|
||||
typedef signed short _int16_t;
|
||||
typedef unsigned short _uint16_t;
|
||||
|
||||
typedef int _int32_t;
|
||||
typedef signed int _int32_t;
|
||||
typedef unsigned int _uint32_t;
|
||||
|
||||
typedef long long _int64_t;
|
||||
typedef signed long long _int64_t;
|
||||
typedef unsigned long long _uint64_t;
|
||||
#define __INT64_DEFINED
|
||||
|
||||
/* A pointer is 4 bytes */
|
||||
|
||||
typedef unsigned int _intptr_t;
|
||||
typedef signed int _intptr_t;
|
||||
typedef unsigned int _uintptr_t;
|
||||
|
||||
/* This is the size of the interrupt state save returned by
|
||||
|
|
|
@ -63,18 +63,18 @@
|
|||
* files
|
||||
*/
|
||||
|
||||
typedef char _int8_t;
|
||||
typedef signed char _int8_t;
|
||||
typedef unsigned char _uint8_t;
|
||||
|
||||
typedef short _int16_t;
|
||||
typedef signed short _int16_t;
|
||||
typedef unsigned short _uint16_t;
|
||||
|
||||
typedef int _int32_t;
|
||||
typedef signed int _int32_t;
|
||||
typedef unsigned int _uint32_t;
|
||||
|
||||
/* A pointer is 4 bytes */
|
||||
|
||||
typedef int _intptr_t;
|
||||
typedef signed int _intptr_t;
|
||||
typedef unsigned int _uintptr_t;
|
||||
|
||||
/* This is the size of the interrupt state save returned by
|
||||
|
|
|
@ -72,17 +72,17 @@
|
|||
* float - 32-bits
|
||||
*/
|
||||
|
||||
typedef char _int8_t;
|
||||
typedef signed char _int8_t;
|
||||
typedef unsigned char _uint8_t;
|
||||
|
||||
typedef short _int16_t;
|
||||
typedef signed short _int16_t;
|
||||
typedef unsigned short _uint16_t;
|
||||
|
||||
typedef int _int24_t;
|
||||
typedef signed int _int24_t;
|
||||
typedef unsigned int _uint24_t;
|
||||
#define __INT24_DEFINED
|
||||
|
||||
typedef long _int32_t;
|
||||
typedef signed long _int32_t;
|
||||
typedef unsigned long _uint32_t;
|
||||
|
||||
/* A pointer is 2 or 3 bytes, depending upon if the ez80 is in z80
|
||||
|
@ -93,10 +93,10 @@ typedef unsigned long _uint32_t;
|
|||
*/
|
||||
|
||||
#ifdef CONFIG_EZ80_Z80MODE
|
||||
typedef short _intptr_t;
|
||||
typedef signed short _intptr_t;
|
||||
typedef unsigned short _uintptr_t;
|
||||
#else
|
||||
typedef int _intptr_t;
|
||||
typedef signed int _intptr_t;
|
||||
typedef unsigned int _uintptr_t;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -79,18 +79,18 @@
|
|||
* rom pointer - 16-bits
|
||||
*/
|
||||
|
||||
typedef char _int8_t;
|
||||
typedef signed char _int8_t;
|
||||
typedef unsigned char _uint8_t;
|
||||
|
||||
typedef int _int16_t;
|
||||
typedef signed int _int16_t;
|
||||
typedef unsigned int _uint16_t;
|
||||
|
||||
typedef long _int32_t;
|
||||
typedef signed long _int32_t;
|
||||
typedef unsigned long _uint32_t;
|
||||
|
||||
/* A pointer is 2 bytes */
|
||||
|
||||
typedef unsigned int _intptr_t;
|
||||
typedef signed int _intptr_t;
|
||||
typedef unsigned int _uintptr_t;
|
||||
|
||||
/* This is the size of the interrupt state save returned by irqsave() */
|
||||
|
|
|
@ -72,18 +72,18 @@
|
|||
* space information.
|
||||
*/
|
||||
|
||||
typedef char _int8_t;
|
||||
typedef signed char _int8_t;
|
||||
typedef unsigned char _uint8_t;
|
||||
|
||||
typedef int _int16_t;
|
||||
typedef signed int _int16_t;
|
||||
typedef unsigned int _uint16_t;
|
||||
|
||||
typedef long _int32_t;
|
||||
typedef signed long _int32_t;
|
||||
typedef unsigned long _uint32_t;
|
||||
|
||||
/* A pointer is 2 bytes */
|
||||
|
||||
typedef int _intptr_t;
|
||||
typedef signed int _intptr_t;
|
||||
typedef unsigned int _uintptr_t;
|
||||
|
||||
/* This is the size of the interrupt state save returned by irqsave() */
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
###########################################################################
|
||||
# configs/ea3131/locked/mklocked.sh
|
||||
#
|
||||
# Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
||||
# Copyright (C) 2010-2011 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
|
@ -163,7 +163,6 @@ fi
|
|||
|
||||
echo "EXTERN(mm_initialize)" >>ld-locked.inc
|
||||
echo "EXTERN(irq_initialize)" >>ld-locked.inc
|
||||
#echo "EXTERN(user_initialize)" >>ld-locked.inc
|
||||
echo "EXTERN(wd_initialize)" >>ld-locked.inc
|
||||
|
||||
answer=$(checkconfig CONFIG_DISABLE_CLOCK)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* include/nuttx/init.h
|
||||
*
|
||||
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -66,9 +66,8 @@ extern "C" {
|
|||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/* These are functions that must be supplied by the application */
|
||||
/* This entry point must be supplied by the application */
|
||||
|
||||
EXTERN void weak_function user_initialize(void);
|
||||
EXTERN int user_start(int argc, char *argv[]);
|
||||
|
||||
/* Functions contained in os_task.c *****************************************/
|
||||
|
|
|
@ -311,18 +311,6 @@ void os_start(void)
|
|||
irq_initialize();
|
||||
}
|
||||
|
||||
/* Provide an access point to initialize any user-specific logic very
|
||||
* early in the initialization sequence. Note that user_ininitialize()
|
||||
* is called only if it is provided in the link.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
if (user_initialize != NULL)
|
||||
#endif
|
||||
{
|
||||
user_initialize();
|
||||
}
|
||||
|
||||
/* Initialize the watchdog facility (if included in the link) */
|
||||
|
||||
#ifdef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
|
|
Loading…
Reference in New Issue