Commit Graph

60348 Commits

Author SHA1 Message Date
jmc
1f133763ba Don't need sbp2_datamapping. Each one is tracked via the associated orb 2002-12-09 07:23:24 +00:00
simonb
719522fdf3 Add "sqphy" for the PHYs on the PB1500.
Add a note that this kernel is for the PB1000 and PB1500 boards.
2002-12-09 06:54:25 +00:00
itojun
a02a0a383e don't permit port spec on tunnel mode policy. sync w/kame. 2002-12-09 03:20:45 +00:00
david
6189641f30 Don't want cardbus here, since there are no devices on it.
Thanks to Krister Walfridsson for mentioning it.
2002-12-09 02:38:13 +00:00
martin
92fb024e28 Follow the sparc port and use the MI versions of setrunqueue and
remrunqueue.
2002-12-08 22:30:53 +00:00
manu
4386631757 regen 2002-12-08 21:53:57 +00:00
manu
9f6565f2bd A working fork/vfork implementation. Darwin fork differs from our fork by
two ways:
- the child gets its pid as retval[0] (userland stub will turn it into a 0),
retval[1] is 1 and it is 0 in the parent.
- in the child, the fork syscall is successful, hence we must skip the next
instruction.
2002-12-08 21:53:10 +00:00
leo
e1de9af762 regen. 2002-12-08 21:33:56 +00:00
leo
cacf2eb6c2 Make things work with the new autoconf stuff:
- The pcibus is now called 'pcib' and the isabus 'isab'. Their attributes are
  'pcibus' and 'isabus' respectively. This makes the underlying busses
  attach again.
- Initialize the parent structure in the config_console() function.
  Otherwise we end up without a console.
