Commit Graph

60458 Commits

Author SHA1 Message Date
jdolecek
661f8e80e2 Add NOLUNS|NOSYNC quirk for NEC CD-ROM DRIVE:222.
Change sent in PR kern/19286 by Dave Barnes.
2002-12-05 10:39:58 +00:00
yamt
172a847692 initialize uvm.aiodoned_proc. 2002-12-05 10:30:00 +00:00
jdolecek
4ed167f658 a bit of KNF - function type on separate line than function name, function
name on start of line
2002-12-05 10:01:56 +00:00
ichiro
fa14fafc16 add IEEE1394 configuration(Comment out) 2002-12-05 09:32:22 +00:00
ichiro
f11d642c88 make compile 2002-12-05 09:21:26 +00:00
simonb
f8cc054e04 Fix typo in a.out link set macros (s/ifdef/ifndef/). 2002-12-05 05:47:24 +00:00
simonb
699bf96665 Drop the _KERNEL test; these functions are needed for SMP and other ports
don't bother with a _KERNEL check.
2002-12-05 02:56:51 +00:00
fvdl
cc2e1c4082 FIrst cut at INSTALL kernel. 2002-12-05 02:06:44 +00:00
david
2cf8089839 Include cbb, and its cardslot and pcmcia children. Needed by some wi cards. 2002-12-04 23:44:12 +00:00
uwe
6c05e7879f Fix an options<space><tab> nit. 2002-12-04 23:30:40 +00:00
fvdl
93f2be9ef0 For the resume/recurse case, make sure that the interrupt mask level
of the handler is set before acquiring the kernel lock, to avoid a
recursive chain of interrupt processing out of splx().
2002-12-04 23:13:09 +00:00
manu
56b9df9869 Improved mach_vm_map emulation: take into account proection, alignement,
and improve debug messages.
2002-12-04 22:55:11 +00:00
jdolecek
1a82d4f05f regen - addition of 0x90EE, IBM SVGA Adapter/A 2002-12-04 18:53:14 +00:00
jdolecek
53ba962fcf add 0x90EE - IBM SVGA Adapter/A 2002-12-04 18:52:28 +00:00
jdolecek
6227201ba9 If booting from floppy in 2.88MB drive, actually test if it's possible
to read sector 18, and fallback to 1.44MB drive geometry if that fails.
This allows to boot from 1.44MB floppy disk in 2.88MB drive.
Tested with 2.88MB drive in IBM PS/2 model 95 donated
by 'Yokotashi' <lhc at kanal ucw cz> and Pavel Cahyna
<pavel.cahyna at st ms mff cuni cz>
Bump biosboot version.

Fixes PR kern/3418 by Keith Moore.

Change okayed by Frank van den Linden.
2002-12-04 18:26:56 +00:00
thorpej
a13469e728 Revert my previous GCC 3.3-related changes; GCC 3.3 has been fixed
to handle our stdarg/varargs ABI for PowerPC.
2002-12-04 17:42:51 +00:00
imp
1d37d03cd9 Custom config file the the Deskstation rPC44 (aka ARCSTATION I and EPC44).
Untested on target hardware, but compiles and links.
2002-12-04 08:14:30 +00:00
imp
cad09ef8c4 Include machine/kbdreg.h when NPCKBC > 0. This is necessary to pick up
the KBDCMDP definition.
2002-12-04 07:43:55 +00:00
fvdl
5c45b70587 Don't use delay() in the IPI wait loop. Use an empty one instead, with
a counter check in the DIAGNOSTIC case.
2002-12-04 01:36:10 +00:00
fvdl
082d4707fd Create a proper frame in Xspllower if DDB is defined. 2002-12-04 01:33:58 +00:00
haya
805040f592 New Feature: add pseudo device for IEEE 1394 isochronous stream and
isochronous reception routine for IEEE 1394 OHCI (fwohci).  The
transmission part is under construction.

The minimum configuration options for this feature are:

# IEEE 1394 (i.LINK)
fwohci*	at pci? dev ? function ?
pseudo-device	fwiso		1
2002-12-04 00:28:39 +00:00
fvdl
b59af86db6 Install atomic.h 2002-12-03 22:13:58 +00:00
fvdl
567d82224b Synch with i386 (pmap, naming schemes, cpu_info structure). 2002-12-03 22:03:01 +00:00
fvdl
e6f74d6f68 Set the CR0_WP bit. 2002-12-03 22:01:26 +00:00
uwe
23c0293ee7 The chip treats weekday 1 == Sunday, correct dt_wday adjustment logic
appropriately.  NB: the old code would never write weekday zero that,
I've been told, might cause the RTC to reset.
Pointed out by kenh.
2002-12-03 17:54:54 +00:00
kenh
25c20430c3 The day-of-week register in the MC146818 has the value 1-7, but
clock_secs_to_ymdhms() returns dt_wday with a range of 0-6.  Make sure
the DOW register has the correct range.
2002-12-03 16:11:11 +00:00
jdolecek
e1c47ec557 remove obsolete comment 2002-12-03 14:34:33 +00:00
ichiro
ad74b473f7 initialize ixpcomconsaddr
use splserial()
fix IXPCOM registers
2002-12-03 09:28:27 +00:00
itojun
909d6f1e41 regen 2002-12-03 09:27:20 +00:00
itojun
b1780a969c fujitsu AH-F401U AirH" USB
(128K PPP device/should be attached as ucom, but not yet)
2002-12-03 09:27:00 +00:00
explorer
4c21f28434 make this compile without SBP2_DEBUG defined 2002-12-03 06:11:31 +00:00
explorer
eefd3c78e8 add Ricoh 5C552 Cardbus + Firewire product ID 2002-12-03 06:08:00 +00:00
ragge
0b23d06491 Revert Jason's changes to the boot startup code:
- All regs must be saved before any register is altered.
- movc{3,5} alters r0-r5, so clearing bss would clear the text instead.
This needs more thinking/testing to get it work correct; there are
different ways different CPUs call "boot".
2002-12-02 20:23:32 +00:00
ichiro
5a1cd5fee6 add NAPPI_MD config file 2002-12-02 14:26:52 +00:00
ichiro
05413e5da4 move location of pmap_debug() 2002-12-02 14:25:38 +00:00
ichiro
1e213be17b use bus_space map 2002-12-02 14:10:13 +00:00
ichiro
f2de71b067 changes&fix name of mapping registers 2002-12-02 14:08:57 +00:00
matt
f7ce29b0d5 Only declare ttydefchars if _KERNEL is defined. 2002-12-02 05:11:02 +00:00
toshii
350768d9f8 Don't stuff extra data when we receive data less than expected.
This situation is normal for asynchronous sources, and the byte stuffing
algorithm used generates unpleasant noise.
Also take care of scattered data buffer and do memcpy correctly.

