Fix kernel/atom.h extra semicolon

This commit is contained in:
Philipp Klaus Krause
2016-06-18 22:19:58 +02:00
parent 529a386a7a
commit 2944d95d86
3 changed files with 10 additions and 10 deletions

View File

@@ -42,15 +42,6 @@ extern "C" {
/* Forward declaration */
struct atom_tcb;
/*
* Define THREAD_PORT_PRIV to be empty if the used atomport.h does not define
* a port specific entry for the atom_tcb struct. This way we do not have an
* unused element.
*/
#if !defined(THREAD_PORT_PRIV)
#define THREAD_PORT_PRIV
#endif
typedef struct atom_tcb
{
/*
@@ -60,7 +51,9 @@ typedef struct atom_tcb
POINTER sp_save_ptr;
/* Thread's port specific private data */
#if defined(THREAD_PORT_PRIV)
THREAD_PORT_PRIV;
#endif
/* Thread priority (0-255) */
uint8_t priority;

View File

@@ -33,7 +33,6 @@ _archFirstThreadRestore::
; restore context
ldw x, (3, sp)
restore:
ldw x, (x)
ldw sp, x

View File

@@ -39,6 +39,10 @@
* None
* @retval u8 Content of CC register (in A register).
*/
#ifdef __SDCC_stm8
uint8_t get_cc(void);
#endif
u8 ITC_GetCPUCC(void)
{
#ifdef _COSMIC_
@@ -46,6 +50,10 @@ u8 ITC_GetCPUCC(void)
_asm("pop a");
return; /* Ignore compiler warning, the returned value is in A register */
#endif
#ifdef __SDCC_stm8
return get_cc();
#endif
#ifdef _RAISONANCE_
return _getCC_();