2002-12-08 21:31:35 +00:00
pk
74a8332ee9 cpu_switch(): avoid raising the interrupt level and enabling traps at the
same time as this may cause a spurious interrupt in some implementations.
Pointed out by uwe.
2002-12-08 16:16:59 +00:00
uwe
38b8c5689a Use 0x07ffffff for LOADADDR mask. This still provides for 128MB (and
given that PROM maps just 4 or 16 this is not going to be a bottle
neck).  Doesn't really affect normal kernels, need it for the changed
kernel base address (uncommitted) hack for broken javastation OFW.
Ok by pk.
2002-12-08 14:36:55 +00:00
ichiro
d24191b40d delete unneed pmap for LED and Clock 2002-12-08 13:22:31 +00:00
ichiro
51b12685a4 change flags of pmap_enter() in ixp12x0_io.c, ixpsip_io.c
bug fix: ixp12x0_pci.c
2002-12-08 13:21:44 +00:00
junyoung
81ed087074 - Rename struct linux_ctx to linux_fpctx.
- KNF.
2002-12-08 11:20:22 +00:00
jmc
9bea8ca9b7 Fix logic screwup in determining which bits to set in alloc'ing data maps 2002-12-08 05:59:05 +00:00
jmc
29a7ff6364 Put back MSG_IDENTIFY_LUNMASK (renamed to just be within the IHA namespace.
The definitions were not the same between the scsi_messages file and this
definition so simply removing it here and letting the other one be used
results in incorrect behavior (regardless of whether it made the code
compile....)
2002-12-08 01:09:34 +00:00
manu
3bc2c4cf57 Now it uses BSD system calls with alternate path checks in compat/common,
Darwin does not need freebsd_file.c anymore.
2002-12-08 00:52:04 +00:00
manu
daccb0339c regen 2002-12-08 00:51:24 +00:00
manu
3b0f6d78ed Introduce BSD system calls with alternate patch checking (in /emul) in
compat/common, so that they can be shared by several emulations, and use
them for Darwin.

This removes the ugly dependance on FreeBSD freebsd_file.c for COMPAT_DARWIN
2002-12-08 00:50:23 +00:00
scw
d4cfbd3754 Implement __cpu_simple_lock{,init,try}() for sh5. 2002-12-07 22:31:33 +00:00
tsutsui
12a1bc1fff Add (commented out) options SYMTAB_SPACE. 2002-12-07 21:55:44 +00:00
scw
50247a2a3c Fix PRIiPTR. 2002-12-07 21:37:35 +00:00
tsutsui
005b76cc2a Call ${DBSYM} in SYSTEM_LD_TAIL_EXTRA. 2002-12-07 21:35:58 +00:00
tsutsui
ecc82050ea Call ddb_init() unconditionally if SYMTAB_SPACE is defined. 2002-12-07 21:34:48 +00:00
manu
cafe31204f Try to emulate port_type and bootstrap_look_up (I have no idea of what I am
doing with this one!)
2002-12-07 21:23:03 +00:00
ad
59773dea2e Implement the DPT EATA ioctl() interface. 2002-12-07 19:48:30 +00:00
manu
db18a73b3d Added vm_wire (unused yet) 2002-12-07 19:06:33 +00:00
manu
74a1ce8272 regen 2002-12-07 19:05:30 +00:00
manu
e03fbf9432 The fp_status fasttrap is called processor_facilities_used in userland, and
we discovered the flags it was to collect. Now we need to emulate them, but
it is another story.

load_msr seems only used from kernel code.
2002-12-07 19:05:11 +00:00
junyoung
6b57b095ae Identify many Intel processors which were misidentified previously. 2002-12-07 15:36:20 +00:00
manu
bb8dabd15a regen 2002-12-07 15:33:36 +00:00
manu
9b84721494 Added implementation for cthread_self() and cthread_set_self(). Theses are
used to get and set the thread user value, which is an opaque pointer to
a per thread structure stored in userland. cthread_self() is used by Darwin
as an implementation for pthread_self(), which return the thread id.

We use the p_emuldata field of struct proc in order to keep track of the
thread user value. For now the value is per-process, but we will make it
per-thread when we will take care of threading.

While we are there, do some KNF
2002-12-07 15:33:01 +00:00
junyoung
721f8f7979 Print processor signature (id) after clock frequency. 2002-12-07 15:18:08 +00:00
tsutsui
40ca5f0895 - Add definitions RD_94_[PVS]_EISA_{IO,MEM} in rd94.h.
- J96A (Express5800/240 R4400 EISA) requires different method to access
  todclock from other NEC machines (it's similar with magnum),
  so handle it in p_nec_j96a.c.

Now my NEC Express5800/240 works. (and now I can test 53c700 SCSI.)
2002-12-07 13:09:46 +00:00
pk
6c8d3fba22 Use MI versions of {set,rem}runqueue(). 2002-12-07 10:27:03 +00:00
tsutsui
d3fc98adb8 Remove local definition of MSG_IDENTIFY_LUNMASK, which is now defined in
MI dev/scsipi/scsi_message.h. Fixes kern/19313 from Lubomir Sedlacik.
2002-12-07 10:19:31 +00:00
toshii
21318640e1 Update xfer->frlengths for input isoc transfer. Based on patches from
SOMEYA Yoshihiko.
Also fix error handling for isoc transfer somewhat; usb_transfer_complete
shouldn't be called for more than once.
2002-12-07 07:33:20 +00:00
jmc
a94542f191 Rename the commented out fwscsi -> sbpscsi (names changed once code was
committed)
2002-12-07 07:26:51 +00:00
toshii
44f269f8ff Fix several nits. Mostly from SOMEYA Yoshihiko.
- Call usbd_transfer_complete at splusb.
- Fix a botched for loop in ohci_rem_ed.
- In ohci_close_pipe, wait 1ms after removing an ED to avoid possible race
 condition.
2002-12-07 07:14:28 +00:00
toshii
384b45d203 Remove junk at the end of a DPRINTF. From SOMEYA Yoshihiko. 2002-12-07 06:52:11 +00:00
ichiro
170528a210 delete definition of STAILQ_ENTRY
previous defined sys/sys/queue.h
2002-12-07 01:40:24 +00:00
fvdl
bc4bea2904 Remove duplicate define that crept in. 2002-12-06 23:04:16 +00:00
fvdl
bcceca7072 Sync this with the FreeBSD version, adding a few aliases and new definitions. 2002-12-06 22:46:34 +00:00
christos
0948705ad2 s/NOSYMLINK/O_NOFOLLOW/ 2002-12-06 22:44:49 +00:00
christos
b5b005c247 s/FNOSYMLINK/O_NOFOLLOW/ and allow it in open(2). For compatibility with other
BSD's
2002-12-06 22:43:35 +00:00
fvdl
6b1bf68d9b Add STAILQ_*. Really the same as SIMPLEQ, but this syncs the API with FreeBSD. 2002-12-06 22:23:34 +00:00
tsutsui
a9df47a02d Some cosmetics. 2002-12-06 17:57:28 +00:00
junyoung
43bc578d8b Get rid of #ifdef CPUDEBUG. CPU signature is always displayed. 2002-12-06 17:53:52 +00:00
pk
9ebe0ee7a6 ienab_bi[cs] are never used in a context common to both sun4/4c and sun4m,
so there's no point in constructing common entry points for them in locore.s.
2002-12-06 17:45:39 +00:00
pk
1b719337bb Pass the `device class interrupt level' on to intr_establish() and use to
raise the ipl in the interrupt handlers to the appropriate level. This avoids
interrupt handler interference if one of the devices actually interrupts at
a lower hardware level than the maximum level assined to a device class.

Based on code from Art Grabowski in openbsd.
2002-12-06 16:04:11 +00:00