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 "proc.h"
/*==========================================================================*
/*===========================================================================*
* exception *
*==========================================================================*/
*===========================================================================*/
PUBLIC void exception(vec_nr)
unsigned vec_nr;
{

View File

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

View File

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

View File

@ -361,9 +361,9 @@ int dst; /* which process to notify */
return(OK);
}
/*==========================================================================*
/*===========================================================================*
* lock_notify *
*==========================================================================*/
*===========================================================================*/
PUBLIC int lock_notify(src, dst)
int src; /* sender of the notification */
int dst; /* who is to be notified */
@ -559,9 +559,9 @@ PRIVATE void pick_proc()
}
}
/*==========================================================================*
/*===========================================================================*
* lock_send *
*==========================================================================*/
*===========================================================================*/
PUBLIC int lock_send(dst, m_ptr)
int dst; /* to whom is message being sent? */
message *m_ptr; /* pointer to message buffer */
@ -574,9 +574,9 @@ message *m_ptr; /* pointer to message buffer */
return(result);
}
/*==========================================================================*
/*===========================================================================*
* lock_enqueue *
*==========================================================================*/
*===========================================================================*/
PUBLIC void lock_enqueue(rp)
struct proc *rp; /* this process is now runnable */
{
@ -586,9 +586,9 @@ struct proc *rp; /* this process is now runnable */
unlock(3);
}
/*==========================================================================*
/*===========================================================================*
* lock_dequeue *
*==========================================================================*/
*===========================================================================*/
PUBLIC void lock_dequeue(rp)
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,
vir_bytes size) );
/*=========================================================================*
/*===========================================================================*
* prot_init *
*=========================================================================*/
*===========================================================================*/
PUBLIC void prot_init()
{
/* Set up tables for protected mode.
@ -191,9 +191,9 @@ PUBLIC void prot_init()
#endif
}
/*=========================================================================*
/*===========================================================================*
* init_codeseg *
*=========================================================================*/
*===========================================================================*/
PUBLIC void init_codeseg(segdp, base, size, privilege)
register struct segdesc_s *segdp;
phys_bytes base;
@ -207,9 +207,9 @@ int privilege;
/* CONFORMING = 0, ACCESSED = 0 */
}
/*=========================================================================*
/*===========================================================================*
* init_dataseg *
*=========================================================================*/
*===========================================================================*/
PUBLIC void init_dataseg(segdp, base, size, privilege)
register struct segdesc_s *segdp;
phys_bytes base;
@ -222,9 +222,9 @@ int privilege;
/* EXECUTABLE = 0, EXPAND_DOWN = 0, ACCESSED = 0 */
}
/*=========================================================================*
/*===========================================================================*
* sdesc *
*=========================================================================*/
*===========================================================================*/
PRIVATE void sdesc(segdp, base, size)
register struct segdesc_s *segdp;
phys_bytes base;
@ -251,9 +251,9 @@ vir_bytes size;
#endif
}
/*=========================================================================*
/*===========================================================================*
* seg2phys *
*=========================================================================*/
*===========================================================================*/
PUBLIC phys_bytes seg2phys(seg)
U16_t seg;
{
@ -274,9 +274,9 @@ U16_t seg;
return base;
}
/*=========================================================================*
/*===========================================================================*
* phys2seg *
*=========================================================================*/
*===========================================================================*/
PUBLIC void phys2seg(seg, off, phys)
u16_t *seg;
vir_bytes *off;
@ -302,9 +302,9 @@ phys_bytes phys;
#endif
}
/*=========================================================================*
/*===========================================================================*
* int_gate *
*=========================================================================*/
*===========================================================================*/
PRIVATE void int_gate(vec_nr, offset, dpl_type)
unsigned vec_nr;
vir_bytes offset;
@ -322,9 +322,9 @@ unsigned dpl_type;
#endif
}
/*=========================================================================*
/*===========================================================================*
* enable_iop *
*=========================================================================*/
*===========================================================================*/
PUBLIC void enable_iop(pp)
struct proc *pp;
{
@ -336,9 +336,9 @@ struct proc *pp;
pp->p_reg.psw |= 0x3000;
}
/*==========================================================================*
/*===========================================================================*
* alloc_segments *
*==========================================================================*/
*===========================================================================*/
PUBLIC void alloc_segments(rp)
register struct proc *rp;
{

View File

@ -15,10 +15,9 @@
#include <string.h>
FORWARD _PROTOTYPE( char *get_value, (_CONST char *params, _CONST char *key));
/*==========================================================================*
/*===========================================================================*
* cstart *
*==========================================================================*/
*===========================================================================*/
PUBLIC void cstart(cs, ds, mds, parmoff, parmsize)
U16_t cs, ds; /* kernel code and data segment */
U16_t mds; /* monitor data segment */
@ -92,9 +91,10 @@ U16_t parmoff, parmsize; /* boot parameters offset and length */
*/
}
/*==========================================================================*
/*===========================================================================*
* get_value *
*==========================================================================*/
*===========================================================================*/
PRIVATE char *get_value(params, name)
_CONST char *params; /* boot monitor parameters */
_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);
}
/*==========================================================================*
/*===========================================================================*
* virtual_copy *
*==========================================================================*/
*===========================================================================*/
PUBLIC int virtual_copy(src_addr, dst_addr, bytes)
struct vir_addr *src_addr; /* source virtual address */
struct vir_addr *dst_addr; /* destination virtual address */