Al's double-blank-line removal request
This commit is contained in:
@@ -39,7 +39,6 @@ FORWARD _PROTOTYPE( void init_clock, (void) );
|
||||
FORWARD _PROTOTYPE( int clock_handler, (irq_hook_t *hook) );
|
||||
FORWARD _PROTOTYPE( int do_clocktick, (message *m_ptr) );
|
||||
|
||||
|
||||
/* Clock parameters. */
|
||||
#if (CHIP == INTEL)
|
||||
#define COUNTER_FREQ (2*TIMER_FREQ) /* counter frequency using square wave */
|
||||
@@ -70,7 +69,6 @@ PRIVATE clock_t next_timeout; /* realtime that next timer expires */
|
||||
PRIVATE clock_t realtime; /* real time clock */
|
||||
PRIVATE irq_hook_t clock_hook; /* interrupt handler hook */
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* clock_task *
|
||||
*===========================================================================*/
|
||||
@@ -101,7 +99,6 @@ PUBLIC void clock_task()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* do_clocktick *
|
||||
*===========================================================================*/
|
||||
@@ -134,7 +131,6 @@ message *m_ptr; /* pointer to request message */
|
||||
return(EDONTREPLY);
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* clock_handler *
|
||||
*===========================================================================*/
|
||||
@@ -199,7 +195,6 @@ irq_hook_t *hook;
|
||||
return(1); /* reenable interrupts */
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* get_uptime *
|
||||
*===========================================================================*/
|
||||
@@ -209,7 +204,6 @@ PUBLIC clock_t get_uptime()
|
||||
return(realtime);
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* set_timer *
|
||||
*===========================================================================*/
|
||||
@@ -225,7 +219,6 @@ tmr_func_t watchdog; /* watchdog to be called */
|
||||
next_timeout = clock_timers->tmr_exp_time;
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* reset_timer *
|
||||
*===========================================================================*/
|
||||
@@ -241,7 +234,6 @@ struct timer *tp; /* pointer to timer structure */
|
||||
TMR_NEVER : clock_timers->tmr_exp_time;
|
||||
}
|
||||
|
||||
|
||||
#if (CHIP == INTEL)
|
||||
|
||||
/*===========================================================================*
|
||||
@@ -260,7 +252,6 @@ PRIVATE void init_clock()
|
||||
enable_irq(&clock_hook); /* ready for clock interrupts */
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* clock_stop *
|
||||
*===========================================================================*/
|
||||
@@ -272,7 +263,6 @@ PUBLIC void clock_stop()
|
||||
outb(TIMER0, 0);
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* read_clock *
|
||||
*===========================================================================*/
|
||||
@@ -294,5 +284,3 @@ PUBLIC unsigned long read_clock()
|
||||
|
||||
#endif /* (CHIP == INTEL) */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
#define USE_PHYSVCOPY 1 /* vector with physical copy requests */
|
||||
#define USE_MEMSET 1 /* write char to a given memory area */
|
||||
|
||||
|
||||
/* Length of program names stored in the process table. This is only used
|
||||
* for the debugging dumps that can be generated with the IS server. The PM
|
||||
* server keeps its own copy of the program name.
|
||||
@@ -61,7 +60,6 @@
|
||||
*/
|
||||
#define RANDOM_ELEMENTS 32
|
||||
|
||||
|
||||
/* This section contains defines for valuable system resources that are used
|
||||
* by device drivers. The number of elements of the vectors is determined by
|
||||
* the maximum needed by any given driver. The number of interrupt hooks may
|
||||
@@ -71,11 +69,9 @@
|
||||
#define VDEVIO_BUF_SIZE 64 /* max elements per VDEVIO request */
|
||||
#define VCOPY_VEC_SIZE 16 /* max elements per VCOPY request */
|
||||
|
||||
|
||||
/* How many bytes for the kernel stack. Space allocated in mpx.s. */
|
||||
#define K_STACK_BYTES 1024
|
||||
|
||||
|
||||
/* This section allows to enable kernel debugging and timing functionality.
|
||||
* For normal operation all options should be disabled.
|
||||
*/
|
||||
|
||||
@@ -47,7 +47,6 @@
|
||||
( MAP_CHUNK(map.chunk,bit) &= ~(1 << CHUNK_OFFSET(bit) )
|
||||
#define NR_SYS_CHUNKS BITMAP_CHUNKS(NR_SYS_PROCS)
|
||||
|
||||
|
||||
#if (CHIP == INTEL)
|
||||
|
||||
/* Program stack words and masks. */
|
||||
@@ -71,7 +70,6 @@
|
||||
*/
|
||||
#define NR_MEMS 8
|
||||
|
||||
|
||||
#endif /* (CHIP == INTEL) */
|
||||
|
||||
#if (CHIP == M68000)
|
||||
|
||||
@@ -102,7 +102,6 @@ void timer_end(int cat)
|
||||
|
||||
#endif /* DEBUG_TIME_LOCKS */
|
||||
|
||||
|
||||
#if DEBUG_SCHED_CHECK /* only include code if enabled */
|
||||
|
||||
#define PROCLIMIT 10000
|
||||
|
||||
@@ -40,7 +40,6 @@ _PROTOTYPE( void timer_end, (int cat) );
|
||||
#define locktimeend(c)
|
||||
#endif /* DEBUG_TIME_LOCKS */
|
||||
|
||||
|
||||
/* The locking checks counts relocking situation, which are dangerous because
|
||||
* the inner lock may unlock the outer one.
|
||||
*/
|
||||
@@ -50,7 +49,6 @@ _PROTOTYPE( void timer_end, (int cat) );
|
||||
#define lockcheck
|
||||
#endif /* DEBUG_LOCK_CHECK */
|
||||
|
||||
|
||||
/* This check makes sure that the scheduling queues are in a consistent state.
|
||||
* The check is run when the queues are updated with ready() and unready().
|
||||
*/
|
||||
@@ -58,7 +56,6 @@ _PROTOTYPE( void timer_end, (int cat) );
|
||||
_PROTOTYPE( void check_runqueues, (char *when) );
|
||||
#endif /* DEBUG_SCHED_CHECK */
|
||||
|
||||
|
||||
/* The timing and checking of kernel locking requires a redefine of the lock()
|
||||
* and unlock() macros. That's done here. This redefine requires that this
|
||||
* header is included after the other kernel headers.
|
||||
@@ -70,5 +67,4 @@ _PROTOTYPE( void check_runqueues, (char *when) );
|
||||
# define unlock(c) do { locktimeend(c); intr_enable(); } while(0)
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* DEBUG_H */
|
||||
|
||||
@@ -32,7 +32,6 @@ EXTERN struct proc *bill_ptr; /* process to bill for clock ticks */
|
||||
EXTERN char k_reenter; /* kernel reentry count (entry count less 1) */
|
||||
EXTERN unsigned lost_ticks; /* clock ticks counted outside clock task */
|
||||
|
||||
|
||||
#if (CHIP == INTEL)
|
||||
|
||||
/* Interrupt related variables. */
|
||||
|
||||
@@ -34,7 +34,6 @@ PRIVATE vecaddr_t irq_vec[] = {
|
||||
#define set_vec(nr, addr) ((void)0)
|
||||
#endif
|
||||
|
||||
|
||||
/*==========================================================================*
|
||||
* intr_init *
|
||||
*==========================================================================*/
|
||||
@@ -146,7 +145,6 @@ irq_hook_t *hook;
|
||||
/* When the handler is not found, normally return here. */
|
||||
}
|
||||
|
||||
|
||||
/*==========================================================================*
|
||||
* intr_handle *
|
||||
*==========================================================================*/
|
||||
|
||||
@@ -26,5 +26,4 @@
|
||||
#define CHECK_DST 0x05 /* 0 1 0 1 : validate message destination */
|
||||
#define CHECK_SRC 0x02 /* 0 0 1 0 : validate message source */
|
||||
|
||||
|
||||
#endif /* IPC_H */
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
FORWARD _PROTOTYPE( void announce, (void));
|
||||
FORWARD _PROTOTYPE( void shutdown, (timer_t *tp));
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* main *
|
||||
*===========================================================================*/
|
||||
@@ -164,8 +163,6 @@ PUBLIC void main()
|
||||
restart();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*==========================================================================*
|
||||
* announce *
|
||||
*==========================================================================*/
|
||||
@@ -182,7 +179,6 @@ PRIVATE void announce(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/*==========================================================================*
|
||||
* prepare_shutdown *
|
||||
*==========================================================================*/
|
||||
@@ -230,7 +226,6 @@ int how;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/*==========================================================================*
|
||||
* shutdown *
|
||||
*==========================================================================*/
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
#include "kernel.h"
|
||||
#include "proc.h"
|
||||
|
||||
|
||||
/* Scheduling and message passing functions. The functions are available to
|
||||
* other parts of the kernel through lock_...(). The lock temporarily disables
|
||||
* interrupts to prevent race conditions.
|
||||
@@ -83,7 +82,6 @@ FORWARD _PROTOTYPE( void pick_proc, (void) );
|
||||
*/
|
||||
#endif /* (CHIP == M68000) */
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* sys_call *
|
||||
*===========================================================================*/
|
||||
@@ -194,7 +192,6 @@ message *m_ptr; /* pointer to message in the caller's space */
|
||||
return(result);
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* mini_send *
|
||||
*===========================================================================*/
|
||||
@@ -323,7 +320,6 @@ unsigned flags; /* system call flags */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* mini_notify *
|
||||
*===========================================================================*/
|
||||
@@ -363,7 +359,6 @@ int dst; /* which process to notify */
|
||||
return(OK);
|
||||
}
|
||||
|
||||
|
||||
/*==========================================================================*
|
||||
* lock_notify *
|
||||
*==========================================================================*/
|
||||
@@ -393,7 +388,6 @@ int dst; /* who is to be notified */
|
||||
return(result);
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* enqueue *
|
||||
*===========================================================================*/
|
||||
@@ -489,7 +483,6 @@ register struct proc *rp; /* this process is no longer runnable */
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* sched *
|
||||
*===========================================================================*/
|
||||
@@ -531,7 +524,6 @@ int *front; /* return: front or back */
|
||||
*front = time_left;
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* pick_proc *
|
||||
*===========================================================================*/
|
||||
@@ -558,7 +550,6 @@ PRIVATE void pick_proc()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*==========================================================================*
|
||||
* lock_send *
|
||||
*==========================================================================*/
|
||||
@@ -574,7 +565,6 @@ message *m_ptr; /* pointer to message buffer */
|
||||
return(result);
|
||||
}
|
||||
|
||||
|
||||
/*==========================================================================*
|
||||
* lock_enqueue *
|
||||
*==========================================================================*/
|
||||
@@ -599,4 +589,3 @@ struct proc *rp; /* this process is no longer runnable */
|
||||
unlock(4);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -99,7 +99,6 @@ struct proc {
|
||||
#define isuserp(p) isusern((p)->p_nr)
|
||||
#define isusern(n) ((n) >= 0)
|
||||
|
||||
|
||||
/* The process table and pointers to process table slots. The pointers allow
|
||||
* faster access because now a process entry can be found by indexing the
|
||||
* pproc_addr array, while accessing an element i requires a multiplication
|
||||
|
||||
@@ -272,7 +272,6 @@ U16_t seg;
|
||||
return base;
|
||||
}
|
||||
|
||||
|
||||
/*=========================================================================*
|
||||
* phys2seg *
|
||||
*=========================================================================*/
|
||||
@@ -335,7 +334,6 @@ struct proc *pp;
|
||||
pp->p_reg.psw |= 0x3000;
|
||||
}
|
||||
|
||||
|
||||
/*==========================================================================*
|
||||
* alloc_segments *
|
||||
*==========================================================================*/
|
||||
@@ -380,4 +378,3 @@ register struct proc *rp;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -142,7 +142,6 @@ _PROTOTYPE( void phys2seg, (u16_t *seg, vir_bytes *off, phys_bytes phys));
|
||||
_PROTOTYPE( void enable_iop, (struct proc *pp) );
|
||||
_PROTOTYPE( void alloc_segments, (struct proc *rp) );
|
||||
|
||||
|
||||
#endif /* (CHIP == INTEL) */
|
||||
|
||||
#if (CHIP == M68000)
|
||||
|
||||
@@ -92,7 +92,6 @@ U16_t parmoff, parmsize; /* boot parameters offset and length */
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
/*==========================================================================*
|
||||
* get_value *
|
||||
*==========================================================================*/
|
||||
|
||||
@@ -53,7 +53,6 @@ PUBLIC int (*call_vec[NR_SYS_CALLS])(message *m_ptr);
|
||||
|
||||
FORWARD _PROTOTYPE( void initialize, (void));
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* sys_task *
|
||||
*===========================================================================*/
|
||||
@@ -101,7 +100,6 @@ PUBLIC void sys_task()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* initialize *
|
||||
*===========================================================================*/
|
||||
@@ -172,7 +170,6 @@ PRIVATE void initialize(void)
|
||||
map(SYS_GETINFO, do_getinfo); /* request system information */
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* get_priv *
|
||||
*===========================================================================*/
|
||||
@@ -200,7 +197,6 @@ int proc_type; /* system or user process flag */
|
||||
return(OK);
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* get_randomness *
|
||||
*===========================================================================*/
|
||||
@@ -233,7 +229,6 @@ int source;
|
||||
krandom.bin[source].r_next = (r_next + 1 ) % RANDOM_ELEMENTS;
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* send_sig *
|
||||
*===========================================================================*/
|
||||
@@ -252,7 +247,6 @@ int sig_nr; /* signal to be sent, 1 to _NSIG */
|
||||
lock_notify(SYSTEM, proc_nr);
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* cause_sig *
|
||||
*===========================================================================*/
|
||||
@@ -287,7 +281,6 @@ int sig_nr; /* signal to be sent, 1 to _NSIG */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* umap_bios *
|
||||
*===========================================================================*/
|
||||
@@ -318,7 +311,6 @@ vir_bytes bytes; /* # of bytes to be copied */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* umap_local *
|
||||
*===========================================================================*/
|
||||
@@ -377,7 +369,6 @@ vir_bytes bytes; /* # of bytes to be copied */
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* umap_remote *
|
||||
*===========================================================================*/
|
||||
@@ -457,4 +448,3 @@ vir_bytes bytes; /* # of bytes to copy */
|
||||
return(OK);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -64,4 +64,3 @@ register message *m_ptr; /* pointer to request message */
|
||||
}
|
||||
#endif /* (USE_VIRCOPY || USE_PHYSCOPY) */
|
||||
|
||||
|
||||
|
||||
@@ -57,5 +57,3 @@ register message *m_ptr; /* pointer to request message */
|
||||
}
|
||||
#endif /* USE_EXEC */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@ message *m_ptr; /* pointer to request message */
|
||||
return(EDONTREPLY);
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* clear_proc *
|
||||
*===========================================================================*/
|
||||
@@ -96,4 +95,3 @@ register struct proc *rc; /* slot of process to clean up */
|
||||
|
||||
#endif /* USE_EXIT */
|
||||
|
||||
|
||||
|
||||
@@ -43,4 +43,3 @@ message *m_ptr; /* pointer to request message */
|
||||
}
|
||||
#endif /* USE_GETKSIG */
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
#include "../system.h"
|
||||
|
||||
|
||||
#if USE_IRQCTL
|
||||
|
||||
FORWARD _PROTOTYPE(int generic_handler, (irq_hook_t *hook));
|
||||
@@ -48,7 +47,6 @@ register message *m_ptr; /* pointer to request message */
|
||||
disable_irq(&irq_hooks[irq_hook_id]);
|
||||
break;
|
||||
|
||||
|
||||
/* Control IRQ policies. Set a policy and needed details in the IRQ table.
|
||||
* This policy is used by a generic function to handle hardware interrupts.
|
||||
*/
|
||||
@@ -100,7 +98,6 @@ register message *m_ptr; /* pointer to request message */
|
||||
return(r);
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* generic_handler *
|
||||
*===========================================================================*/
|
||||
|
||||
@@ -27,4 +27,3 @@ register message *m_ptr;
|
||||
|
||||
#endif /* USE_MEMSET */
|
||||
|
||||
|
||||
|
||||
@@ -48,4 +48,3 @@ message *m_ptr; /* pointer to request message */
|
||||
}
|
||||
#endif /* USE_NEWMAP */
|
||||
|
||||
|
||||
|
||||
@@ -60,5 +60,3 @@ register message *m_ptr; /* pointer to request message */
|
||||
|
||||
#endif /* USE_SDEVIO */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -44,7 +44,6 @@ register message *m_ptr; /* pointer to request message */
|
||||
}
|
||||
if (index < 0) return(ENOSPC);
|
||||
|
||||
|
||||
if (! machine.protected) {
|
||||
selector = phys / HCLICK_SIZE;
|
||||
offset = phys % HCLICK_SIZE;
|
||||
|
||||
@@ -57,7 +57,6 @@ message *m_ptr; /* pointer to request message */
|
||||
return(OK);
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* cause_alarm *
|
||||
*===========================================================================*/
|
||||
|
||||
@@ -69,4 +69,3 @@ message *m_ptr; /* pointer to request message */
|
||||
}
|
||||
#endif /* USE_SIGRETURN */
|
||||
|
||||
|
||||
|
||||
@@ -14,4 +14,3 @@ message *m; /* pointer to request message */
|
||||
return(EBADREQUEST); /* illegal message type */
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@ PRIVATE pvb_pair_t *pvb = (pvb_pair_t *) vdevio_buf;
|
||||
PRIVATE pvw_pair_t *pvw = (pvw_pair_t *) vdevio_buf;
|
||||
PRIVATE pvl_pair_t *pvl = (pvl_pair_t *) vdevio_buf;
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* do_vdevio *
|
||||
*===========================================================================*/
|
||||
|
||||
@@ -119,4 +119,3 @@ PUBLIC struct boot_image image[] = {
|
||||
extern int dummy[(NR_BOOT_PROCS==sizeof(image)/sizeof(struct boot_image))?1:-1];
|
||||
extern int dummy[(BITCHUNK_BITS > NR_BOOT_PROCS - 1) ? 1 : -1];
|
||||
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#define END_OF_KMESS -1
|
||||
FORWARD _PROTOTYPE(void kputc, (int c));
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* panic *
|
||||
*===========================================================================*/
|
||||
@@ -46,7 +45,6 @@ int nr;
|
||||
prepare_shutdown(RBT_PANIC);
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* kprintf *
|
||||
*===========================================================================*/
|
||||
@@ -122,7 +120,6 @@ PUBLIC void kprintf(const char *fmt, ...) /* format to be printed */
|
||||
va_end(argp); /* end variable arguments */
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* kputc *
|
||||
*===========================================================================*/
|
||||
@@ -142,4 +139,3 @@ int c; /* character to append */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user