From 6b0b49f3968f4dccfb15003364952bf9d66d7f65 Mon Sep 17 00:00:00 2001 From: NicJA Date: Wed, 20 May 2015 21:47:16 +0000 Subject: [PATCH] formatting git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@50734 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/exec/exec_intern.h | 202 ++++++++++++++++++++++++------------------------- 1 file changed, 101 insertions(+), 101 deletions(-) rewrite rom/exec/exec_intern.h (62%) diff --git a/rom/exec/exec_intern.h b/rom/exec/exec_intern.h dissimilarity index 62% index e06e2bce2a..13d302b5fc 100644 --- a/rom/exec/exec_intern.h +++ b/rom/exec/exec_intern.h @@ -1,101 +1,101 @@ -/* - Copyright © 1995-2015, The AROS Development Team. All rights reserved. - $Id$ - - Desc: Private data belonging to exec.library - Lang: -*/ -#ifndef __EXEC_INTERN_H__ -#define __EXEC_INTERN_H__ - -/* This is a short file that contains a few things every Exec function needs */ - -#include /* Needed for aros_print_not_implemented macro */ -#include -#include -#include -#include - -#include - -#if defined(__AROSEXEC_SMP__) -#include -#endif - -#define ALERT_BUFFER_SIZE 2048 - -/* Internals of this structure are host-specific, we don't know them here */ -struct HostInterface; - -struct SupervisorAlertTask -{ - struct Task * sat_Task; /* Task that tries to display supervisor-level alerts */ - BOOL sat_IsAvailable; - IPTR sat_Params[2]; -}; - -/* A private portion of ExecBase */ -struct IntExecBase -{ - struct ExecBase pub; - struct List ResetHandlers; /* Reset handlers list */ - struct Interrupt ColdResetHandler; /* Reset handler that causes cold reboot */ - struct Interrupt WarmResetHandler; /* Reset handler that causes warm reboot */ - struct Interrupt ShutdownHandler; /* Reset handler that halts CPU */ - struct MinList AllocMemList; /* Mungwall allocations list */ - struct SignalSemaphore MemListSem; /* Memory list protection semaphore */ - struct SignalSemaphore LowMemSem; /* Lock for single-threading low memory handlers */ -#if defined(__AROSEXEC_SMP__) - spinlock_t TaskRunningSpinLock; - struct List TaskRunning; /* Tasks that are running on CPUs */ - spinlock_t TaskSpinningLock; - struct List TaskSpinning; /* Tasks that are spinning waiting for a lock */ - spinlock_t TaskReadySpinLock; - spinlock_t TaskWaitSpinLock; -#endif - APTR KernelBase; /* kernel.resource base */ - struct Library *DebugBase; /* debug.library base */ - ULONG PageSize; /* Memory page size */ - ULONG IntFlags; /* Internal flags, see below */ - struct MsgPort *ServicePort; /* Message port for service task */ - struct MinList TaskStorageSlots; /* List of free slots, always one element with next slot */ - struct List AllocatorCtxList; /* List of allocator contexts for system mem headers */ - struct Exec_PlatformData PlatformData; /* Platform-specific stuff */ - struct SupervisorAlertTask SAT; - char AlertBuffer[ALERT_BUFFER_SIZE]; /* Buffer for alert text */ -}; - -#define PrivExecBase(base) ((struct IntExecBase *)base) -#define PD(base) PrivExecBase(base)->PlatformData -#define KernelBase PrivExecBase(SysBase)->KernelBase -#define DebugBase PrivExecBase(SysBase)->DebugBase - -/* IntFlags */ -#define EXECF_MungWall 0x0001 /* This flag can't be changed at runtime */ -#define EXECF_StackSnoop 0x0002 - -/* Additional private task states */ -#define TS_SERVICE 128 - -/* Puddle size, in slots. Must be at least 1 */ -#define TASKSTORAGEPUDDLE 16 - -#if UseLVOs -extern void __AROS_InitExecBase (void); -#endif - -struct ExecBase *PrepareExecBase(struct MemHeader *mh, struct TagItem *tags); -void InitExecBase(struct ExecBase *SysBase, ULONG negsize, struct TagItem *msg); -struct ExecBase *PrepareExecBaseMove(struct ExecBase *oldSysBase); -BOOL Exec_PreparePlatform(struct Exec_PlatformData *pdata, struct TagItem *tags); - -void InitKickTags(struct ExecBase *SysBase); -UWORD GetSysBaseChkSum(struct ExecBase *sysbase); -void SetSysBaseChkSum(void); -BOOL IsSysBaseValid(struct ExecBase *sysbase); - -IPTR cpu_SuperState(); - -void ServiceTask(struct ExecBase *SysBase); - -#endif /* __EXEC_INTERN_H__ */ +/* + Copyright © 1995-2015, The AROS Development Team. All rights reserved. + $Id$ + + Desc: Private data belonging to exec.library + Lang: +*/ +#ifndef __EXEC_INTERN_H__ +#define __EXEC_INTERN_H__ + +/* This is a short file that contains a few things every Exec function needs */ + +#include /* Needed for aros_print_not_implemented macro */ +#include +#include +#include +#include + +#include + +#if defined(__AROSEXEC_SMP__) +#include +#endif + +#define ALERT_BUFFER_SIZE 2048 + +/* Internals of this structure are host-specific, we don't know them here */ +struct HostInterface; + +struct SupervisorAlertTask +{ + struct Task * sat_Task; /* Task that tries to display supervisor-level alerts */ + BOOL sat_IsAvailable; + IPTR sat_Params[2]; +}; + +/* A private portion of ExecBase */ +struct IntExecBase +{ + struct ExecBase pub; + struct List ResetHandlers; /* Reset handlers list */ + struct Interrupt ColdResetHandler; /* Reset handler that causes cold reboot */ + struct Interrupt WarmResetHandler; /* Reset handler that causes warm reboot */ + struct Interrupt ShutdownHandler; /* Reset handler that halts CPU */ + struct MinList AllocMemList; /* Mungwall allocations list */ + struct SignalSemaphore MemListSem; /* Memory list protection semaphore */ + struct SignalSemaphore LowMemSem; /* Lock for single-threading low memory handlers */ +#if defined(__AROSEXEC_SMP__) + spinlock_t TaskRunningSpinLock; + struct List TaskRunning; /* Tasks that are running on CPUs */ + spinlock_t TaskSpinningLock; + struct List TaskSpinning; /* Tasks that are spinning waiting for a lock */ + spinlock_t TaskReadySpinLock; + spinlock_t TaskWaitSpinLock; +#endif + APTR KernelBase; /* kernel.resource base */ + struct Library *DebugBase; /* debug.library base */ + ULONG PageSize; /* Memory page size */ + ULONG IntFlags; /* Internal flags, see below */ + struct MsgPort *ServicePort; /* Message port for service task */ + struct MinList TaskStorageSlots; /* List of free slots, always one element with next slot */ + struct List AllocatorCtxList; /* List of allocator contexts for system mem headers */ + struct Exec_PlatformData PlatformData; /* Platform-specific stuff */ + struct SupervisorAlertTask SAT; + char AlertBuffer[ALERT_BUFFER_SIZE]; /* Buffer for alert text */ +}; + +#define PrivExecBase(base) ((struct IntExecBase *)base) +#define PD(base) PrivExecBase(base)->PlatformData +#define KernelBase PrivExecBase(SysBase)->KernelBase +#define DebugBase PrivExecBase(SysBase)->DebugBase + +/* IntFlags */ +#define EXECF_MungWall 0x0001 /* This flag can't be changed at runtime */ +#define EXECF_StackSnoop 0x0002 + +/* Additional private task states */ +#define TS_SERVICE 128 + +/* Puddle size, in slots. Must be at least 1 */ +#define TASKSTORAGEPUDDLE 16 + +#if UseLVOs +extern void __AROS_InitExecBase (void); +#endif + +struct ExecBase *PrepareExecBase(struct MemHeader *mh, struct TagItem *tags); +void InitExecBase(struct ExecBase *SysBase, ULONG negsize, struct TagItem *msg); +struct ExecBase *PrepareExecBaseMove(struct ExecBase *oldSysBase); +BOOL Exec_PreparePlatform(struct Exec_PlatformData *pdata, struct TagItem *tags); + +void InitKickTags(struct ExecBase *SysBase); +UWORD GetSysBaseChkSum(struct ExecBase *sysbase); +void SetSysBaseChkSum(void); +BOOL IsSysBaseValid(struct ExecBase *sysbase); + +IPTR cpu_SuperState(); + +void ServiceTask(struct ExecBase *SysBase); + +#endif /* __EXEC_INTERN_H__ */ -- 2.11.4.GIT