This should fix PR kern/16385.
2002-12-02 02:36:14 +00:00
matt
9bd0cc2bb9 Make sure these all agree on the same definitons of various variables. 2002-12-01 23:02:10 +00:00
matt
b5e32a190e Don't define VA_EXCLUSIVE if it's not defined. If we do, it'll be a
different value from the one in <sys/vnode.h>
2002-12-01 23:00:51 +00:00
matt
b360b734b1 Add multiple inclusion protection. 2002-12-01 22:59:42 +00:00
matt
00ed0b8fb8 Reorder things so that with multiple inclusion protection that optional
definitions are outside the protection checks.
2002-12-01 22:58:43 +00:00
matt
e164bfcb71 Reorder things so that multiple inclusion protection so optional
definitions are outside the protection checks.
2002-12-01 22:57:17 +00:00
matt
3ec683c955 Move declartion of SIGPROP to outside of multiple inclusion protection.
If _KERNEL is defined and SIGPROP is not defined, define sigprop as an
extern.
2002-12-01 21:32:05 +00:00
matt
67ed9c3b4f Add multiple inclusion protection. 2002-12-01 21:25:10 +00:00
matt
74a001a61b If TTYDEFCHARS is not defined, define ttydefchars as an extern so the
variable is defined, if not instantiated.
2002-12-01 21:24:28 +00:00
matt
56effcf269 Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
matt
4913834e76 Fix inconsistencies in various definitions of avail_*, virtual_*, and
proc0paddr.
2002-12-01 21:20:31 +00:00
jmc
bd096e500d Set the only big quirk since the drives I've tried return errors on 6 byte cdbs 2002-12-01 12:12:09 +00:00
jmc
4e448779d8 Checkpoint checkin:
1. Clean up some debugging and trigger some on only extreme debugging needs
2. Comment alloc data mapping a bit better and fix some of the bugs here
(note..there still are some so for now the free method is never called while
I track these down)
3. Fix the copying logic in data_resp. It was calculating negative offsets
which blew up memcpy.

At this point I can probe, inquire and get through the findroot steps of a
boot:

sd0 at scsibus0 target 0 lun 0: <Maxtor, 1394 storage, 60> disk fixed
sd0: mode sense (4) returned nonsense; using fictitious geometry
sd0: 76293 MB, 76293 cyl, 64 head, 32 sec, 512 bytes/sect x 156250000 sectors
sd0: mode sense (4) returned nonsense; using fictitious geometry
sd0: no disk label
findroot: can't open dev sd0a (6)

NOTE: This will panic my machine right now with a simple disklabel -r sd0.
Also, since the free mappings routines are if (0)'d out at the moment do not
use this code for anything except experiments and then only on a machine
you don't mind panic'ing.

