Update of /cvsroot/linux-hls/hls/hls/include
In directory sc8-pr-cvs1:/tmp/cvs-serv6094/hls/include
Modified Files:
hls_interface.h hls_internal.h rsv.h
Added Files:
hls_hooks.h
Log Message:
Lot of changes....
- Unbreak the debugging stuff
- Some random cleanups
- Fixes in the RR scheduler (I hope... MAXIMUM_PRIORITY does not seem to be
a valid priority)
- Allow the RES scheduler to be scheduled (there's a fixme: some functions
still have to be properly implemented)
- change Q e T from long long to long in the RES scheduler
- Implement the "rt scheduler" stuff
--- NEW FILE: hls_hooks.h ---
#ifndef __HLS_HOOKS_H__
#define __HLS_HOOKS_H__
extern void HLSExitThreadHook(PRKTHREAD Thread);
extern void HLSCreateThreadHook(PRKTHREAD Thread, KTHREAD_STATE State);
extern void HLSBlockThreadHook(PRKTHREAD Thread);
extern void HLSUnblockThreadHook(PRKTHREAD Thread);
#endif /* __HLS_HOOKS_H__ */
Index: hls_interface.h
===================================================================
RCS file: /cvsroot/linux-hls/hls/hls/include/hls_interface.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** hls_interface.h 25 Feb 2003 09:18:54 -0000 1.2
--- hls_interface.h 8 Nov 2003 10:34:31 -0000 1.3
***************
*** 11,14 ****
--- 11,16 ----
#ifndef __HLS_INTERFACE__
#define __HLS_INTERFACE__
+
+ #if 0
/*
* README
***************
*** 25,37 ****
#define HLS_DEBUG 0
#endif /* HLS_DEBUG */
!
#include <interface-funcs.h>
#include <interface-data.h>
- typedef enum _HLS_STATUS {
- HLS_SUCCESS = 0xadd0, HLS_NOROOM, HLS_INVALID_PARAMETER
- } HLS_STATUS;
-
#define MAX_NAMELEN 20
--- 27,35 ----
#define HLS_DEBUG 0
#endif /* HLS_DEBUG */
! #endif
#include <interface-funcs.h>
#include <interface-data.h>
#define MAX_NAMELEN 20
***************
*** 146,152 ****
- typedef enum _HLS_BOOL {
- HLS_FALSE = 0, HLS_TRUE = 0x600 // don't change this value
- } HLS_BOOL;
#define MAX_PROCS ((PROCT)MAXIMUM_PROCESSORS)
--- 144,147 ----
Index: hls_internal.h
===================================================================
RCS file: /cvsroot/linux-hls/hls/hls/include/hls_internal.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** hls_internal.h 25 Feb 2003 09:18:54 -0000 1.2
--- hls_internal.h 8 Nov 2003 10:34:31 -0000 1.3
***************
*** 32,35 ****
--- 32,36 ----
extern ULONG HLSNumScheds;
extern struct HLS_SCHED_INSTANCE *HLSDefaultSched;
+ extern struct HLS_SCHED_INSTANCE *hls_rt_sched;
#ifdef ADJUST
***************
*** 46,53 ****
extern HLS_BOOL HLSDispatcherLockHeld(void);
extern struct HLS_SCHED_INSTANCE *HLSNewSchedInstance(char *SchedName, char *InstName, struct HLS_SCHED_INSTANCE *Parent);
- extern void HLSExitThreadHook(PRKTHREAD Thread);
- extern void HLSCreateThreadHook(PRKTHREAD Thread, KTHREAD_STATE State);
- extern void HLSBlockThreadHook(PRKTHREAD Thread);
- extern void HLSUnblockThreadHook(PRKTHREAD Thread);
extern void hls_malloc_stats(void);
extern void HLSDestroySchedInstance(struct HLS_SCHED_INSTANCE *Inst);
--- 47,50 ----
***************
*** 57,60 ****
--- 54,62 ----
extern void SetDefPriForSched(char Pri, struct HLS_SCHED_INSTANCE *Inst);
extern struct HLS_SCHED_INSTANCE *HLSFindInstByName(char *Name);
+ extern char *hls_rt_name(void);
+ extern char *hls_default_name(void);
+ extern void hls_setdefault(void *p);
+ extern void hls_setrt(void *p);
+ extern void hls_convert_tasks(void);
#endif /* _HLS_H_ */
Index: rsv.h
===================================================================
RCS file: /cvsroot/linux-hls/hls/hls/include/rsv.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** rsv.h 25 Feb 2003 09:18:54 -0000 1.3
--- rsv.h 8 Nov 2003 10:34:31 -0000 1.4
***************
*** 15,20 ****
HLS_BOOL BeginRes;
HLS_BOOL Soft;
! WNT_TIME Amount;
! WNT_TIME Period;
/* HANDLE UserThreadHandle; */
};
--- 15,20 ----
HLS_BOOL BeginRes;
HLS_BOOL Soft;
! unsigned long int Amount;
! unsigned long int Period;
/* HANDLE UserThreadHandle; */
};
|