Commit Graph

60320 Commits

Author SHA1 Message Date
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
itohy
3e8cfbbf05 minor changes
fix typo
2002-12-06 16:03:52 +00:00
itohy
0d63741702 The buf structure (<sys/buf.h>) is not flexible since it is designed for disks,
and use home-grown buffer structure.

Handle display orientation (normal or upside-down) appropriately
by making use of devinfo of base device.
If the LCD is at an expansion slot of a base unit
whose di_connector_direction == MAPLE_CONN_TOP,
the driver automatically rotates the bitmap.
You need not rotate the bitmap before passing to the driver (spec change).
2002-12-06 15:59:53 +00:00
itohy
f972b5535e Pass devinfo of the base device (subunit == 0 of the same port)
to sub-drivers.
2002-12-06 15:49:31 +00:00
itohy
8f6d7bef0a The value of di_connector_direction is 1 for Dreamcast Gun, 0 for
other devices.  It looks like that the value represents the direction
of expansion units (Visual Memory, etc.).
Add definition of the directions.
2002-12-06 15:47:22 +00:00
pk
721e534a25 Use IPL_SOFTFDC. 2002-12-06 15:37:55 +00:00
pk
e093913db8 Use IPL_SOFTAUDIO. 2002-12-06 15:37:39 +00:00
pk
060fa93542 Start using IPL_* constants from intr.h; phase out PIL_* in psl.h 2002-12-06 15:36:45 +00:00
junyoung
6e278393ba Don't pollute struct cpu_info with throwaway variables. 2002-12-06 14:47:07 +00:00
drochner
10e96d1336 typo in comment 2002-12-06 14:05:34 +00:00
scw
dc63c50793 After a discussion with various folks, fix the strict-alias warning
by ditching 'void *rt' and passing retval directly to sys_mmap().
2002-12-06 12:00:57 +00:00
ad
57d787eeac - Handle DPT ioctls from native NetBSD binaries.
- SCSI targets could disapper mid-way through autoconfig if the board
  notifed us of a changed LCT at the wrong time. Fix that.
2002-12-06 11:22:25 +00:00
tron
96ece1f13e Fix namespace collision caused by recent change to "linux_machdep.h". 2002-12-06 10:51:27 +00:00
scw
57c2c2b87f Add a hack at the end of setregs() which works around a bug which can,
under some circumstances, leave turds in the icache following vmspace
teardown.

It's not yet clear if this is a pmap bug or a toolchain problem since
the hack is unecessary when the kernel is compiled with -O0. Of course
that could just be masking the problem due to increased icache pressure...
2002-12-06 10:22:15 +00:00
scw
f051850107 Avoid strict-alias warnings. 2002-12-06 10:14:10 +00:00
scw
41085b101b fsina.s, fsrra.s and fcosa.s take single-precision operands, not double. 2002-12-06 10:12:13 +00:00
scw
87897c05fe Qualify ptel and tlbcookie fields with volatile since they are
modified by the TLB miss handler.
2002-12-06 10:10:48 +00:00
scw
04fd530ec5 Avoid strict-alias warnings. 2002-12-06 10:07:10 +00:00
scw
381d46a4d1 Hard-code the simulated cpu speed to some fictional value. 2002-12-06 10:06:27 +00:00
scw
f88b19a600 Avoid strict-alias warnings. 2002-12-06 09:57:58 +00:00
simonb
ae1eaadf08 Fix a typo in the PCI map array (no functionality changes in practice). 2002-12-06 05:46:47 +00:00
junyoung
df482bbd8a Rename amd_cpuid_cpu_cacheinfo() to amd_cpu_cacheinfo(). 2002-12-06 05:03:02 +00:00
erh
6278998229 kern/12837: Provide a way to get working devices that violate the usb spec by
returning a non-matching CSW tag.
Defined a quirk for this and set it for Scanlogic SL11R, which gets my
NEO Jukebox working.
2002-12-06 03:57:51 +00:00
junyoung
9104ddf809 Fix compile error. 2002-12-06 03:37:19 +00:00
junyoung
281fa073dc Display the extended feature flags with non-Intel processors rather than
the standard flags. See also PR#19163.

Before:

cpu0: AMD Athlon XP 1800+ (686-class), 1532.11 MHz
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>

After:

cpu0: AMD Athlon XP 1800+ (686-class), 1532.11 MHz
cpu0: features c3cbf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features c3cbf9ff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMXX,MMX>
cpu0: features c3cbf9ff<FXSR,SSE,3DNOW2,3DNOW>

While I'm here, amd_cpuid_cpu_cacheinfo() is an info function rather
than a probe function.
2002-12-06 02:38:25 +00:00
jmc
5a69251dd8 Account for corner cases better in alloc_data_mapping and only ask for a 16s
reconnect time instead of 2^16s
2002-12-06 02:19:34 +00:00
jmc
9e81590397 Fill in sc1394_node_id after a self id cycle 2002-12-06 02:17:30 +00:00
jmc
9a4d03f9b2 Add a def for a smaller reconnect time that will be used by default 2002-12-06 02:14:59 +00:00
simonb
4ea9ad894f Avoid strict alias warning. 2002-12-06 01:55:55 +00:00