rgrimes
0061ab21bf
KPTDI_LAST renamed to KPTDI
1993-10-12 15:09:37 +00:00
rgrimes
e648a67927
Eliminate definition of I386_PAGE_SIZE and use NBPG instead
...
Cleaned up tabs vs spaces after #define to make file consistent.
Removed now unused definitions of I386_PAGE_SIZE and I386_PDR_SIZE
Note That these two where unused and had the wrong values anyway!
Changed I386_KPDES to NKPDE
Changed I386_UPDES to NUPDE
Redid constant assignments of *PTDI's to be sizeable and relative.
1993-10-12 13:58:01 +00:00
rgrimes
511b3b040f
Fixed PHYSTOKV, addition operator on pointers is the wrong thing to do
...
here. This is really a crock, but it works.
1993-10-12 12:08:16 +00:00
rgrimes
24ca0028ac
Add PHYSTOKV used in scsi drivers with a correct definition based on
...
KERNBASE.
Change #define<tab> to #define<space> on lines that had it wrong
1993-10-12 07:13:12 +00:00
dg
511031c574
Correct spelling of "SHMMAXPGS" so the config override will actually work.
1993-10-09 15:29:04 +00:00
rgrimes
4cea6b395d
All:
...
Remove patch kit headers, and add $Id$
This is mostly to align some more code with NetBSD.
cpu.h:
Remove the old function vs. include configuration stuff that was
ifdefed out when we went to inline functions.
Remove the define of resettodr that made it a nop, there is
already a function that makes it a nop, no need to #define one.
Remove the #defines of processor types, they are now defined
in cputypes.h, #include that file.
Add struct cpu_nameclass for support of cpu types.
frame.h:
include sys/signal.h, it will be needed in the future.
put the sigframe structure here that was in machdep.c
pcb.h:
Add multiple inclusion protection.
Add pcb_ldt and pcb_ldt_len to pcb structure, this is for the
user mode ldt.
1993-10-08 20:51:00 +00:00
rgrimes
212a849754
Define the types of cpu's there are, from NetBSD
1993-10-08 13:40:54 +00:00
rgrimes
4de8a9b207
Fix definitions to be in terms of a minimum number of constants by
...
using the SHIFT value as the basis for the other values, for example
instead of:
#define NBPG 4096
#define PGSHIFT 12
use:
#define PGSHIFT 12
#define NBPG (1 << PGSHIFT)
===================================================================
RCS file: /a/cvs/386BSD/src/sys/i386/include/param.h,v
retrieving revision 1.3
diff -c -r1.3 param.h
*** 1.3 1993/10/08 12:49:55
--- param.h 1993/10/08 12:53:19
***************
*** 52,76 ****
#define ALIGNBYTES (sizeof(int) - 1)
#define ALIGN(p) (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES)
- #define NBPG 4096 /* bytes/page */
- #define PGOFSET (NBPG-1) /* byte offset into page */
#define PGSHIFT 12 /* LOG2(NBPG) */
#define NPTEPG (NBPG/(sizeof (struct pte)))
- #define NBPDR (1024*NBPG) /* bytes/page dir */
- #define PDROFSET (NBPDR-1) /* byte offset into page dir */
#define PDRSHIFT 22 /* LOG2(NBPDR) */
#define KERNBASE 0xFE000000 /* start of kernel virtual */
#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)
! #define DEV_BSIZE 512
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
#define BLKDEV_IOSIZE 2048
#define MAXPHYS (64 * 1024) /* max raw I/O transfer size */
- #define CLSIZE 1
#define CLSIZELOG2 0
/* NOTE: SSIZE, SINCR and UPAGES must be multiples of CLSIZE */
#define SSIZE 1 /* initial stack size/NBPG */
--- 52,79 ----
#define ALIGNBYTES (sizeof(int) - 1)
#define ALIGN(p) (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES)
#define PGSHIFT 12 /* LOG2(NBPG) */
+ #define NBPG (1 << PGSHIFT) /* bytes/page */
+ #define PGOFSET (NBPG-1) /* byte offset into page */
#define NPTEPG (NBPG/(sizeof (struct pte)))
#define PDRSHIFT 22 /* LOG2(NBPDR) */
+ #define NBPDR (1 << PDRSHIFT) /* bytes/page dir */
+ #define PDROFSET (NBPDR-1) /* byte offset into page dir */
#define KERNBASE 0xFE000000 /* start of kernel virtual */
#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)
! #define KERNSIZE 0x00C00000 /* size of kernel virtual */
!
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
+ #define DEV_BSIZE (1 << DEV_BSHIFT)
+
#define BLKDEV_IOSIZE 2048
#define MAXPHYS (64 * 1024) /* max raw I/O transfer size */
#define CLSIZELOG2 0
+ #define CLSIZE (1 << CLSIZELOG2)
/* NOTE: SSIZE, SINCR and UPAGES must be multiples of CLSIZE */
#define SSIZE 1 /* initial stack size/NBPG */
***************
*** 92,99 ****
#ifndef MCLSHIFT
#define MCLSHIFT 11 /* convert bytes to m_buf clusters */
#endif /* MCLSHIFT */
! #define MCLBYTES (1 << MCLSHIFT) /* size of a m_buf cluster */
! #define MCLOFSET (MCLBYTES - 1) /* offset within a m_buf cluster */
#ifndef NMBCLUSTERS
#ifdef GATEWAY
--- 95,102 ----
#ifndef MCLSHIFT
#define MCLSHIFT 11 /* convert bytes to m_buf clusters */
#endif /* MCLSHIFT */
! #define MCLBYTES (1 << MCLSHIFT) /* size of an m_buf cluster */
! #define MCLOFSET (MCLBYTES - 1) /* offset within an m_buf cluster */
#ifndef NMBCLUSTERS
#ifdef GATEWAY
1993-10-08 13:01:34 +00:00
rgrimes
8d3bc0116c
Removed patch kit header. Cleaned up tabbing and removed extra blank
...
lines to match NetBSD. Added $Id$.
Added MID_MACHINE from NetBSD.
Removed definition of DELAY() for non-kernel soures.
Fixed some small english errors that had been corrected in NetBSD.
File is now identical to NetBSD's, but will be changing soon for some
of my clean up work.
1993-10-08 12:49:55 +00:00
rgrimes
50919a0249
Architecture specific syscalls (i386) from NetBSD
1993-10-08 11:31:40 +00:00
jkh
cac43a07fc
Latest changes for XFree86 2.0
1993-10-04 22:21:10 +00:00
rgrimes
0931dcbc5d
New resting home for console.h, it is machine specific.
1993-10-01 00:00:43 +00:00
rgrimes
a7deae3c0f
define SHMMAXPGS where it is suppose to be, you can over ride this with
...
a kernel config options "SHMAXPGS=xxx", default is currently 64 pages
due to limit kernel map space.
1993-09-27 00:36:57 +00:00
rgrimes
9b89fe5904
>From Theo Derradt
...
This is a machine specific include, it belongs in the machine specific
directory.
1993-09-08 19:29:54 +00:00
rgrimes
0665a2b628
Increased stack size to 8MB just to be on the real safe side.
1993-09-01 09:38:32 +00:00
rgrimes
76c1049755
Changed MAXSSIZ from MAXDSIZ to 2MB
1993-08-28 09:19:01 +00:00
alm
3d93ce434a
prefixed inline functions' parameter names with _ and declared
...
the return type explicitly.
1993-08-27 05:09:38 +00:00
alm
19f81735f5
adding fpgetround(3) IEEE floating point environment support
1993-08-25 09:01:44 +00:00
nate
5c07e28f91
fts(3) integration patches
1993-07-28 01:42:17 +00:00
dg
ed0c248040
* Applied fixes from Bruce Evans to fix COW bugs, >1MB kernel loading,
...
profiling, and various protection checks that cause security holes
and system crashes.
* Changed min/max/bcmp/ffs/strlen to be static inline functions
- included from cpufunc.h in via systm.h. This change
improves performance in many parts of the kernel - up to 5% in the
networking layer alone. Note that this requires systm.h to be included
in any file that uses these functions otherwise it won't be able to
find them during the load.
* Fixed incorrect call to splx() in if_is.c
* Fixed bogus variable assignment to splx() in if_ed.c
1993-07-27 10:52:31 +00:00
root
a0b680d9d9
Increased default data size (DFLDSIZ) to 16MB. Need to rebuild libutil,
...
kernel, ps and w for this to work!
1993-07-03 21:21:35 +00:00
nate
be449bcfcc
Added (protection) around negative constants, in case a program wants
...
to use the negative of that constant.
#define NEG_NUM -3
#define SAFE_NEG_NUM (-3)
i = -NEG_NUM; /* Error --3 */
j = -SAFE_NEG_NUM /* Okay -(-3) */
1993-06-30 22:59:18 +00:00
nate
4bbfb3867b
Setting up for updated (usable) FPE atof/vfprintf/vfscanf fixes
1993-06-29 13:34:33 +00:00
rgrimes
bcfa18552e
This commit was generated by cvs2svn to compensate for changes in r4,
...
which included commits to RCS files with non-trunk default branches.
1993-06-12 14:58:17 +00:00
rgrimes
25062ba061
Initial import, 0.1 + pk 0.2.4-B1
1993-06-12 14:58:17 +00:00
rgrimes
89bebeef18
Initial import, 0.1 + pk 0.2.4-B1
1993-06-12 14:58:17 +00:00