Yoshihiro Takahashi
3f64e5a6c2
MFi386: sys/i386/i386/machdep.c revisions 1.481 and 1.482
2001-10-30 00:53:19 +00:00
Yoshihiro Takahashi
32e2324497
Removed pmc_isa_identify function. It is not needed.
...
Submitted by: takawata
2001-10-28 04:16:50 +00:00
Jonathan Lemon
553b79aa63
cn_tab no longer exists, use cnadd() to add a console device. Note that
...
this may result in duplicate console output in some cases.
2001-10-24 18:30:05 +00:00
Yoshihiro Takahashi
6cac891491
Added the pmc driver which supports power management controller of
...
old NEC PC-98NOTE.
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
MFC after: 1 week
2001-10-24 14:46:40 +00:00
Akio Morita
cfb3969378
fix broken `compat_atdisk'(replace raw device name with block device's).
...
Reviewed by: nyan
MFC after: 3 days
2001-10-23 09:39:09 +00:00
Akio Morita
5f44a44380
Fix compile error of the case using `LINE30' option.
...
Reviewed by: nyan
MFC after: 3 days
2001-10-23 08:54:50 +00:00
Warner Losh
d75c1b4a90
First commit after a repo copy of isa/sio* -> dev/sio:
...
Move sio from isa/sio.c to dev/sio/sio.c. The next step is to break
out the front end attachments, improve support for these parts on
different busses, and maybe, if we're lucky, merging in pc98 support.
It will also be MI and live in conf/files rather than files.*.
Approved by: bde
Tested with: i386, pc98
2001-10-22 02:48:38 +00:00
Bruce Evans
7dd43330b3
Use the i386 version of npx.c. It has been merged with the pc98 version.
...
Approved by: nyan
Not tested by: bde
2001-10-21 06:14:12 +00:00
Matt Jacob
8c7c272c5a
Remove wx.
2001-10-20 18:50:31 +00:00
Yoshihiro Takahashi
00da2ef3cc
MFi386: sys/i386/isa/npx.c revisions from 1.114 to 1.116
2001-10-19 12:30:16 +00:00
Yoshihiro Takahashi
f89c65e5ab
Changed IO_NPXSIZE to 8
2001-10-19 12:24:45 +00:00
Yoshihiro Takahashi
0886808eda
MFi386: sys/i386/isa/clock.c revision 1.177
2001-10-19 11:52:49 +00:00
Yoshihiro Takahashi
0db7b6f691
MFi386: sys/i386/isa/pcaudio.c revision 1.63
2001-10-19 11:50:00 +00:00
Yoshihiro Takahashi
2e8727d53d
Merged from sys/isa/sio.c revisions from 1.344 to 1.347
2001-10-19 11:48:47 +00:00
Yoshihiro Takahashi
dee072b6ba
MFi386: sys/i386/conf/GENERIC revision 1.320
2001-10-19 11:46:13 +00:00
Matt Jacob
aaeac4f6c3
Make SCSI changer and SES devices standard in generic kernels.
...
Reviewed by: ken@kdm.org
2001-10-16 22:22:58 +00:00
Yoshihiro Takahashi
f2eeb19063
Rewrite the pc98 bus_space stuff.
...
The type of bus_space_tag_t is now a pointer to bus_space_tag structure,
and the bus_space_tag structure saves pointers to functions for direct
access and relocate access.
Added bsh_bam member to the bus_space_handle structure, it saves access
method either direct access or relocate access which is called by
bus_space_* functions.
Added the mecia device support. If the bs_da and bs_ra in bus tag are set
NEPC_io_space_tag and NEPC_mem_space_tag respectively, new bus_space stuff
changes the register of mecia automatically for 16bit access.
Obtained from: NetBSD/pc98
2001-10-07 10:04:18 +00:00
Robert Watson
e8a340cd9a
o Modify pc98 syscons code to use securelevel_gt() instead of
...
direct variable checks. (Yet another API to perform direct hardware I/O).
Obtained from: TrustedBSD Project
2001-09-26 20:26:32 +00:00
Brooks Davis
2f65332817
The faith(4) device is no longer a count device so don't specify a count.
2001-09-25 18:56:40 +00:00
Yoshihiro Takahashi
17be0bb430
- Added #include <sys/systm.h>
...
- Cosmetic change
2001-09-24 06:41:06 +00:00
David E. O'Brien
090905a55c
+ Fix misplacement of `txp'
...
+ Document our -CURRENT debugging bits
2001-09-24 03:23:48 +00:00
Peter Wemm
eb25edbda3
Cleanup and split of nfs client and server code.
...
This builds on the top of several repo-copies.
2001-09-18 23:32:09 +00:00
John Baldwin
659209e636
Whitespace fixes.
2001-09-18 21:05:04 +00:00
Yoshihiro Takahashi
aadcbac104
MFi386: sys/isa/fd.c revision from 1.205 to 1.219.
2001-09-16 12:39:59 +00:00
Yoshihiro Takahashi
07468e79b7
Allocate i/o and memory resources using gdc driver.
2001-09-16 12:38:39 +00:00
Yoshihiro Takahashi
21c8480091
MFi386: added comment for ed driver.
2001-09-16 05:34:34 +00:00
Yoshihiro Takahashi
11dbeb93db
MFi386: cosmetic changes.
2001-09-16 05:34:05 +00:00
Yoshihiro Takahashi
096048af92
MFi386: sys/isa/sio.c revision 1.301, 1.336, 1.337, 1.338, 1.339 and 1.342.
...
Removed unnecessary PnP moden entries.
2001-09-16 05:33:07 +00:00
Yoshihiro Takahashi
accd559318
MFi386: sys/i386/isa/pcaudio.c revision 1.59 and 1.61.
2001-09-16 05:30:59 +00:00
Yoshihiro Takahashi
f058eb7562
MFi386: sys/i386/isa/mse.c revision 1.54 and 1.55.
2001-09-16 05:30:08 +00:00
Yoshihiro Takahashi
555c5bb9dd
MFi386: sys/i386/isa/clock.c revision 1.175 and 1.176.
2001-09-16 05:29:27 +00:00
Yoshihiro Takahashi
dc27775f75
Added (commented out) ACPI attachment.
2001-09-16 05:28:16 +00:00
Yoshihiro Takahashi
6559a1844a
MFi386: removed IDE_DELAY option.
2001-09-16 05:24:05 +00:00
Yoshihiro Takahashi
dd4c3e48b0
Merged from sys/i386/isa/pcaudio.c revision 1.62 (KSE changes).
2001-09-15 15:37:52 +00:00
Yoshihiro Takahashi
104ec74435
Merged from sys/i386/apm/apm.c revision 1.123 (KSE changes).
2001-09-15 15:33:28 +00:00
Warner Losh
4c1fc1b219
I don't think pc98 has acpi at all, so ifdef the acpi attachments for
...
now.
2001-09-15 00:03:32 +00:00
Warner Losh
a9649ce6be
Merge sys/isa/sio.c 1.343
...
KSE changes
Reviewed by: julian, bde, jhb
2001-09-14 05:05:08 +00:00
Warner Losh
5fb0e81d8b
Merge from sys/dev/syscons/syscons.c 1.373
...
kse changes
# Note: There are a number of trivial and non-trivial diffs between this and
# sys/dev/syscons/syscons.c that I didn't try to account for.
Reviewed by: julian, bde, jhb
2001-09-14 05:02:12 +00:00
Warner Losh
06da1def0c
Merge from sys/i386/isa/sprk.c 1.50, 1.51
...
KSE changes and acpi attachment
Reviewed by: julian, bde, jhb
2001-09-14 04:58:30 +00:00
Warner Losh
2895a1020c
Merge KSE changes from sys/dev/syscons/scterm-sc.c 1.17
...
# there are more "trivial" diffs in this file that have accumulated over time
# and I didn't try to fix those.
Reviewed by: julian, bde, jhb
2001-09-14 04:54:38 +00:00
Warner Losh
da4e3cd357
KSE changes for olpt driver
...
Reviewed by: julian, bde, jhb
2001-09-14 04:50:27 +00:00
Warner Losh
58be6f3ff5
Merged sys/i386/isa/npx.c 1.110, 1.111, 1.112 KSE
...
Reviewed by: julian, bde, jhb
2001-09-14 04:46:57 +00:00
Warner Losh
4417ce7d9e
Changes necessary for KSE world
...
Reivewed by: julian, bde, jhb
2001-09-14 04:35:50 +00:00
Warner Losh
e8b6d44e89
Merge changes from sys/i386/isa/mse.c 1.56 and other tweaks for KSE
...
Reviewed by: julian, kde, jhb
2001-09-14 04:34:54 +00:00
Warner Losh
8ed1ddc825
Merge from sys/isa/fd.c 1.221 and a few minor tweaks to make compile
...
with the post KSE world.
Reviewed by: julian, bde, jhb
2001-09-14 04:30:39 +00:00
Warner Losh
2fb670e0b5
Merge from sys/i386/i386/machdep.c 1.480 (Julian's KSE changes)
...
Reviewed by: julian, bde, jhb
2001-09-14 04:27:42 +00:00
Julian Elischer
b40ce4165d
KSE Milestone 2
...
Note ALL MODULES MUST BE RECOMPILED
make the kernel aware that there are smaller units of scheduling than the
process. (but only allow one thread per process at this time).
This is functionally equivalent to teh previousl -current except
that there is a thread associated with each process.
Sorry john! (your next MFC will be a doosie!)
Reviewed by: peter@freebsd.org , dillon@freebsd.org
X-MFC after: ha ha ha ha
2001-09-12 08:38:13 +00:00
KATO Takenori
d92580b608
Merged from sys/i386/i386/machdep.c revision 1.479.
2001-09-12 08:15:24 +00:00
Peter Wemm
cfbf880deb
Zap #if 0'ed map init code that got moved to the MI area.
...
Convert the powerpc tree to use the common code.
2001-09-04 08:42:35 +00:00
Takeshi Shibagaki
5f5e1ff3b1
Always turned on 8bit access card support for the fe driver
...
both i386/pc98, so options FE_8BIT_SUPPORT was deleted.
Reviewed by: nyan
2001-09-02 13:05:00 +00:00
Peter Wemm
76cb0cadf1
Enable hardwiring of things like tunables from embedded enironments
...
that do not start from loader(8).
2001-08-27 05:11:53 +00:00
Peter Wemm
268bdb43f9
Optionize UPAGES for the i386. As part of this I split some of the low
...
level implementation stuff out of machine/globaldata.h to avoid exposing
UPAGES to lots more places. The end result is that we can double
the kernel stack size with 'options UPAGES=4' etc.
This is mainly being done for the benefit of a MFC to RELENG_4 at some
point. -current doesn't really need this so much since each interrupt
runs on its own kstack.
2001-08-25 02:20:02 +00:00
Peter Wemm
85ceedd60f
Fix a #endif misplacement in 1.231 due to misapplied patch
...
Pointy hat to: peter
2001-08-23 01:50:31 +00:00
Peter Wemm
520f648f42
Merge i386/machdep.c rev 1.474: dont overextend %cs. (finally, it doesn't
...
conflict with unmerged changes)
2001-08-23 01:47:26 +00:00
Peter Wemm
2ddb1aff19
Merge i386/machdep.c rev 1.469: whitespace changes to fit 80 columns
...
Forgotten by: jhb
2001-08-23 01:46:23 +00:00
Peter Wemm
2fb7d2e4c2
Merge i386/machdep.c rev 1.468: make breakpoint/trace interrupt instead
...
of trap gates
Forgotten by: bde
2001-08-23 01:43:38 +00:00
Peter Wemm
10abeae984
Merge 386/machdep.c rev 1.467: fix bugs/miscalculations
...
Forgotten by: iwasaki
2001-08-23 01:42:21 +00:00
Peter Wemm
b65110f80b
Identical to i386/machdep.c rev 1.473: move submap initialization to MI.
2001-08-23 01:36:54 +00:00
Peter Wemm
60e562536f
Merge i386/machdep.c rev 1.472: Fix bug in physmem_est and maxbcache
...
calculation
Forgotten by: dillon
2001-08-23 01:34:35 +00:00
Peter Wemm
748e7247a1
Merge i386/machdep.c rev 1.470. Limit KVM for buffer cache etc.
...
Forgotten by: dillon
2001-08-23 01:30:51 +00:00
Peter Wemm
3b703181e3
Dont compile in SSE fxsave/fxrstor instructions if CPU_ENABLE_SSE isn't
...
active.
2001-08-23 01:03:56 +00:00
Peter Wemm
e8ebc08f80
Make COMPAT_43 optional again. XXX we need COMPAT_FBSD3 etc for this
...
stuff.
2001-08-21 02:32:59 +00:00
John Baldwin
688ebe120c
- Close races with signals and other AST's being triggered while we are in
...
the process of exiting the kernel. The ast() function now loops as long
as the PS_ASTPENDING or PS_NEEDRESCHED flags are set. It returns with
preemption disabled so that any further AST's that arrive via an
interrupt will be delayed until the low-level MD code returns to user
mode.
- Use u_int's to store the tick counts for profiling purposes so that we
do not need sched_lock just to read p_sticks. This also closes a
problem where the call to addupc_task() could screw up the arithmetic
due to non-atomic reads of p_sticks.
- Axe need_proftick(), aston(), astoff(), astpending(), need_resched(),
clear_resched(), and resched_wanted() in favor of direct bit operations
on p_sflag.
- Fix up locking with sched_lock some. In addupc_intr(), use sched_lock
to ensure pr_addr and pr_ticks are updated atomically with setting
PS_OWEUPC. In ast() we clear pr_ticks atomically with clearing
PS_OWEUPC. We also do not grab the lock just to test a flag.
- Simplify the handling of Giant in ast() slightly.
Reviewed by: bde (mostly)
2001-08-10 22:53:32 +00:00
Peter Wemm
2aca0c28d3
Zap 'ptrace(PT_READ_U, ...)' and 'ptrace(PT_WRITE_U, ...)' since they
...
are a really nasty interface that should have been killed long ago
when 'ptrace(PT_[SG]ETREGS' etc came along. The entity that they
operate on (struct user) will not be around much longer since it
is part-per-process and part-per-thread in a post-KSE world.
gdb does not actually use this except for the obscure 'info udot'
command which does a hexdump of as much of the child's 'struct user'
as it can get. It carries its own #defines so it doesn't break
compiles.
2001-08-08 05:25:15 +00:00
Yoshihiro Takahashi
e993b51722
Merged from sys/dev/syscons/syscons.c revisions 1.370, 1.371 and 1.372.
2001-08-07 12:23:47 +00:00
Yoshihiro Takahashi
094d43411f
Merged from sys/dev/syscons/scterm-sc.c revision 1.16.
2001-08-07 12:10:17 +00:00
Yoshihiro Takahashi
baa444b77e
Removed PLIP support.
2001-07-31 03:39:35 +00:00
Yoshihiro Takahashi
f7827e0a6e
Convert the olpt driver to using new-bus stuff.
2001-07-29 11:11:45 +00:00
Yoshihiro Takahashi
8ea2602a0d
Merged from sys/dev/syscons/syscons.c revisions 1.367 and 1.368.
2001-07-29 10:52:07 +00:00
KATO Takenori
1419e0df32
Merged from sys/i86/isa/npx.c revision 1.107.
2001-07-28 13:08:31 +00:00
Peter Wemm
bd40659f85
Call the early tunable setup functions as soon as kern_envp is available.
...
Some things depend on hz being set not long after this.
2001-07-26 23:06:44 +00:00
Yoshihiro Takahashi
28b975bf3d
Speed up console driver.
...
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
2001-07-26 03:07:07 +00:00
KATO Takenori
03b6f6e5ed
Merged from sys/i386/conf/GENERIC revision 1.315.
2001-07-24 11:24:58 +00:00
Yoshihiro Takahashi
99df3e3b1a
Integrate fdc.h into fd.c.
2001-07-23 13:07:24 +00:00
KATO Takenori
499438b356
Merged from sys/i386/isa/npx.c revision 1.106.
2001-07-19 09:07:19 +00:00
KATO Takenori
e6a23687f6
Merged from sys/i386/isa/npx.c revision 1.105.
2001-07-19 09:06:33 +00:00
KATO Takenori
efa1251026
Merged from sys/i386/i386/machdep.c revisions 1.462 and 1.464.
2001-07-19 08:51:08 +00:00
Yoshihiro Takahashi
2308cfa4fc
Fixed conflict with sys/dev/syscons/syscons.h.
...
Submitted by: yokota
2001-07-14 08:07:26 +00:00
Yoshihiro Takahashi
77663c3006
- Refine pc98 supports.
...
- Use bus_space stuff.
- Rename FDO_* -> FDC_* (obtained from NetBSD/pc98)
2001-07-14 04:19:09 +00:00
Yoshihiro Takahashi
cde2e82802
Added epson_inw function.
2001-07-14 04:14:29 +00:00
Yoshihiro Takahashi
c713c25620
Merged from the following changes.
...
sys/dev/syscons/scvgarndr.c revision 1.11
sys/dev/syscons/scvtb.c revision 1.8
sys/dev/syscons/syscons.c revisions 1.361, 1.363, 1.364, 1.365 and 1.366
sys/isa/atkbd_isa.c revision 1.9
sys/isa/syscons_isa.c revision 1.17
2001-07-14 03:26:02 +00:00
Yoshihiro Takahashi
dd080a65a2
Merged from sys/i386/conf/GENERIC revision 1.313.
2001-07-14 02:45:53 +00:00
Yoshihiro Takahashi
654739ff90
Added (commented out) audio driver.
2001-07-14 02:44:51 +00:00
Dima Dorfman
2e1b1231fc
`pcn' supports AMD Am79C97x cards, not Am79C79x cards.
...
PR: 28946
Submitted by: Ryuichiro Imura <imura@ryu16.org>
2001-07-13 13:34:08 +00:00
Peter Wemm
ad1b7ffaee
Fix another missed pcb_savefpu reference (inside NPX_DEBUG)
2001-07-12 12:21:53 +00:00
Peter Wemm
adc3cb92c2
Apply the i386 SSE mods to pc98 as well.
2001-07-12 06:34:25 +00:00
Yoshihiro Takahashi
214de8c67f
Added #include <sys/proc.h>
...
Submitted by: Kaho Toshikazu <kaho@elam.kais.kyoto-u.ac.jp>
2001-07-10 09:59:52 +00:00
Yoshihiro Takahashi
3b2b0a59d0
Merged from sys/i386/i386/machdep.c revisions 1.459 and 1.460.
2001-07-07 04:06:04 +00:00
Matthew Dillon
0cddd8f023
With Alfred's permission, remove vm_mtx in favor of a fine-grained approach
...
(this commit is just the first stage). Also add various GIANT_ macros to
formalize the removal of Giant, making it easy to test in a more piecemeal
fashion. These macros will allow us to test fine-grained locks to a degree
before removing Giant, and also after, and to remove Giant in a piecemeal
fashion via sysctl's on those subsystems which the authors believe can
operate without Giant.
2001-07-04 16:20:28 +00:00
Yoshihiro Takahashi
f44a4f377e
- Don't overwrite inb, inw and outw.
...
- Move the lance_probe function to if_lnc.c.
- Support C-NET(98)S again.
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) and nyan
No response from: Paul Richards
2001-07-04 13:00:21 +00:00
Yoshihiro Takahashi
d22e161a15
Fixed warning message.
...
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
2001-07-02 10:18:56 +00:00
Warner Losh
1f94b9005c
Don't need the .keep_me files. Obrien and I committed past each other.
...
Add 0-9 to the list of possible kernel names at matsushita-san's
suggestion.
Submitted by: Makoto MATSUSHITA-san <matusita@jp.FreeBSD.org>
2001-07-01 23:35:44 +00:00
David E. O'Brien
5e6ded4212
Ensure sys/${MACHINE}/compile/FOO exists
...
Reviewed by: arch, imp, peter, and the USENIX terminal room secret kernel cabal
2001-06-30 15:16:29 +00:00
Warner Losh
e1d0d8a941
Really do proper keepme files in the compile directories. Use
...
.cvsignore file for [A-Za-z]* to keep these directories around rather
than waste a file on .keepme. This should also make people's built
trees place nice with CVS.
Idea for .cvsignore: peter (although I suggested the regexp)
Pointed out by: Makoto MATSUSHITA-san <matusita@jp.FreeBSD.org>
Llama's costuming by: Fernamdo Llamas
2001-06-30 14:38:32 +00:00
David E. O'Brien
791eca5f7b
Ensure sys/${MACHINE}/compile/FOO exists
...
Reviewed by: arch, imp, peter and
the USENIX terminal room secret kernel cabal
2001-06-30 07:12:34 +00:00
Warner Losh
1b0a8621e6
Repo copy i8237.h to dev/ic so we can get rid of some of the final vestiges
...
of includes of i386 files from non-i386 ports.
2001-06-30 05:29:11 +00:00
John Baldwin
6be523bca7
Add a new MI pointer to the process' trapframe p_frame instead of using
...
various differently named pointers buried under p_md.
Reviewed by: jake (in principle)
2001-06-29 11:10:41 +00:00
John Baldwin
ec2262612f
Enable interrupts again after disabling them in epson_{in,out}sw().
...
splx() doesn't do the equivalent of sti.
2001-06-29 10:44:45 +00:00
Yoshihiro Takahashi
15bf31ded3
Merged from the following changes.
...
sys/isa/ppc.c revisions from 1.27 to 1.34
sys/isa/ppcreg.h revisions from 1.10 to 1.15
sys/isa/isareg.h revision 1.6
2001-06-26 11:53:12 +00:00
Yoshihiro Takahashi
50c2952249
Merged from sys/isa/sio.c revision 1.335.
2001-06-26 11:48:17 +00:00