Commit Graph

60361 Commits

Author SHA1 Message Date
scw
95bf009dca s/walnut/evbppc/ 2002-12-09 12:56:15 +00:00
scw
0e6f5edb27 Delete walnut, add evbppc.
While I'm here, add sh5 and evbsh5.
2002-12-09 12:53:41 +00:00
jdolecek
d9944f3152 need -mno-abicalls in AFLAGS as well, so that .S would be compiled as
non-PIC same way as .c
2002-12-09 12:42:18 +00:00
scw
5b5dfad81e Add evbppc. 2002-12-09 12:29:17 +00:00
scw
67d6f49379 Changes/additions to support evbppc. 2002-12-09 12:28:12 +00:00
jdolecek
a74b5c71e2 build with -ffreestanding 2002-12-09 12:20:56 +00:00
scw
f1d6e9e873 Add pmc.h 2002-12-09 12:17:42 +00:00
scw
5448df2eed New umbrella-port for PowerPC-based evaluation boards.
The first board to be included here is the port to the 405GP-based
Walnut evaluation board, which up until now lived in arch/walnut.

arch/walnut will go away soon, once all the remaining walnut-isms
in the tree have been dealt with.
2002-12-09 12:15:48 +00:00
jdolecek
4f2661e403 add #include <lib/libkern/libkern.h> to pull in prototypes
for couple items which don't have implicit prototypes with -ffreestanding
2002-12-09 12:14:10 +00:00
jmc
4d74b607a2 Restructure how the at_output dma map gets setup. Ask for a dma map that can
support up to the max ohci descriptor segments. Then attempt to fill it in
via a load. Use the number of segments filled in as the basis for figuring
out how many descriptors to supply to the ohci DMA engine.

XXX: Still needs to account for requests which because of splits may overflow
the 6 dma descriptors available today. For now this fixes cases where a
single 512 byte write was getting split into 2 dma segments from 1 incoming
iov request
2002-12-09 09:09:54 +00:00
jmc
2a3e786250 Fix fwohci_write's sanity check against large packets. Max rec is only used
when writing directly to the device (ala IEEE1394_TCODE_WRITE_REQ_BLOCK).
Otherwise the largest size is determined strictly by speed
2002-12-09 07:26:02 +00:00
jmc
11b3f4e7d1 Provide a macro for turning a speed number into a max rec value 2002-12-09 07:24:57 +00:00
jmc
3d5ded55c7 Write sbp2_free_data_mapping and fix a bug where read responses weren't sending
back the right tlabel
2002-12-09 07:23:43 +00:00
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