mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-01-11 18:33:16 +01:00
Fix kernel/atom.h extra semicolon
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -33,7 +33,6 @@ _archFirstThreadRestore::
|
||||
|
||||
; restore context
|
||||
ldw x, (3, sp)
|
||||
restore:
|
||||
ldw x, (x)
|
||||
ldw sp, x
|
||||
|
||||
|
||||
@@ -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_
|
||||
@@ -47,6 +51,10 @@ u8 ITC_GetCPUCC(void)
|
||||
return; /* Ignore compiler warning, the returned value is in A register */
|
||||
#endif
|
||||
|
||||
#ifdef __SDCC_stm8
|
||||
return get_cc();
|
||||
#endif
|
||||
|
||||
#ifdef _RAISONANCE_
|
||||
return _getCC_();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user