Changes to includes for VM, IOPL, logging. Increased _NR_PROCS, CLICK_SIZE is

now 4096.
This commit is contained in:
Philip Homburg
2005-09-30 12:47:03 +00:00
parent 5f7b803dcd
commit 31c1d6bf0d
6 changed files with 45 additions and 4 deletions

View File

@@ -216,8 +216,11 @@
# define SYS_TIMES (KERNEL_CALL + 25) /* sys_times() */
# define SYS_GETINFO (KERNEL_CALL + 26) /* sys_getinfo() */
# define SYS_ABORT (KERNEL_CALL + 27) /* sys_abort() */
# define SYS_IOPENABLE (KERNEL_CALL + 28) /* sys_enable_iop() */
# define SYS_VM_SETBUF (KERNEL_CALL + 29) /* sys_vm_setbuf() */
# define SYS_VM_MAP (KERNEL_CALL + 30) /* sys_vm_map() */
#define NR_SYS_CALLS 28 /* number of system calls */
#define NR_SYS_CALLS 31 /* number of system calls */
/* Field names for SYS_MEMSET, SYS_SEGCTL. */
#define MEM_PTR m2_p1 /* base */
@@ -408,5 +411,8 @@
# define DIAG_PRINT_BUF m1_p1
# define DIAG_BUF_COUNT m1_i1
# define DIAG_PROC_NR m1_i2
#define GET_KMESS 101 /* get kmess from TTY */
# define GETKM_PTR m1_p1
#endif /* _MINIX_COM_H */

View File

@@ -72,8 +72,8 @@
/* Memory is allocated in clicks. */
#if (CHIP == INTEL)
#define CLICK_SIZE 1024 /* unit in which memory is allocated */
#define CLICK_SHIFT 10 /* log2 of CLICK_SIZE */
#define CLICK_SIZE 4096 /* unit in which memory is allocated */
#define CLICK_SHIFT 12 /* log2 of CLICK_SIZE */
#endif
#if (CHIP == SPARC) || (CHIP == M68000)

View File

@@ -18,7 +18,7 @@
#define _PTR_SIZE _EM_WSIZE
#endif
#define _NR_PROCS 64
#define _NR_PROCS 100
#define _NR_SYS_PROCS 32
/* Set the CHIP type based on the machine selected. The symbol CHIP is actually

View File

@@ -26,6 +26,7 @@ struct reg86u;
_PROTOTYPE( int _taskcall, (int who, int syscallnr, message *msgptr));
_PROTOTYPE( int sys_abort, (int how, ...));
_PROTOTYPE( int sys_enable_iop, (int proc));
_PROTOTYPE( int sys_exec, (int proc, char *ptr,
char *aout, vir_bytes initpc));
_PROTOTYPE( int sys_fork, (int parent, int child));
@@ -37,6 +38,10 @@ _PROTOTYPE( int sys_svrctl, (int proc, int req, int priv,vir_bytes argp));
_PROTOTYPE( int sys_nice, (int proc, int priority));
_PROTOTYPE( int sys_int86, (struct reg86u *reg86p));
_PROTOTYPE( int sys_vm_setbuf, (phys_bytes base, phys_bytes size,
phys_bytes high));
_PROTOTYPE( int sys_vm_map, (int proc_nr, int do_map,
phys_bytes base, phys_bytes size, phys_bytes offset));
/* Shorthands for sys_sdevio() system call. */
#define sys_insb(port, proc_nr, buffer, count) \