Andy's formatting fixes.

This commit is contained in:
Ben Gras 2005-09-11 16:44:06 +00:00
parent f224cf091d
commit 5ae6f98dea
14 changed files with 210 additions and 210 deletions

View File

@ -7,9 +7,9 @@
#include <signal.h> #include <signal.h>
#include "proc.h" #include "proc.h"
/*==========================================================================* /*===========================================================================*
* exception * * exception *
*==========================================================================*/ *===========================================================================*/
PUBLIC void exception(vec_nr) PUBLIC void exception(vec_nr)
unsigned vec_nr; unsigned vec_nr;
{ {

View File

@ -34,9 +34,9 @@ PRIVATE vecaddr_t irq_vec[] = {
#define set_vec(nr, addr) ((void)0) #define set_vec(nr, addr) ((void)0)
#endif #endif
/*==========================================================================* /*===========================================================================*
* intr_init * * intr_init *
*==========================================================================*/ *===========================================================================*/
PUBLIC void intr_init(mine) PUBLIC void intr_init(mine)
int mine; int mine;
{ {
@ -86,9 +86,9 @@ int mine;
} }
} }
/*=========================================================================* /*===========================================================================*
* put_irq_handler * * put_irq_handler *
*=========================================================================*/ *===========================================================================*/
PUBLIC void put_irq_handler(hook, irq, handler) PUBLIC void put_irq_handler(hook, irq, handler)
irq_hook_t *hook; irq_hook_t *hook;
int irq; int irq;
@ -119,9 +119,9 @@ irq_handler_t handler;
irq_use |= 1 << irq; irq_use |= 1 << irq;
} }
/*=========================================================================* /*===========================================================================*
* rm_irq_handler * * rm_irq_handler *
*=========================================================================*/ *===========================================================================*/
PUBLIC void rm_irq_handler(hook) PUBLIC void rm_irq_handler(hook)
irq_hook_t *hook; irq_hook_t *hook;
{ {
@ -145,9 +145,9 @@ irq_hook_t *hook;
/* When the handler is not found, normally return here. */ /* When the handler is not found, normally return here. */
} }
/*==========================================================================* /*===========================================================================*
* intr_handle * * intr_handle *
*==========================================================================*/ *===========================================================================*/
PUBLIC void intr_handle(hook) PUBLIC void intr_handle(hook)
irq_hook_t *hook; irq_hook_t *hook;
{ {

View File

@ -166,9 +166,9 @@ PUBLIC void main()
restart(); restart();
} }
/*==========================================================================* /*===========================================================================*
* announce * * announce *
*==========================================================================*/ *===========================================================================*/
PRIVATE void announce(void) PRIVATE void announce(void)
{ {
/* Display the MINIX startup banner. */ /* Display the MINIX startup banner. */
@ -182,9 +182,9 @@ PRIVATE void announce(void)
#endif #endif
} }
/*==========================================================================* /*===========================================================================*
* prepare_shutdown * * prepare_shutdown *
*==========================================================================*/ *===========================================================================*/
PUBLIC void prepare_shutdown(how) PUBLIC void prepare_shutdown(how)
int how; int how;
{ {
@ -232,9 +232,9 @@ int how;
set_timer(&shutdown_timer, get_uptime() + HZ, shutdown); set_timer(&shutdown_timer, get_uptime() + HZ, shutdown);
} }
/*==========================================================================* /*===========================================================================*
* shutdown * * shutdown *
*==========================================================================*/ *===========================================================================*/
PRIVATE void shutdown(tp) PRIVATE void shutdown(tp)
timer_t *tp; timer_t *tp;
{ {

View File

@ -361,9 +361,9 @@ int dst; /* which process to notify */
return(OK); return(OK);
} }
/*==========================================================================* /*===========================================================================*
* lock_notify * * lock_notify *
*==========================================================================*/ *===========================================================================*/
PUBLIC int lock_notify(src, dst) PUBLIC int lock_notify(src, dst)
int src; /* sender of the notification */ int src; /* sender of the notification */
int dst; /* who is to be notified */ int dst; /* who is to be notified */
@ -559,9 +559,9 @@ PRIVATE void pick_proc()
} }
} }
/*==========================================================================* /*===========================================================================*
* lock_send * * lock_send *
*==========================================================================*/ *===========================================================================*/
PUBLIC int lock_send(dst, m_ptr) PUBLIC int lock_send(dst, m_ptr)
int dst; /* to whom is message being sent? */ int dst; /* to whom is message being sent? */
message *m_ptr; /* pointer to message buffer */ message *m_ptr; /* pointer to message buffer */
@ -574,9 +574,9 @@ message *m_ptr; /* pointer to message buffer */
return(result); return(result);
} }
/*==========================================================================* /*===========================================================================*
* lock_enqueue * * lock_enqueue *
*==========================================================================*/ *===========================================================================*/
PUBLIC void lock_enqueue(rp) PUBLIC void lock_enqueue(rp)
struct proc *rp; /* this process is now runnable */ struct proc *rp; /* this process is now runnable */
{ {
@ -586,9 +586,9 @@ struct proc *rp; /* this process is now runnable */
unlock(3); unlock(3);
} }
/*==========================================================================* /*===========================================================================*
* lock_dequeue * * lock_dequeue *
*==========================================================================*/ *===========================================================================*/
PUBLIC void lock_dequeue(rp) PUBLIC void lock_dequeue(rp)
struct proc *rp; /* this process is no longer runnable */ struct proc *rp; /* this process is no longer runnable */
{ {

View File

@ -74,9 +74,9 @@ FORWARD _PROTOTYPE( void int_gate, (unsigned vec_nr, vir_bytes offset,
FORWARD _PROTOTYPE( void sdesc, (struct segdesc_s *segdp, phys_bytes base, FORWARD _PROTOTYPE( void sdesc, (struct segdesc_s *segdp, phys_bytes base,
vir_bytes size) ); vir_bytes size) );
/*=========================================================================* /*===========================================================================*
* prot_init * * prot_init *
*=========================================================================*/ *===========================================================================*/
PUBLIC void prot_init() PUBLIC void prot_init()
{ {
/* Set up tables for protected mode. /* Set up tables for protected mode.
@ -191,9 +191,9 @@ PUBLIC void prot_init()
#endif #endif
} }
/*=========================================================================* /*===========================================================================*
* init_codeseg * * init_codeseg *
*=========================================================================*/ *===========================================================================*/
PUBLIC void init_codeseg(segdp, base, size, privilege) PUBLIC void init_codeseg(segdp, base, size, privilege)
register struct segdesc_s *segdp; register struct segdesc_s *segdp;
phys_bytes base; phys_bytes base;
@ -207,9 +207,9 @@ int privilege;
/* CONFORMING = 0, ACCESSED = 0 */ /* CONFORMING = 0, ACCESSED = 0 */
} }
/*=========================================================================* /*===========================================================================*
* init_dataseg * * init_dataseg *
*=========================================================================*/ *===========================================================================*/
PUBLIC void init_dataseg(segdp, base, size, privilege) PUBLIC void init_dataseg(segdp, base, size, privilege)
register struct segdesc_s *segdp; register struct segdesc_s *segdp;
phys_bytes base; phys_bytes base;
@ -222,9 +222,9 @@ int privilege;
/* EXECUTABLE = 0, EXPAND_DOWN = 0, ACCESSED = 0 */ /* EXECUTABLE = 0, EXPAND_DOWN = 0, ACCESSED = 0 */
} }
/*=========================================================================* /*===========================================================================*
* sdesc * * sdesc *
*=========================================================================*/ *===========================================================================*/
PRIVATE void sdesc(segdp, base, size) PRIVATE void sdesc(segdp, base, size)
register struct segdesc_s *segdp; register struct segdesc_s *segdp;
phys_bytes base; phys_bytes base;
@ -251,9 +251,9 @@ vir_bytes size;
#endif #endif
} }
/*=========================================================================* /*===========================================================================*
* seg2phys * * seg2phys *
*=========================================================================*/ *===========================================================================*/
PUBLIC phys_bytes seg2phys(seg) PUBLIC phys_bytes seg2phys(seg)
U16_t seg; U16_t seg;
{ {
@ -274,9 +274,9 @@ U16_t seg;
return base; return base;
} }
/*=========================================================================* /*===========================================================================*
* phys2seg * * phys2seg *
*=========================================================================*/ *===========================================================================*/
PUBLIC void phys2seg(seg, off, phys) PUBLIC void phys2seg(seg, off, phys)
u16_t *seg; u16_t *seg;
vir_bytes *off; vir_bytes *off;
@ -302,9 +302,9 @@ phys_bytes phys;
#endif #endif
} }
/*=========================================================================* /*===========================================================================*
* int_gate * * int_gate *
*=========================================================================*/ *===========================================================================*/
PRIVATE void int_gate(vec_nr, offset, dpl_type) PRIVATE void int_gate(vec_nr, offset, dpl_type)
unsigned vec_nr; unsigned vec_nr;
vir_bytes offset; vir_bytes offset;
@ -322,9 +322,9 @@ unsigned dpl_type;
#endif #endif
} }
/*=========================================================================* /*===========================================================================*
* enable_iop * * enable_iop *
*=========================================================================*/ *===========================================================================*/
PUBLIC void enable_iop(pp) PUBLIC void enable_iop(pp)
struct proc *pp; struct proc *pp;
{ {
@ -336,9 +336,9 @@ struct proc *pp;
pp->p_reg.psw |= 0x3000; pp->p_reg.psw |= 0x3000;
} }
/*==========================================================================* /*===========================================================================*
* alloc_segments * * alloc_segments *
*==========================================================================*/ *===========================================================================*/
PUBLIC void alloc_segments(rp) PUBLIC void alloc_segments(rp)
register struct proc *rp; register struct proc *rp;
{ {

View File

@ -15,10 +15,9 @@
#include <string.h> #include <string.h>
FORWARD _PROTOTYPE( char *get_value, (_CONST char *params, _CONST char *key)); FORWARD _PROTOTYPE( char *get_value, (_CONST char *params, _CONST char *key));
/*===========================================================================*
/*==========================================================================*
* cstart * * cstart *
*==========================================================================*/ *===========================================================================*/
PUBLIC void cstart(cs, ds, mds, parmoff, parmsize) PUBLIC void cstart(cs, ds, mds, parmoff, parmsize)
U16_t cs, ds; /* kernel code and data segment */ U16_t cs, ds; /* kernel code and data segment */
U16_t mds; /* monitor data segment */ U16_t mds; /* monitor data segment */
@ -92,9 +91,10 @@ U16_t parmoff, parmsize; /* boot parameters offset and length */
*/ */
} }
/*==========================================================================* /*===========================================================================*
* get_value * * get_value *
*==========================================================================*/ *===========================================================================*/
PRIVATE char *get_value(params, name) PRIVATE char *get_value(params, name)
_CONST char *params; /* boot monitor parameters */ _CONST char *params; /* boot monitor parameters */
_CONST char *name; /* key to look up */ _CONST char *name; /* key to look up */

View File

@ -391,9 +391,9 @@ vir_bytes bytes; /* # of bytes to be copied */
return(fm->mem_phys + (phys_bytes) vir_addr); return(fm->mem_phys + (phys_bytes) vir_addr);
} }
/*==========================================================================* /*===========================================================================*
* virtual_copy * * virtual_copy *
*==========================================================================*/ *===========================================================================*/
PUBLIC int virtual_copy(src_addr, dst_addr, bytes) PUBLIC int virtual_copy(src_addr, dst_addr, bytes)
struct vir_addr *src_addr; /* source virtual address */ struct vir_addr *src_addr; /* source virtual address */
struct vir_addr *dst_addr; /* destination virtual address */ struct vir_addr *dst_addr; /* destination virtual address */