matt
362ba8300c
Include USB and 1394 support (sun models now have them).
2001-04-13 16:26:41 +00:00
kleink
9133b51cd8
Replace the 'unsigned __COMPILER_INT64__' construct with a new name,
...
__COMPILER_UINT64__, to be supplied - if such a case is made, it shouldn't
be assumed that the unsigned type-specifier may be applied to it.
2001-04-12 22:01:18 +00:00
eeh
986e7f8f1c
Interrupt latency fix from sparc port. (Hm. One insn instead of 5).
2001-04-09 21:15:42 +00:00
jhawk
d95ba2eb80
Remove gratuitous setting of SYSDIR;
...
it is set in sys/kern/Make.tags.inc
2001-04-03 17:12:23 +00:00
petrov
d6b50e1598
add fas configuration
2001-03-29 18:54:58 +00:00
lukem
20ba07f2fe
- add dev_noimpl(xxx,yyy) macro to replace "(dev_type_xxx((*))) yyy",
...
and use appropriately
- create more helper macros:
. cdev__xyz_init(c,n), such as cdev__ocri_init() for
/* open, close, read, ioctl */, etc.
. cdev__xRy_init(c,n), where nullop is used instead of enodev to dummy out
method `R' and the comments now read /* xxx (read) yyy */ instead
. cdev__xyz_t_init(c,n,t) - as per cdev__xyz_init, but sets d_type = t
as well
- use seltrue instead of dev_noimpl(poll,*), as (IIRC) cdevsw.d_poll should
always DTRT WRT returning a valid result. (a few devices previously
incorrectly returned ENODEV)
- use dev_noimpl(stop,enodev) instead of dev_noimpl(stop,nullop) if tty
== 0, because it doesn't matter if dev_type_stop isn't implemented in that
case, and it allows the use of the cdev__xyz_init macros. certain ports
(sparc,sparc64,x68k) used the nullop method for dev_type_stop in a few
drivers, whereas everything else uses enodev
- ensure that the comments are accurate WRT the behaviour of a given entry
2001-03-26 12:33:22 +00:00
petrov
b47f68b66c
fix 'show registers' mis-aligned access, PR11580
2001-03-22 22:20:28 +00:00
lukem
723cd818d8
move duplicate definitions for:
...
pc, lpt, joy, ocis, apm, satlink, i4bctl, i4brbch, i4btel, i4btrc, i4b
from the port-specific arch/*/*/conf.c files into sys/conf.h
2001-03-21 22:25:52 +00:00
mrg
af58b235e0
adapt to systems with out interrupt-map & interrupt-map-mask properties.
2001-03-21 01:33:47 +00:00
mrg
0b2a9fa53d
kill QUOTA on everglades.
2001-03-19 05:35:51 +00:00
hubertf
cda43785c6
Add comment on what 'overtemp' is about. OK'd by eeh.
2001-03-16 10:47:25 +00:00
chs
ac3bc537bd
eliminate the KERN_* error codes in favor of the traditional E* codes.
...
the mapping is:
KERN_SUCCESS 0
KERN_INVALID_ADDRESS EFAULT
KERN_PROTECTION_FAILURE EACCES
KERN_NO_SPACE ENOMEM
KERN_INVALID_ARGUMENT EINVAL
KERN_FAILURE various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE ENOMEM
KERN_NOT_RECEIVER <unused>
KERN_NO_ACCESS <unused>
KERN_PAGES_LOCKED <unused>
2001-03-15 06:10:32 +00:00
eeh
b612a766a7
Handle overtemp intr.
2001-03-14 00:52:19 +00:00
thorpej
85868e3c09
Pay attention to BUS_DMA_STREAMING when builing an IOMMU TTE.
2001-03-09 20:05:39 +00:00
thorpej
2c4c690f14
Add the BUS_DMA_STREAMING flag.
2001-03-07 22:42:16 +00:00
eeh
4e77731eee
Fix inverted preprocessor logic. (Spotted by Charles.)
2001-03-07 01:47:02 +00:00
mrg
f1d2503dc5
rework pci_attach_hook() to just deal with the INO, not the full
...
interrupt number. properly find interrupts for the E250. modify
pci_intr_map() accordingly. retire psycho_intr_map(). deal with
INO values upto 0x3f, not upto 0x32. restructure sabre_init() and
psycho_init() to be more similar, and display each psycho's IGN.
psycho_intr_establish() deals with INO upto 0x3f, values from 0x32
and higher get 0 for IPL.
tested on E250 & U5.
2001-03-06 08:09:16 +00:00
mrg
76c3f04bcb
move etext after rodata, like kern32.ldscript and sparc's kern.ldscript.
2001-03-04 13:41:00 +00:00
mrg
de13b6986c
deal with 32 bit kernels.
2001-03-04 10:11:56 +00:00
mrg
90656ebe47
sync with GENERIC; add COMPAT_SVR4_32
2001-03-04 10:10:42 +00:00
mrg
3125147a72
oops; make this build with a 32 bit compiler again.
2001-03-04 09:28:35 +00:00
mrg
ecb878c12d
sync with GENERIC32.
2001-03-02 07:56:26 +00:00
mrg
3c2cb5a456
- no need to hard wire pci busses or hme0 anymore
...
- clean up some comments
- __ELF__ is defined by the compiler
2001-03-02 07:50:08 +00:00
mrg
23fecf2b24
clean up slightly; prepare to make this identical to sparc/frame.h.
2001-03-02 07:40:18 +00:00
mrg
3c31d4fccb
clean up slightly.
2001-03-02 07:36:57 +00:00
mrg
7a1cb1dbc2
use pci_bus_devorder() and pci_dev_funcorder()
2001-03-02 06:34:06 +00:00
mrg
c452d0b725
adjust some comments to reality.
2001-02-28 15:21:08 +00:00
mrg
5ef9914b06
add and user a linker script.
2001-02-28 15:17:48 +00:00
mjacob
721e39d0dc
add SES device
2001-02-28 00:08:18 +00:00
mjacob
312d560493
add SES device (unused #4 )
2001-02-28 00:06:28 +00:00
eeh
85cffb544d
Improve legibility and iommu_dvmamap_sync().
2001-02-24 18:49:06 +00:00
eeh
121d97c255
Somehow this didn't get checked in with the rest of the SVR4 64-bit fixes.
2001-02-22 22:08:06 +00:00
eeh
a72ee87980
Add support for 64-bit SVR4 (Solaris 8) binaries.
2001-02-21 23:53:00 +00:00
mrg
5713cce1e0
sync with reality.
2001-02-17 16:29:13 +00:00
eeh
b0e3d231c4
Define VM_MASUSER_ADDRESS32.
2001-02-16 16:00:29 +00:00
mrg
f9c371eea3
type cleanups.
2001-02-12 16:07:38 +00:00
eeh
c269f4f002
Add COMPAT_SVR4_32.
2001-02-11 01:00:51 +00:00
eeh
d8405328df
Add support for COMPAT_SVR4_32.
2001-02-11 00:39:37 +00:00
eeh
750052a46f
Remove things that are defined in elf_machdep.h now.
2001-02-11 00:37:22 +00:00
eeh
96bf37a78f
Save the machine model string in case someone needs it (like slowlaris).
2001-02-11 00:27:06 +00:00
eeh
6e928d620b
Add some new gunk Sun uses.
2001-02-11 00:18:49 +00:00
eeh
1ac34a6a98
A register is 64-bits unless we're emulating 32-bit.
2001-02-11 00:17:03 +00:00
eeh
945c9cac5f
Increase limits slightly. We're still not using all 32 address bits yet,
...
let alone 64.....
2001-02-11 00:09:45 +00:00
eeh
1671aa6706
Increase NKMEMPAGES to a more useful value.
2001-02-11 00:07:10 +00:00
eeh
3e47436b79
Add some extra fields to a dmamap to track what's being mapped.
2001-02-11 00:05:47 +00:00
eeh
3daccde8d4
Print out more useful data if there are interrupt issues.
2001-02-11 00:02:58 +00:00
pk
5fb1ec8af6
Fix conditional for svr4 compat inclusion.
2001-02-10 20:00:24 +00:00
eeh
2411eab448
Fix D$ aliasing issues in a DIAGNOSTIC check.
2001-02-06 19:04:57 +00:00
mrg
22a68e0e29
oops, kill some debugging messages.
2001-02-05 13:13:47 +00:00
mrg
2d7ba2f0e7
turn off UVMHIST. turn on LKM. makeoptions DEBUG=-g
2001-02-05 12:49:11 +00:00
mrg
05752997ef
use sunos32_machdep.c on 64 bit kernels.
2001-02-05 12:47:47 +00:00
mrg
e1ac1f31b9
make sure 32 bit addresses are truncated properly.
2001-02-05 12:45:38 +00:00
eeh
db133b2424
Add signal trampoline for 64-bit svr4 emulations.
2001-02-05 06:56:45 +00:00
mrg
c084c19f60
add "wd" to chrtoblktbl
2001-02-02 07:39:28 +00:00
mrg
2a9fceab8d
enable the kbd/ms. enable some compat options for compat_sunos
2001-02-02 07:33:42 +00:00
mrg
9954eaa78b
include compat/sunos32/sunos32.files
2001-02-02 07:32:45 +00:00
mrg
04cb3c57d6
bump NMBLUSTERS now this machine has NFS server tasks.
2001-02-02 07:32:20 +00:00
mrg
6d444f5960
kill the ad clause in my license.
2001-01-29 01:37:56 +00:00
martin
a7206004fc
Faster error handling for iommu_dmamap_load_raw; avoid loading the map
...
and unloading on error when we clearly can't get out without an error.
2001-01-28 01:26:57 +00:00
eeh
6c3bf28ffd
Fix dvma problem caused by previous. Seems like the dvma segment calculation
...
in iommu_dmamap_unload() was not quite right.
2001-01-27 03:40:39 +00:00
martin
f4eec8f31f
iommu_dvmamap_load_raw: add a check for creating maps larger than
...
expected by the creator of the dma map and fail apropriately. This
makes the syssrc/dev/pci/if_vr.c driver work.
2001-01-25 21:41:10 +00:00
martin
97b57e69cc
Make bus_dmamap_load_mbuf and bus_dmamap_load_uio use independend
...
segment lists for their mapping; make iommu_dmamap_unload deal with
this type of maps.
Coded by Eduardo, tested (and minimaly tweaked) by me.
2001-01-23 20:31:28 +00:00
eeh
a07a06dd78
Only panic if we can't allocate a PT page for the kernel pmap.
2001-01-22 22:10:09 +00:00
jdolecek
8b24036797
Require the machine-dependant DDB commands to be in db_machine_command_table[]
...
and link it directly to db_command_table[] so that it's not necessary
to do this at runtime. Make db_machine_command_table[] const on all ports.
g/c now unneded stuff, like db_machine_commands_install(), db_machine_init()
Patch written by enami.
2001-01-22 13:56:55 +00:00
pk
13d4fcd69b
In cpu_reboot(), only reset the TOD clock if the time is known to be good
...
enough, e.g. it has been initialized already by inittodr() or set
explicitly before by resettodr(). This prevents the TOD clock from going
way backwards when typing `halt' at the `mount root filesystem' prompt.
2001-01-20 13:44:29 +00:00
martin
84af4fa114
Enable IO space mapping by default.
...
Fixes PR 11940.
2001-01-19 21:25:19 +00:00
tv
e58532a4bf
No-op commit to force update to a non-"-kk" revision.
2001-01-18 17:47:58 +00:00
jdolecek
d5d431e8ae
make db_[e]regs[] const
2001-01-18 10:54:27 +00:00
fvdl
c7f1462f3e
Add machdep file for procfs. Currently only used for linux-style
...
/proc/cpuinfo (only active when procfs is mounted with -o linux).
For ports other than the i386 this currently produces an empty
string.
2001-01-17 00:07:18 +00:00
thorpej
d74e432ed3
Make softclock a generic soft interrupt of the API is available,
...
adding the requisite void * argument to softclock().
2001-01-15 20:19:50 +00:00
eeh
d04bab724e
Implement some seblence of bus_dmamap_mbuf() and bus_dmamap_uio().
2001-01-15 19:27:07 +00:00
thorpej
45de366b2e
Rename __GENERIC_SOFT_INTERRUPTS to __HAVE_GENERIC_SOFT_INTERRUPTS,
...
and place the definition in <machine/types.h>. This can now be used
as a flag to indicate whether or not <machine/intr.h> can be included
to get the generic soft interrupt API.
2001-01-14 23:50:28 +00:00
martin
a261276f16
The i4b raw b-channel devices actually do have an ioctl routine,
...
so better add this to the cdevsw entry.
Noted by Bruno Achauer.
2001-01-14 11:17:28 +00:00
martin
6695531e85
Fix format warnings to make it compile again.
2001-01-14 09:43:33 +00:00
thorpej
a3ec356d52
splimp() -> splvm()
2001-01-14 03:22:04 +00:00
thorpej
979919ee0f
splpmap() -> splvm()
2001-01-14 02:03:48 +00:00
thorpej
d85a75f583
Make sure everybody has an splvm() and equate it with splimp() (splimp()
...
is the historical name for this interrupt level, and the historical name
is going to go away in the near future).
2001-01-14 02:00:37 +00:00
pk
b1b7565190
Implement bus_space_subregion().
2001-01-12 15:24:15 +00:00
pk
301b806db0
ebus_find_node(): plug memory leak; make debug output meaningfuller.
2001-01-08 22:15:47 +00:00
martin
f53c899649
Add isdn devices to all archs that seem to support at least one of the
...
necessary busses. Sync comments with reality for archs that already had
the devices.
2001-01-08 21:46:33 +00:00
eeh
4020842234
Fix faults caused by incorrect cacheing information in the pv_entry.
2001-01-03 23:05:22 +00:00
pk
cf53c74834
* Apply proper cast for 32 -> 64 bit pointer argument conversion.
...
* Since probeget() isn't geared up to deal with _arbitrary_ memory fault
types (and doesn't work at all when called from an interrupt context),
add explicit sanity checks on a stack frame's contents before use
(XXX - needs revisiting).
2001-01-03 15:33:34 +00:00
takemura
c5fd828440
replace 'long long' with int64_t to compile stand alone program with
...
compiler other than GCC.
2001-01-03 10:08:55 +00:00
eeh
fe278fa440
Make INCR() atomic.
2000-12-31 21:05:21 +00:00
mjacob
366352e859
Enable Qlogic PCI cards
2000-12-30 19:30:50 +00:00
mjacob
a8b078eb95
more missing #ifdef DEBUG goop
2000-12-30 07:42:42 +00:00
mjacob
f8e9b56ebf
Fix a 'defined but not used' error (GENERIC doesn't define DEBUG).
2000-12-30 07:34:40 +00:00
eeh
3ec59504f9
Lower PIL_SCHED below the zs interrupt so we don't get silo overflows.
2000-12-29 18:37:05 +00:00
eeh
f5c0f0c5a8
Separate schedclock from statclock on machines w/counter-timers. This
...
lets us lower splsched().
2000-12-29 18:35:18 +00:00
eeh
e8b285df6a
pseg_get tells us whether it really needed that spare page after all.
2000-12-29 18:32:47 +00:00
eeh
fcae6c100a
Fix LOCKDEBUG issues.
2000-12-29 18:29:19 +00:00
eeh
a5ecd862b1
Fix some 32-bit assembly code.
2000-12-29 17:13:33 +00:00
eeh
d8887bd0ea
64-bit address values should be unsigned.
2000-12-29 17:12:05 +00:00
eeh
5f7376ce1d
Fix broken printf()s.
2000-12-29 17:09:49 +00:00
eeh
ac00f21218
Fix broken printf().
2000-12-29 17:08:54 +00:00
eeh
09c04e2283
Update for new signal structures in struct proc.
2000-12-29 17:07:12 +00:00
sommerfeld
851de295eb
Change pci_intr_map to get interrupt source information from a "struct
...
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".
This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.
Tested on alpha and i386; welcome to 1.5Q
2000-12-28 22:59:06 +00:00
itojun
efa2b7073c
make mbstate_t bigger (32 -> 128 bytes).
...
XXX if you have libc after citrus locale import, please recompile libc,
and your applications that use mbstate_t (rather rare). really sorry
for the mess.
2000-12-26 10:35:28 +00:00
jdolecek
e9e91a0fb5
split off thread specific stuff from struct sigacts to struct sigctx, leaving
...
only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx
This addresses kern/10981 by Matthew Orgass.
2000-12-22 22:58:52 +00:00
eeh
4c3121006d
Use an extent map for I/O addresses instead of a base so addresses can
...
be both allocated and freed.
2000-12-21 22:19:21 +00:00
itojun
823498203f
populate _BSD_MBSTATE_T_. add warning regarding to rune_t.
2000-12-21 06:03:47 +00:00
mrg
43251365b4
com_attach_subr() prints the newline for us.
2000-12-20 16:19:09 +00:00
thorpej
2563d39a6e
This is long since obsolete.
2000-12-19 18:12:48 +00:00
mrg
3f647a126c
clockattach(): print the hostid as a 32-bit value to avoid 64-bit sign extension.
2000-12-19 05:09:06 +00:00
mrg
32b8108b06
s/%qx/%llx/
2000-12-18 15:57:15 +00:00
mrg
dd2f1cdf71
- rename 32bit USRSTACK32, and define USRSTACK to that if !__arch64__, so that
...
64bit code can see USRSTACK32
- bump the limits
2000-12-18 14:48:26 +00:00
pk
c421b5eb92
Pull over revision 1.23 from sparc:
...
Fake a label only if it appears to be blank, and if so use RAW_PART
instead of 0.
2000-12-17 22:39:18 +00:00
pk
065dbd3604
Make pointer formats work with a 32-bit compiler.
2000-12-17 21:54:20 +00:00
pk
51dca5ed7c
Fix printf() pointer formats & make them work with a 32-bit compiler.
2000-12-17 21:43:54 +00:00
pk
4d082438e0
Literal `%' in format string => `%%'
2000-12-17 21:42:21 +00:00
pk
107489f7a1
Remove spurious `#define DEBUG'
2000-12-17 21:41:43 +00:00
jdolecek
cacec11253
delete obsolete comment
2000-12-17 15:52:39 +00:00
martin
ee0eb24c13
Don't include opt_*.h if compiling as LKM.
2000-12-14 10:24:42 +00:00
jdolecek
ca57e681bd
g/c obsolete vtrace(2) stuff
2000-12-13 18:13:05 +00:00
eeh
ce7f4ef73f
Don't use rwindow_save() since the stack has already been made COW.
2000-12-11 18:51:55 +00:00
eeh
264fbb89af
Cleanup types in DEBUG printf()s.
2000-12-10 19:52:17 +00:00
eeh
40638d9f35
Zero proc 0 stack pages so the pcb is cleared out before use.
2000-12-10 19:33:02 +00:00
martin
d9d7c42e0c
Remove esp specific function from ddb when esp @ sbus is not included
...
in the kernel config. Makes compiling sbus-less kernels possible again.
2000-12-08 17:29:12 +00:00
eeh
873101cd21
Fix a bug in rwindow_save() that always wrote out window 0 in 64-bit
...
code and caused problems with ksh.
2000-12-07 01:05:55 +00:00
eeh
297dba1163
Add a call to db_esp() and make `mach phys /u' read user addresses.
2000-12-07 01:03:17 +00:00
eeh
660d1fc6c7
Fixup calculating where fpstate should be saved in the signal trampoline
...
code so it doesn't overwrite something important like the registers.
2000-12-07 00:59:42 +00:00
eeh
a5a8c50c48
Initialize pcb_lastcall so db_dump_pcb() will not bomb on non-DEBUG kernels.
2000-12-07 00:53:29 +00:00
mrg
703ec39a02
fix warnings in DEBUG & DIAGNSTIC code.
2000-12-06 01:47:49 +00:00
fvdl
3de7a35dc2
More cast / format cleanup to make this compile cleanly in 32bit mode.
2000-12-04 20:40:07 +00:00
fvdl
b5f5b707ea
Make gcc happy about casts.
2000-12-04 20:33:12 +00:00
fvdl
95ed1f82c4
Make gcc like a cast.
2000-12-04 20:29:34 +00:00
fvdl
2ccdc61f62
Avoid (safe) cast warnings.
2000-12-04 20:19:49 +00:00
fvdl
2c81c82473
Comment out caxsa, it's not used. Avoids 32 bit compile errors.
2000-12-04 20:14:05 +00:00
fvdl
42efb3639a
Avoid a warning in bus_dmamap_load_uio by inserting a 'return 0' for
...
good measure in this unimplemented function.
2000-12-04 20:12:10 +00:00
eeh
c5080ee564
Fix uninitialized variable bug and code cleanup.
2000-12-04 17:26:41 +00:00
fvdl
2fb588e51d
Warning police. Mostly useless format warnings. Switch Makefile for
...
kernel compiles to the warning flags that other ports also use.
2000-12-04 16:01:18 +00:00
mrg
247f2c42d7
Remove __BROKEN_CONFIG_UNIT_USAGE. (sync with sparc)
2000-12-04 09:56:56 +00:00
mrg
ac9988aef0
remove duplicate function prototypes.
2000-12-04 01:39:04 +00:00
fvdl
a21f36eeb2
Make softintr_establish prototype match other ports, avoiding compile
...
warnings.
2000-12-03 14:49:50 +00:00
fvdl
1f04bc7933
TRAPWIN is defined by default in trap.c, don't define it here.
2000-12-03 14:49:14 +00:00
mrg
3da40e83e7
const poison to avoid a warning.
2000-12-02 03:57:26 +00:00
eeh
bf3bbac849
Don't allow pmap_collect() to run on the kernel pmap since it will
...
undo the work of pmap_growkernel().
2000-12-01 17:17:29 +00:00
soren
66864e1f05
Removed increased BUFCACHE/BUFPAGES.
2000-11-27 08:55:41 +00:00
chs
0ac52aaf1d
remove MD functions for printing vnodes and buffers since there are
...
MI versions now.
2000-11-21 16:34:52 +00:00
chs
c62d17a551
rationalize the use of b_flags for geteblk() buffers.
...
rather than assigning to the whole field, set or clear individual flags,
which implies that the B_BUSY and B_INVAL flags will remain set.
this allows us to make the assertion in brelse() that B_BUSY is set,
which is the purpose of all this.
2000-11-20 08:24:08 +00:00
mrg
5d04f7b69d
update to reality. sync with GENERIC32.
2000-11-19 15:23:55 +00:00
mrg
1368967d8c
fix some comments.
2000-11-19 15:22:51 +00:00
mrg
e97f9e9f7a
use OpenFirmware, not prom version 0, operations. eeprom(8) works now.
2000-11-18 23:45:05 +00:00
mrg
a2ea64e265
sync with sparc port. add support for OF_setprop(), OF_nextprop(),
...
OF_interpret() and OF_milliseconds().
2000-11-18 23:43:06 +00:00
mrg
d6d4159b1a
s/register//
2000-11-18 03:52:50 +00:00
mrg
40095eb6a1
struct pcb's lastcall is const char *
2000-11-18 03:51:14 +00:00
mrg
0485f611f1
remove dead debugging code.
2000-11-18 03:49:38 +00:00
mrg
215d0d2dcd
pull over from sparc port's mem.c:
...
>revision 1.26
>date: 2000/11/13 15:31:44; author: pk; state: Exp; lines: +10 -1
>Detect "EOF" conditions on the memory-special files.
2000-11-17 23:18:53 +00:00
eeh
efaf3dbb74
Remove unnecessary header file that causes linker issues.
2000-11-10 17:47:55 +00:00
eeh
132d16957c
Clean up config and fix things so kbd.h is generated even w/no keyboard.
2000-11-10 16:05:40 +00:00
mrg
3ea4c67b6b
remove unused variable
2000-11-10 11:57:26 +00:00
eeh
ccf7f1446f
Fix ILP32 bug in probe_get().
2000-11-09 00:35:02 +00:00
eeh
c3a041249b
Enable clean up keyboard attach and make formatting prettier.
2000-11-09 00:06:47 +00:00
eeh
17b69d1833
Attach the sunkbd line discipline to zstty.
2000-11-09 00:02:54 +00:00
eeh
954a7b9824
Switch to sunkbd for both com and zstty.
2000-11-09 00:00:40 +00:00
eeh
71b0c155a0
Support for MI console magic framework.
2000-11-08 23:41:42 +00:00
eeh
052afce2a5
Use new MI console magic framework.
2000-11-08 23:40:31 +00:00
eeh
2b8da88d55
Remove debug printfs.
2000-11-08 23:24:12 +00:00
ad
e6be92ad99
Pull in dev/i2o/files.i2o.
2000-11-08 19:48:51 +00:00
eeh
b43f8c30e4
pmap_growkernel() needs to return the new end of kernel.
2000-11-02 00:24:05 +00:00
eeh
23a0c49039
Adapt to the new line discipline scheme.
2000-11-02 00:21:03 +00:00
eeh
b19423f823
Pass along bus frequency.
2000-11-01 06:19:59 +00:00
eeh
400b7c8ee0
Add pmap_growkernel().
2000-10-29 23:30:35 +00:00
eeh
9746513520
Add bpp and make com match the sparc port.
2000-10-28 23:19:31 +00:00
pk
bee12f6a67
Restore revision 1.102.
...
I hope it sticks this time..
2000-10-22 21:28:27 +00:00
eeh
ad3ec5f6af
Fix hang in 32-bit kernels caused by relocation of KERNBASE.
2000-10-20 16:43:54 +00:00
mrg
cb17e80035
fix a comment.
2000-10-20 05:47:03 +00:00
mrg
82d7f3e331
#include <machine/sparc64.h> for prom_printf() prototype.
2000-10-20 05:32:35 +00:00
mrg
f39b5cf92e
wrap long lines.
2000-10-19 12:25:04 +00:00
mrg
bc4dd913e7
#if 0 unused code.
2000-10-19 05:44:39 +00:00
mrg
d66f9f3321
add a cast to fix a warning.
2000-10-19 05:38:35 +00:00
mrg
88c611ff12
- remove an unused variable
...
- in db_setpcb(), update 'struct proc *p' each loop iteration. (found by
gcc warning).
2000-10-19 05:30:29 +00:00
mrg
1191037add
remove unneeded cast.
2000-10-19 05:28:50 +00:00
jdolecek
2fa1ccfa6e
bootpath_build(): implement slighly more clever algorith to find boot
...
flags in the bootpath: only treat the rest as boot flags if the '-'
follows whitespace (space or tab)
This should fix the "boot disk4 netbsd-20001004-RFHS8036" lossage
Hubert Feyer pointed out in private e-mail.
Tested by: jdolecek (userland version)
Reviewed by: eeh
2000-10-04 23:05:08 +00:00
eeh
6638fc7c06
Fix interrupt lossage problem and some cosmetic changes.
2000-10-04 22:18:25 +00:00
pk
d26132e2be
cpu_initialize: global registers aren't preserved across calls to
...
prom_printf(), so replace %g3 with %l7 (which isn't used despite
the `usage' comment).
Also, clean up white-space turds.
2000-10-01 19:13:16 +00:00
eeh
8e5075103f
This seems to fix the interrupt lossage of non-debug kernels.
2000-09-29 17:02:38 +00:00
eeh
15eaba378c
Only call pcons_dopoll() if there's a pcons device.
2000-09-29 00:27:13 +00:00
eeh
5c98160d2b
Separate user and kernel address spaces and move the kernel down to
...
0x0000000001000000 -- 0x00000000f0000000, below the PROM where the
PROM thinks we should be.
2000-09-28 19:56:13 +00:00
eeh
d21456569e
Fix INTR_SETUP() to properly distinguish kernel and user addresses.
...
Make microtime() return the correct time on %tick machines.
Re-enable debug stuff in dostart for now to detect kernel mapping issues.
2000-09-28 19:27:49 +00:00
eeh
1090c8a9cf
probeget() actually handles 64-bit values so fix the prototype.
2000-09-28 19:16:35 +00:00
eeh
0ca74ba0d8
Fix the `trap type 0x10' problem. Apparently, something has changed and
...
now makes use of lockmgr(). Since we broke into the debugger from an interrupt,
we don't have a curproc, so when lockmgr() tries to find our PID it barfs,
causing another break into DDB which then calls the mysterious code that
calls lockmgr() again.....
So set doing_shutdown while we're in DDB so lockmgr ignores locks.
2000-09-28 18:54:39 +00:00
eeh
6776b270ae
Remove unneeded cache flushes.
2000-09-28 15:47:27 +00:00
eeh
a6205d98a9
Poll pcons for input on softints in case someone want to break into the debugger.
2000-09-28 15:38:49 +00:00
eeh
abeb734bb9
Cannot distinguish kernel and user addresses any more.
2000-09-28 15:34:38 +00:00
eeh
5b577f0c8f
Add a command that locates the page structure corresponding to a pa.
2000-09-28 15:32:36 +00:00
eeh
3a2599ebec
Don't take ref/mod faults on DMA segments mapped in to the kernel.
2000-09-28 15:28:43 +00:00
eeh
a5a8082482
Use prom_printf() for debugging instead of printf() since the console may
...
not be functional.
2000-09-28 15:23:06 +00:00
eeh
25ce73d7b3
Fix bad path specifier for finding fpu sources.
2000-09-28 15:19:56 +00:00
eeh
2b673aaef8
Add -V and -D bootflags to print out debug info in pmap_bootstrap() and
...
a fix for non-DEBUG kernels.
2000-09-27 18:20:33 +00:00
eeh
8a0dc83e07
Fix for prev (define fl).
2000-09-27 18:16:01 +00:00
eeh
008eadbac6
UltraSPARC machines don't have FP queues. Don't let userland code set them.
...
It tends to break the FPU emulation code.
2000-09-26 22:05:50 +00:00
pk
2e79bfed2d
Missing `#if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)'
2000-09-25 21:02:38 +00:00
jdolecek
b1f94e26ab
don't specify number of ptys if >= 16 (current default initial number)
...
pty comments: normalize and g/c what is no longer relevant
2000-09-24 15:59:26 +00:00
jdolecek
49c105ffdb
add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
...
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate
as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro
for hpcmips, use new bootverbose instead of it's own hpcmips_verbose
Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
2000-09-24 12:32:31 +00:00
eeh
ece5d6d3f0
Define __BUS_SPACE_HAS_STREAM_METHODS now we have them.
2000-09-22 21:01:55 +00:00
eeh
57ebc2eb53
Remove some unsupported devices and add support for the `com' device.
2000-09-21 23:46:49 +00:00
eeh
e3a80e9511
Add support for the `com' driver and Sun Keyboard/Mouse line disciplines.
2000-09-21 23:44:06 +00:00
eeh
805ffd07cc
Sun Keyboard/Mouse line discipline support.
2000-09-21 23:14:40 +00:00
eeh
ac3f296768
Guts of the Sun Keyboard/Mouse line disciplines.
...
N.B. They don't recognize L1-A yet.
2000-09-21 22:25:08 +00:00