Fixing the mapping routines will be the next step and then finally chasing
down the proper mode sense these drives understand.
2002-12-01 12:09:56 +00:00
jmc
3b7f83f77f Correct calculating of offsets when memcpy returned data. 2002-12-01 12:05:11 +00:00
agc
35a5ff86d4 Make this compile in the presence of -Werror 2002-12-01 11:02:11 +00:00
isaki
c3d95a36c4 add bmd, memory disk driver for x68k. 2002-12-01 09:03:03 +00:00
isaki
14096cb14e Add bmd, memory disk driver for Nereid bank memory. 2002-12-01 09:00:35 +00:00
fvdl
8848e366f2 For softints, there's no intrframe on the stack, so don't try to use it.
Use a seperate lock function (in taking the same lock) instead.
2002-12-01 00:15:36 +00:00
matt
60db16d1ff Add multiple inclusion protection for headers. Fix mismatched
variable declarations (missing const's) as needed.
2002-12-01 00:12:06 +00:00
tsutsui
d03ac2a783 Fix botch in previous. This is pcb.h, not reg.h. 2002-11-30 22:50:01 +00:00
fvdl
14067df51c Fix format warnings in INTRDEBUG case. 2002-11-30 22:22:53 +00:00
kristerw
fa033b67e7 Softdep is mature enough that it shouldn't define DEBUG and DIAGNOSTIC
unconditionally.
2002-11-30 20:27:50 +00:00
tsutsui
d658fd6e12 Add a configuration of struct platform for NEC-J96A,
NEC Express5800/240 with R4400 and EISA.

XXX not functionally working yet. (hangs after mountroot via NFS)
2002-11-30 19:23:44 +00:00
bouyer
d986226518 Change uvm_km_kmemalloc() to accept flag UVM_KMF_NOWAIT and pass it to
uvm_map(). Change uvm_map() to honnor UVM_KMF_NOWAIT. For this, change
amap_extend() to take a flags parameter instead of just boolean for
direction, and introduce AMAP_EXTEND_FORWARDS and AMAP_EXTEND_NOWAIT flags
(AMAP_EXTEND_BACKWARDS is still defined as 0x0, to keep the code easier to
read).
Add a flag parameter to uvm_mapent_alloc().
This solves a problem a pool_get(PR_NOWAIT) could trigger a pool_get(PR_WAITOK)
in uvm_mapent_alloc().
Thanks to Chuck Silvers, enami tsugutomo, Andrew Brown and Jason R Thorpe
for feedback.
2002-11-30 18:28:04 +00:00
tsutsui
24a8d1e5a3 Remove extern from mach_init() prototype declaration. 2002-11-30 17:57:42 +00:00
tsutsui
b208e285e6 Fix swapped model name and vendor name in struct platform. 2002-11-30 14:38:06 +00:00
tsutsui
9604e7689d More cleanup of MI mb86960 driver:
- Add support for byte system bus mode. Based on patch in kern/17193 by
  Christian Groessler, with some improvements by me.
- Rename sc_flags in mb86960_softc to sc_stat, rename "type" to sc_flags
  to specify controller quirks and remove enum mb86960_type.
- Pass controller type via new sc_flags in mb86960_softc rather than
  via an mb86960_attach() arg.
- Handle unaligned mbufs properly in mb86960_write_mbufs(). (from ne2000.c)
- Fix a signed/unsigned comparision warning.
- Add definitions of status bits in the RX packed header.
- Change types of some members in mb86960_softc.
2002-11-30 14:15:10 +00:00
jdolecek
2c21ec9d61 Unfortunately, we can't really know if select collision is needed
until after wakeup event, so we can't clear the SI_COLL flag
in selrecord(). Thus, effectively back rev. 1.57 off.

Problem reported in PR kern/17517 by David Laight, program triggering
the problem is in regress/sys/kern/poll/poll3w.c.
2002-11-30 13:46:58 +00:00
fvdl
1e23499b18 Make biosgeom struct packed, so that it works out on x86_64. 2002-11-30 13:46:26 +00:00
jdolecek
fdb9be22e1 add basic framework to build compat_irix LKM
the LKM is not likely to actually do anything useful, but this is good
to quickly check compat/irix is buildable
2002-11-30 13:41:40 +00:00
jdolecek
555659c55c there is single emul_irix now
use irix_n32_setregs for the IRIX n32 execsw entry
2002-11-30 13:19:37 +00:00
jdolecek
e1e0ff678b move ELF-specific items from irix_exec.c to irix_exec_elf32.c
merge the two emul_irix structures; the only difference was
  setregs function, which can be handled by exec-specific setregs hook
rename setregs_n32() to irix_n32_setregs(), and make it suitable
  as the exec-specific setregs hook
make irix_check_exec() a macro now that just single compare
2002-11-30 13:18:13 +00:00
jdolecek
6826135dbc make LKM friendlier by only including opt_* #ifdef _KERNEL_OPT 2002-11-30 12:28:26 +00:00
manu
005949afda cosmetic fix 2002-11-30 11:20:51 +00:00
jdolecek
9a87c0933c make LKM friedlier - only include opt_* ifdef _KERNEL_OPT 2002-11-30 10:52:16 +00:00
jdolecek
615f789e98 fix typo in comment. pointed out by David Sainty 2002-11-30 09:59:22 +00:00
jdolecek
e0d29a5578 fix bug in previous - if child was traced and p_opptr == p_pptr,
need to reparent the process to initproc, so that child wouldn't
have its p_pptr pointer still pointing on the exited parent

pointed out by Dave Sainty in private mail (the patch in kern/14443
didn't have this bug)
2002-11-30 09:54:43 +00:00
itohy
ed4d8d79e7 White space police. 2002-11-30 07:06:40 +00:00
jmc
1f366747d4 Tidy up some debug routines and make verbose packet dumps only when sbp2debug>2 2002-11-30 06:18:54 +00:00
jmc
88fe775d19 Print out some more details from incoming packets (tlabel's).
Also, when receiving a write packet, respond with a proper ack if something
was available to process it. (Fixes most of the sbp2 random hangs)
2002-11-30 06:09:42 +00:00
simonb
fdd1e3b715 Standardise on #ifdef _MIPS_<header>_H_ for multiple inclusion tests. 2002-11-30 01:52:31 +00:00
simonb
d644dd9c43 Add multiple-inclusion protection. 2002-11-30 01:49:18 +00:00
simonb
6b69eb3190 Add multiple-inclusion protection. 2002-11-30 01:37:29 +00:00
pooka
fa8ee3bb1c Don't use tsleep() in attach, use delay()
This change makes the driver work properly for the following card,
which used to function a bit weird:

eap0 at pci0 dev 10 function 0: Ensoniq CT5880 CT5880C (rev. 0x02)
eap0: interrupting at irq 9
eap0: TriTech TR28602 codec; no 3D stereo
2002-11-30 00:20:02 +00:00
fvdl
96d6d8d8ac No sense in trying to print arguments to functions, we can't reliably
determine them as they're passed in registers. The first 6, anyway,
but only printing arguments 7 and up (if present) makes no sense.
2002-11-29 22:46:26 +00:00
fvdl
6dbe6cdeb5 Initial DDB support, mostly a quick 'n dirty port of the i386 code.
No dissassembly yet.
2002-11-29 22:17:12 +00:00
fvdl
93048d8fba Make physseg attrs unsigned, just to be sure. 2002-11-29 22:14:58 +00:00
fvdl
c08aef9c01 Make this a bit more like -current i386 pmap. Adjust some argument
types to avoid sign extension (although this is not a problem
currently).
2002-11-29 22:14:15 +00:00
fvdl
735931f6e4 Use DEFCOPTS, not COPTS, so that the latter may be overridden in a kernel
config file.
2002-11-29 19:52:02 +00:00
jdolecek
a45e0497c5 selwakeup(): don't bother with pfind() in SI_COLL case; sel_pid is always zero
in this case, and even if not, the process would be already woken up by the
wakeup() call
change sent as part of kern/17517 by David Laight

XXX perhaps should KASSERT() sel_pid is zero in the SI_COLL case
2002-11-29 19:48:22 +00:00
jdolecek
c9710a72e0 Get the dynamic interpreter location using emul_find_interp(), so that
it checks both the alternative/emul tree, and the non-emul tree.
This makes it possible to run chrooted emulated binaries without need
to setup shadow /emul tree within the chroot hierarchy.

XXX sligh code rearrangement was necessary, change not tested
2002-11-29 19:40:14 +00:00
fvdl
6da8034165 Think before committing.. previous wasn't actually needed, the values are
guaranteed to fit in 32 bits when loading the kernel into physmem,
and it avoids bootloader incompatibility.
2002-11-29 19:38:24 +00:00
jdolecek
da2945cc37 add comment why this doesn't need to use emul_find_interp() 2002-11-29 19:35:25 +00:00
fvdl
6f923c1495 Use long for ssym and esym in btinfo_symtab, so that it works out for
both i386 and x86_64.
2002-11-29 19:33:26 +00:00
jdolecek
1bf46cc0f0 use emul_find_interp(), rathern than calling emul_find() second time
with prefix set to "/"
XXX not tested
2002-11-29 19:15:15 +00:00
jdolecek
47cd9b85d6 Get the dynamic interpreter location using emul_find_interp(), so that
it checks both the alternative/emul tree, and the non-emul tree.
This makes it possible to run chrooted emulated binaries without need
to setup shadow /emul tree within the chroot hierarchy.
Only tested for COMPAT_LINUX, changes to other compat modules were
mechanical.
Fixes kern/19161 by Christian Groessler.
2002-11-29 19:13:14 +00:00
jdolecek
dd330529e7 add rename for emul_find_interp(), too 2002-11-29 17:11:21 +00:00
manu
ae748e840c Implement timebase_info. We don't know exactly what it should do yet... 2002-11-29 17:08:16 +00:00
jdolecek
302af6f02e add emul_find_interp() function: the function looks for interpreter
in alternative emul tree first, and updates interpreter pathname
if found there; if not found in alternative emul tree, pathname
without the emul prefix is checked, and error returned if the file
doesn't exist
2002-11-29 17:08:06 +00:00
jdolecek
b99fe89374 de-__P() 2002-11-29 16:32:50 +00:00
manu
39b522c107 back out the previous change, which is useless. Darwin loads the libraries
that are required by the binary, not the libraries required by the libraries
required by the binary.

Hopefully, binaries should load again on i386.
2002-11-29 15:49:09 +00:00
fvdl
6df30bca4f Patch that actually works for previous, from Jaromir Dolecek. 2002-11-29 14:32:27 +00:00
manu
f47b85037b Added a few kern sysctl which are the same on Darwin and NetBSD. 2002-11-29 13:18:09 +00:00
manu
65adabf7aa Filter the flag bits we get from Darwin's sigaction when giving them to
our native sigaction beacause unknown bits cause sigaction to fail with EINVAL.
2002-11-29 13:17:22 +00:00
manu
a9a3da8aca The recent mach trap support caused indirect system calls (a la syscall(2))
to be incorectly recorded as 'syscall'. Fix this.
2002-11-29 11:56:36 +00:00
manu
b36d0c1bf6 Maitain a chainedlist of already loaded Mach-O objects, to avoid loading
the same file multiple times because of recursive loading (ie: libx require
liby and libz and liby require libz, so libz would be loaded twice)

This is probably suboptimal, but it enable /bin/sh to load on the PowerPC,
so it's a good interim solution until we figure precisely how things should
work.

I'm not sure whether this makes the excessive recursive check useless or not.
2002-11-29 11:31:11 +00:00
pk
59c9274871 Always get the `mid' cpu property. Whine if it's not set on an actual
multi-processor machine.
2002-11-29 08:29:57 +00:00
pk
03549142e0 Find the CPU architecture version early in the bootstrap phase, and switch
to the V8 specific .mul/.div/.rem routines while we still have a writable
.text section.
2002-11-29 08:02:05 +00:00
pk
565cedc81e Provide the V8 mul/div routines for SUN4D as well. 2002-11-29 07:56:50 +00:00
itojun
02185dab0f setsockopt(IPPROTO_IPV6, IPV6_V6ONLY, 0) for AF_INET6 sockets,
to meet with the default behavior of linux.
review: fvdl/christos
XXX interactions with net.inet6.ip6.v6only?
2002-11-29 01:34:55 +00:00
manu
508a5615a6 Build the beast again after siginfo changes 2002-11-29 00:04:03 +00:00
itojun
e2a7bfda88 minor KNF (indent) 2002-11-28 23:46:15 +00:00
jdolecek
8ad945a36b add freebsd_fork.c 2002-11-28 21:55:48 +00:00
fvdl
f91cba76ea Add ci_apicid field. 2002-11-28 21:43:55 +00:00
jdolecek
b439ca6951 exit1(): make sure that, if orphaned child is being traced, it's
reparented back to original parent before it's killed.
This makes the original parent aware that the child has exited if
the debugger failed to wait() on the debugged zombie before exiting.
Since we clear tracing flags before killing the child, the reparenting
logic in wait4() wouldn't be triggered, so it's necessary to do it here.

Problem reported and fix provided in kern/14443 by David Sainty.
2002-11-28 21:41:29 +00:00
manu
de5d0b9706 Remove __P 2002-11-28 21:23:54 +00:00
manu
0f239dc026 Check for alternate receive buffer for mach_msg_overwrite_trap
Check for target buffer length, and fail if it is too short
Move mach_msg_trap and mach_msg_overwrite_trap to their own file
Remove some useless debug messages now we have ktrace
Remove __P()
2002-11-28 21:21:32 +00:00
jdolecek
dc55168cb6 issignal(): put apparently long-forgotten (at least since 4.4BSD)
debug printf inside #ifdef DEBUG_ISSIGNAL

This adresses kern/16760 by Love.
2002-11-28 21:00:27 +00:00
hamajima
e59bf4f94d add midi and sequencer. 2002-11-28 16:56:26 +00:00
fvdl
ca0469f229 Some changes to make single-CPU systems that have an ioapic (and
an MP BIOS table enabled) work. Some MULTIPROCESSOR defines to
make things compile, and a split of ci_cpuid into ci_cpuid and
ci_apicid. They're always equal for the MULTIPROCESSOR case,
but different otherwise (ci_cpuid will always be 0).
2002-11-28 16:37:35 +00:00
pk
6564749632 Move the installation of v8 specific .mul/.div functions into a separate
routine to be called when we're sure the CPU is actually sparc version 8.
2002-11-28 15:32:15 +00:00
pk
8d141cba88 Not all sun4m platforms have version 8 sparc CPUs. So go out to the PROM
and get the CPU architecture version from the PROM cpu node `sparc-version'
property.
2002-11-28 15:29:53 +00:00
hamajima
02e91ee75e add Sigmarion2. it is same keymap of Sigmarion. 2002-11-28 15:09:48 +00:00
jdolecek
b3b1ed9f7d back previous off, it makes the probe function mistaken some linux
binaries as freebsd
problem reported in thread 'installing suse_base on current
i386 sets time to 1970' on current-users
2002-11-28 15:08:36 +00:00
pk
f19c04e3ed Move timer{match,attach}_mainbus() back into timer.c, since the `timer at
mainbus' configuration declaration is orthogonal to the configured SUN4[CM]
platform options.
2002-11-28 14:18:31 +00:00
gehenna
1b8f0943e1 EasyDisk and Solid state disk like PQUIRK_NOMODESENSE. 2002-11-28 10:08:28 +00:00
gehenna
b69718e434 Regen. 2002-11-28 10:05:58 +00:00
gehenna
e2b8ef4c4e add OTI Solid state disk 2002-11-28 10:04:39 +00:00
junyoung
3bfa71c0c3 Fix compile error. 2002-11-28 07:02:20 +00:00
chs
8e1d2230d8 use explicitly-sized types for LIF structure fields and
make them all unsigned.
2002-11-28 06:06:13 +00:00
chs
c456a3cd29 remove the goofy hack to have the target be the LIF file,
just build the boot program with this Makefile.
2002-11-28 06:03:25 +00:00
chs
371349a205 do the "hppa" symlink too. 2002-11-28 06:01:00 +00:00
chs
3c3d32aaea force useful values for MACHINE_ARCH and MACHINE.
remove the goofy hack to have the target be the LIF file,
just build the boot program with this Makefile.
just add to CFLAGS, don't override.
use NOMAN.
2002-11-28 06:00:28 +00:00
chs
fe563d9169 the SIZEOF_HEADERS thing doesn't work with the current toolchain,
just use 1 page for now.
2002-11-28 05:56:51 +00:00
chs
176b75763b Put interface attributes on the device, not another attribute with
the same name as the device.
2002-11-28 05:53:23 +00:00
chs
27f9e27d6a de-__P, remove register, ansify, KNF.
remove whacky compat stuff (our normal cross-compat stuff will handle it).
fix endian dependencies and type-size errors, it works on little-endian now.
terminate the LIF directory after the last entry we use.
just use the filename last component of the file we're given for its name
in the LIF directory (if the path has a slash).
truncate the century part of the year for the BCD date, like hp-ux does.
check error returns.
2002-11-28 05:51:02 +00:00
chs
2c73702df2 de-__P, remove register, ansify, KNF 2002-11-28 05:38:41 +00:00
fvdl
ea871d0671 Only include IPI stubs in the MULTIPROCESSOR case. From Hubert Feyrer. 2002-11-27 21:59:55 +00:00
pk
4cd21bc0aa Sync machdep sysctls with sparc. 2002-11-27 18:00:27 +00:00
atatat
7caa308c63 Complete the rename: s/sa_/<compat>_sa_/g
Also tweak the darwin siginfo stuff to avoid the same type of collision.
2002-11-27 16:44:01 +00:00
pk
ba4983b5db Provide sparc v8 multiply/divide routines which are copied over the base
v7 versions on sun4m and sun4d machines. Based on Chris Torek's BSD/OS
code.
2002-11-27 16:08:34 +00:00
tron
7ef75ab314 Fix namespace clash caused by addition of sigaction(2). 2002-11-27 14:36:12 +00:00
wiz
53447847a8 Fix typo in comment. 2002-11-27 13:47:15 +00:00
tron
b60d9eb23c For some mysterious reason we have to actually install "siginfo.h" to be
able to use it.
2002-11-27 13:30:06 +00:00
junyoung
f8c198033a Program header types 0x60000000 ~ 0x6fffffff are reserved for
OS-specific semantics.
2002-11-27 13:15:50 +00:00
yamt
2331faab98 more XXX comment. 2002-11-27 11:36:40 +00:00
shin
57889e8f74 comment 'makeoptions DEFGP="-G nn"' to resolve gp-size overflow.
even NULLCONF requires "-G 0".
fix PR kern/19184.
2002-11-27 07:33:01 +00:00
itojun
be9a8d8e2f recover original stanford copyright. sync w/kame 2002-11-27 05:09:36 +00:00
itojun
ae1b88aa21 "tv->tv_sec * hz" could overflow a long. millert@openbsd 2002-11-27 04:07:42 +00:00
itojun
dfd721e53e small SO_RCVTIMEO values are mistakenly taken to be zero. FreeBSD PR kern/32827. 2002-11-27 03:36:04 +00:00
simonb
9bc5fa88bb In configure_bus() return early if there are no devices on the bus to
configure.
2002-11-27 02:53:10 +00:00
fvdl
39652b6d2a Only take the kernel lock if we interrupted while < IPL_SCHED. Handlers
at higher levels must therefore provide their own locking. Currently
this is only serial interrupts (com), which has COM_MPLOCK for this
purpose.
2002-11-27 00:43:12 +00:00
fvdl
18ad7e80b6 Specify the interrupt frame as the argument to i386_int(un)lock. 2002-11-27 00:41:59 +00:00
manu
dfa96ff4b3 Add signal delivery for the PowerPC. Everything is implemented except siginfo.
The stack layout is observed from stack dumps on Darwin, so it should be
very accurate.
2002-11-26 23:54:09 +00:00
manu
edff1c8d0a There is too much debugging, it's getting annoying. Let's remove some. 2002-11-26 23:48:44 +00:00
lukem
0635de35a3 Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more. 2002-11-26 23:30:07 +00:00
christos
729ccbc9cd si_ -> sel_ 2002-11-26 19:49:00 +00:00
christos
410171110f change fields of struct selinfo from si_ to sel_ so that the don't conflict
with siginfo members.
2002-11-26 19:08:06 +00:00
christos
0cce063c0c deal with siginfo changes, but don't enable SA_SIGINFO outside the kernel
yet, since we are not ready.
2002-11-26 19:07:14 +00:00
christos
50f8466034 This is not used yet. 2002-11-26 19:06:38 +00:00
christos
15159edd96 s/si_addr/sdl_addr/ 2002-11-26 19:05:29 +00:00
christos
f5ff34bbc6 si_ -> sel_ 2002-11-26 18:51:18 +00:00
thorpej
09dfaace39 The traditional C preprocessor is fixed in GCC 3.3 now, so no need
to skip -traditional-cpp for HAVE_GCC3.
2002-11-26 18:51:12 +00:00
christos
514f7047e4 si_ -> sel_ 2002-11-26 18:49:40 +00:00
christos
fa94542be0 s/si_/sel_/g 2002-11-26 18:45:22 +00:00
christos
e22906f6d0 si_ -> sel_ to avoid conflicts with siginfo. 2002-11-26 18:44:34 +00:00
christos
116bcb05d0 rename: s/sa_/<compat>sa/g 2002-11-26 18:43:20 +00:00
christos
daa59d8957 rename sa_ -> linux_sa_
first attempt at providing siginfo_t to the signal handler.
2002-11-26 18:42:38 +00:00
christos
26f075fcb4 minor cleanups. 2002-11-26 18:40:46 +00:00
thorpej
e99463aee0 Regen: Add IBM 133 PCI-X Bridge. 2002-11-26 18:13:29 +00:00
thorpej
83e0125ae2 Add IBM 133 PCI-X Bridge. 2002-11-26 18:12:27 +00:00
thorpej
59b5e4748c Regen: Add Intel i80321 I/O Processor. 2002-11-26 18:10:10 +00:00
thorpej
32c4000a56 Add Intel i80321 I/O processor. 2002-11-26 18:09:27 +00:00
pk
007c037980 * pmap_destroy(): reset the region gap
* pmap_quiet_check(): add check for pmeg leaks on sun4/4c (this is DEBUG only).
2002-11-26 15:09:56 +00:00
pk
0fad562c7c The presence of the `timer at obio' attachment is independent of the
various CPU support settings.
2002-11-26 14:43:39 +00:00
pk
ec667a0f51 Add `machdep.cpu_arch' sysctl to determine the CPU architecture version.
Currrently, cpu types `sun4' and `sun4c' produce version 7, all others
version 8.
2002-11-26 14:36:10 +00:00
manu
6ce9cf3a84 regen 2002-11-26 08:10:58 +00:00
manu
11aa9ca2f6 Add thread_policy and clock_get_time mach traps. Implement
mach_sys_clock_sleep_trap. This makes sleep(3) emulation working.
2002-11-26 08:10:14 +00:00
fvdl
cc461b0d7b Remove oboe, it's broken for non-i386 (vtophys usage which should be
bus_dma).
2002-11-26 03:27:49 +00:00
fvdl
85bb01d1f3 Add a comment marking this file as broken on most non-i386 -- vtophys usage. 2002-11-26 03:25:51 +00:00
yamt
42a8b926f9 eliminate i_ino from in-core inode
and use local variable instead.

ok'ed by Frank van der Linden.
2002-11-26 01:23:30 +00:00
manu
bd9d3fb902 There are functions to convert between sigaction and sigaction13. Use them. 2002-11-26 00:05:41 +00:00
simonb
85a8258aac The "osrc" variable in gre_mobile_input() is only ever set but not
referenced; remove it.
2002-11-25 23:37:08 +00:00
manu
29a7621173 regen 2002-11-25 22:26:21 +00:00
manu
53356d6169 Added an empty shell for signal delivery. Now we just have to fill the
machine dependant bits.
2002-11-25 22:25:12 +00:00
martin
01740de795 Remove assumptions about endianess of bus_space_vaddr mappings, replace
with an explicit probe.
2002-11-25 21:24:28 +00:00
fvdl
c858fe312c Add 'U' to 16-bit hex constants to stop gcc 3.3 from complaining. Shouldn't
really be needed, but.. (from scw and thorpej).
2002-11-25 20:49:55 +00:00
fvdl
f870e5db60 #if 0 out unused static arrays to pacify gcc 3.3 2002-11-25 20:43:44 +00:00
fvdl
6a97966f21 Remove aac. 2002-11-25 20:30:48 +00:00
fvdl
a06b80d60e Actually, back out previous. Better have it not compile on LP64 to show
that it's broken for that case.
2002-11-25 20:29:14 +00:00
fvdl
2b98828aef Add some hideous casts to get this to compile on LP64. Doesn't look like
it has a chance of working, though.
2002-11-25 20:24:08 +00:00
tsutsui
41f0cf8abc - Remove code to map PCI_MAPREG_TYPE_MEM, which is not supported by 53c974.
- Print PCI devinfo in the attachment message.
2002-11-25 13:41:35 +00:00
scw
61724834f9 Fix a typo to make this compile with MEMSIZE is defined. 2002-11-25 11:26:22 +00:00
schmonz
aee43321d1 Report ourselves as Linux 2.4.18 on powerpc, too. 2002-11-25 10:34:34 +00:00
itojun
f81516ac1f 1.8 committed by mistake 2002-11-25 08:50:07 +00:00
itojun
a1a2fcda1e no need for error check after MEXTMALLOC - jdolecek 2002-11-25 08:31:58 +00:00
thorpej
d94a4ac49e Avoid strict-alias warnings. 2002-11-25 07:47:53 +00:00
thorpej
1ed8cb9316 Avoid strict-alias warnings. 2002-11-25 06:40:26 +00:00
itojun
387ba53bc6 MEXTMALLOC() can fail even if M_WAITOK, if arg is too big for malloc(). 2002-11-25 06:32:37 +00:00
thorpej
b65c7c5437 Avoid strict-alias warnings. 2002-11-25 05:37:00 +00:00
thorpej
7c2e6f52c6 Avoid some "comparison always false" warnings by only compiling
the code in question if ULONG_MAX > 0xffffffff.
2002-11-25 05:25:00 +00:00
thorpej
6439a43f9a Remove redundant (and incorrect) extern decl. 2002-11-25 05:13:41 +00:00
thorpej
43bd3cb89d Avoid strict-alias warnings. 2002-11-25 05:12:06 +00:00
thorpej
2e9c89031c Statements after labels. 2002-11-25 05:11:32 +00:00
thorpej
35a57313da Use tlbrelo and tlbrehi. 2002-11-25 05:10:39 +00:00
thorpej
47646b017e Add -mcpu=403 to AFLAGS. 2002-11-25 02:56:20 +00:00
thorpej
54dbc0eab3 Avoid strict-alias warnings. 2002-11-25 02:46:10 +00:00
thorpej
113c35cbf2 Remove an unnecessary token-paste, as pointed out by GCC 3.3. 2002-11-25 02:45:46 +00:00
thorpej
d32a923263 Avoid strict-alias warnings. 2002-11-25 02:31:14 +00:00
thorpej
c23c86e36b Add ULL to 64-bit integer constants. 2002-11-25 02:30:38 +00:00
thorpej
de5b141b6a Avoid strict-alias warnings. 2002-11-25 02:28:56 +00:00
thorpej
f5a27686e2 Fix a strict-alias problem uncovered by GCC 3.3. 2002-11-25 02:23:17 +00:00
thorpej
0ea203767c Add ULL to 64-bit integer constants. 2002-11-25 02:16:50 +00:00
thorpej
5b009a398e Avoid strict-alias warnings. 2002-11-25 02:14:30 +00:00
thorpej
0aa1f82268 Remove an unnecessary cast in an asm statement. 2002-11-25 02:13:59 +00:00
thorpej
c8f5c657b5 Add ULL to a 64-bit integer constant. 2002-11-25 02:11:23 +00:00
enami
e58966cf92 Explicitly include machine/atomic.h since this file uses inline function
defined there.  This is necessary when LOCKDEBUG is defined.
2002-11-25 02:10:28 +00:00
thorpej
3151023170 Remove redundant (and incorrect) extern decl. 2002-11-25 02:07:37 +00:00
thorpej
796aa6a84a Statements after labels. 2002-11-25 02:06:16 +00:00
thorpej
d6f8cc841d Avoid strict-alias warnings. 2002-11-25 01:55:21 +00:00
thorpej
b409a344b5 Avoid strict-alias warnings. 2002-11-25 01:44:21 +00:00
thorpej
0739364536 Avoid a strict-alias warning. 2002-11-25 01:43:09 +00:00
thorpej
2cec7d4fd9 Makefile.kern.inc now includes -Wno-sign-compare, so use the default
warnings now.
2002-11-25 01:38:32 +00:00
thorpej
9337fb430e Add -Wno-sign-compare; that flag was made implicit with -Wall in
GCC 3.3, and our sources aren't really up to the task, yet.
2002-11-25 01:37:11 +00:00
thorpej
3911a545e1 No newlines in string constants. 2002-11-25 01:36:35 +00:00
thorpej
6fd88f0e65 Avoid a trigraph. 2002-11-25 01:33:51 +00:00
thorpej
11707809eb No newlines in string constants. 2002-11-25 01:31:12 +00:00
fvdl
9fcc1a32d4 Add COMPAT_NETBSD32 and EXEC_ELF32. 2002-11-25 01:11:37 +00:00
fvdl
5fc8b835db First cut at GENERIC kernel. 2002-11-25 01:05:58 +00:00
fvdl
144469b350 Add strtoul.c 2002-11-25 00:55:22 +00:00
fvdl
77decc8b5a Avoid uninitialized var usage in detach. 2002-11-25 00:51:33 +00:00
fvdl
90dbf6a726 Need <sys/device.h>; on a lot of platforms it's probably included
indirectly, but not on some others.
2002-11-25 00:49:52 +00:00
fvdl
4732d6d0dd Set warning flags seperately, until the kernel can be compiled with
the default warning flags on with gcc 3.
2002-11-25 00:32:43 +00:00
fvdl
be7e49f1cd No MCA here. 2002-11-25 00:28:46 +00:00
lukem
1847a76b62 use NOMAN instead of MKMAN=no. noted by David Bonnafous on port-i386@ 2002-11-24 23:48:48 +00:00
manu
589ff87f68 Rewrite the excessive recursive loading protection by actually counting the
recursions instead of the total function calls. We limit to 6 recursion,
which is what Darwin does.
2002-11-24 21:59:43 +00:00
martin
070e18f3f3 Assign a major number for "lpt* at ebus?". 2002-11-24 20:58:06 +00:00
christos
40983baedb add mach_sigcode.o to the files that depend on assym.h 2002-11-24 18:56:01 +00:00
thorpej
0eb35ef834 Instrument FP emulation traps. 2002-11-24 17:34:06 +00:00
thorpej
3d64e26035 Add an EVCNT_ATTACH_STATIC() macro which gathers static evcnts
into a link set, which are added to the list of event counters
at boot time.
2002-11-24 17:33:43 +00:00
manu
5bdd9578e4 Better vm_allocate emulation. 2002-11-24 17:22:59 +00:00
thorpej
baf5c58201 Use EVCNT_TYPE_TRAP. 2002-11-24 17:05:45 +00:00
yamt
3af39ea015 in lfs_fakebuf, make corresponding buffer busy to avoid
reading blocks that isn't written yet.
it's needed because we'll update metadatas in lfs_updatemeta
before data pointed by them is actually written to disk.

XXX should be solved with fake inode/indirect blocks instead?
2002-11-24 16:39:13 +00:00
yamt
290fa35864 add a XXX comment to lfs_reserve.
* it isn't safe to unlock vp here
 * because we're passing data using inode from namei.
 * (eg. i_offset)
2002-11-24 16:09:50 +00:00
isaki
fe7b4d99f1 Fix typo. s/cfdata/cfdriver/ 2002-11-24 13:33:45 +00:00
fvdl
14480382cd Correct old syscall path the same way as previous commit. 2002-11-24 13:19:27 +00:00
scw
46a9e7ed35 Quell uninitialised variable warnings. 2002-11-24 12:12:01 +00:00
scw
918d34d917 Quell an uninitialised variable warning. 2002-11-24 12:07:52 +00:00
scw
5b10944d66 Fix uninitialised variable warnings. 2002-11-24 12:06:12 +00:00
scw
7a4dfd98e4 Quell an uninitialised variable warning. 2002-11-24 11:52:13 +00:00
scw
e591e98c92 Quell uninitialised variable warnings. 2002-11-24 11:50:32 +00:00
manu
1aaacd96d2 Give a second chance when vm_allocate fail, by finding another free region.
Seems to fix some problems.
2002-11-24 11:49:36 +00:00