drochner
095b25e7dd
Add pthread_equal() to libc stubs; this makes a lot of sense for
...
threadsafe libraries implementing own locking functions.
Ride on yesterday's minor version bumps.
2007-11-14 19:28:23 +00:00
pooka
4a0a4d4f30
Fix a problem noticed by Reinoud: the fs would try to release an
...
unlocked vnode when trying to rename a directory. The fix was to
shuffle some bits around and #pray.
The rename routine actually needs a very very major wide-angle whopping:
* it takes locks out-of-order
* it deals with references from SAVESTART lookups in interesting ways
* I doubt there is any guarantee for correct operation if there
are multiple concurrent accesses
* the error branches might just as well call panic() directly
2007-11-14 19:16:29 +00:00
garbled
276f1a3cde
Commit a fix for the _SR regions that are needed by ofppc. Because this
...
platform tends to just declare anything from 0x8 to 0xf as mem or io
regions willy-nilly, we need to avoid batmapping a few of those in order
to save space for USER_SR, KERNEL_SR and KERNEL2_SR. I picked values for
these three that are least-commonly used or used for non-vital things.
2007-11-14 18:34:12 +00:00
ad
d3cd7e49e7
Remove pccons.
2007-11-14 17:58:50 +00:00
ad
ea2d6faf07
Drop _ALIGN_TEXT back to 16. 32 was a bit silly.
2007-11-14 17:58:20 +00:00
ad
9014362808
- Remove I486_CPU, I586_CPU, I686_CPU options. They buy us nothing and
...
clutter the code significantly.
- Remove pccons.
2007-11-14 17:54:56 +00:00
ad
a91a28dac6
- Don't test for I686_CPU.
...
- splipi -> splhigh
- Remove some pointless ifdefs.
2007-11-14 17:51:36 +00:00
ad
3943f6757d
- Set a 4GB limit for GUCODEBIG_SEL, GCPU_SEL and GUDATA_SEL. It can speed
...
up address generation by the MMU.
- Clear the direction flag before entering a signal handler.
- Don't test for I586_CPU.
2007-11-14 17:50:13 +00:00
ad
4be57c5368
Don't try to block if there are already waiters; it doesn't make sense.
2007-11-14 17:20:57 +00:00
joerg
64dcc1f587
Merge from jmcneill-pm:
...
Add some more defines from the spec. Remove some old ones not
existing in the current Intel Architecture Guide. Use some more
understandable names.
ANSIfy and use uintXX_t to hurt my eyes less.
Further improve readability by exploiting __HAVE_TIMECOUNTER as
invariance on x86 platforms.
2007-11-14 15:54:22 +00:00
pooka
8f1126a23d
Shield against returning EJUSTRETURN from relookup()
2007-11-14 15:01:46 +00:00
xtraeme
7d0d95af5a
Add the MCP{67,73} products on nfe_attach().
2007-11-14 14:59:50 +00:00
ad
a8bd124ebf
cpu_hatch: change lapic initialization order.
2007-11-14 14:59:28 +00:00
ad
cf96d257bf
Use i8254_delay().
2007-11-14 14:50:33 +00:00
xtraeme
0b27254380
emo-style: forgot to update the switch for MCP7[13] IDE.
2007-11-14 14:46:12 +00:00
ad
1e3209066c
+LAPIC_DLMODE_EXTINT
2007-11-14 14:45:50 +00:00
ad
3628d5cb5f
Nit.
2007-11-14 14:45:12 +00:00
ad
ffb0a621fe
Set a 4G limit on the per-CPU segment (quicker for the MMU, and no reason
...
to limit it).
2007-11-14 14:44:14 +00:00
xtraeme
cf71912f31
Sync with reality.
2007-11-14 14:31:40 +00:00
yamt
326b67ad4b
m_print: avoid sign extention of m_flags.
2007-11-14 14:11:57 +00:00
xtraeme
6ffcc39251
Attach to NVIDIA MCP73 now that we have the PCI id.
2007-11-14 12:42:20 +00:00
xtraeme
a7040ff1de
Attach to NVIDIA MCP67/73 Ethernet controllers.
2007-11-14 12:40:54 +00:00
xtraeme
acdedfe652
Attach to the NVIDIA MCP7[37] IDE Controllers.
2007-11-14 12:30:48 +00:00
xtraeme
6a9f190843
regen
2007-11-14 12:27:35 +00:00
xtraeme
6506597274
Add NVIDIA MCP7[37] devices, from OpenBSD.
2007-11-14 12:27:18 +00:00
xtraeme
3ec4cecbc6
Attach to more NVIDIA SMBus controllers.
2007-11-14 12:12:27 +00:00
martin
e6116bac33
Add a missing "else". Should finally fix PR kern/37110.
2007-11-14 12:05:42 +00:00
ad
61e62d44f3
Remove limited use configs (should be custom, requires re-soldering BIOS
...
chip, vanity config, can be done at runtime, etc).
2007-11-14 11:23:04 +00:00
yamt
d2f81c7a05
fix freecheck.
2007-11-14 11:14:13 +00:00
ad
88697952bb
Clear the direction flag on entry to the kernel.
2007-11-14 11:09:49 +00:00
yamt
1c679832ee
add \n to printf messages.
2007-11-14 11:06:53 +00:00
yamt
f638ba54b7
call debug_init earlier. ie. before malloc is used.
2007-11-14 11:04:07 +00:00
wiz
2b168f8511
gettext-0.17 out.
2007-11-14 06:16:16 +00:00
ad
a571720649
Fix some problems with the tty signalling code.
2007-11-14 01:15:30 +00:00
cube
cb1f63b2dc
Follow up on arc -> arcnet renaming. Pointed out by joerg@.
2007-11-14 01:11:14 +00:00
cube
7e42547b90
Rename 'arc' into 'arcnet' to avoid conflict with
...
sys/arch/arc/conf/files.arc's machine statement.
2007-11-13 23:22:06 +00:00
he
0f71cb6df3
Mark libatf_p.a with profile. Fixes sun2 build.
2007-11-13 22:46:01 +00:00
ad
dbd3ed7b2a
Remove KERNEL_LOCK_ASSERT_LOCKED, KERNEL_LOCK_ASSERT_UNLOCKED since the
...
kernel_lock functions can be patched out at runtime now. Assertions are
provided by the existing functions and by LOCKDEBUG_BARRIER.
2007-11-13 22:14:34 +00:00
ad
dbe854de34
Make it build again.
2007-11-13 22:09:37 +00:00
joerg
fa98d432c4
Force all interrupts to notify the primary CPU's APIC by default,
...
independent on what the BIOS programmed the IOAPIC for.
2007-11-13 21:45:40 +00:00
garbled
53a6c19ca5
Add code to detect and initialize the com port correctly, so that we have an
...
actual real console when booting.
2007-11-13 19:17:30 +00:00
ad
61bbd00d33
In cpu_hatch(), recompute ci_tsc_freq instead of using the boot CPU's value.
2007-11-13 18:41:59 +00:00
ad
a8a8de7393
When running uniprocessor, patch _kernel_lock() and _kernel_unlock() to
...
do nothing more than "nop; ret".
2007-11-13 18:38:58 +00:00
pooka
eb9f86bac5
don't init the device since it's not part of puffs anymore
2007-11-13 18:35:56 +00:00
ad
6a1fab7659
Fix the fsbase/gsbase stuff to work in combination with RAS.
...
Still not working reliably on my AMD K7 for some reason.
2007-11-13 18:20:18 +00:00
ad
acdc596fb9
Add _lwp_ctl() - sorry, I thought I had checked this in yesterday along
...
with makelintstub.
2007-11-13 17:38:55 +00:00
tsutsui
672990c37a
Fix e2fs_itpg calculation (a rounddown bug).
2007-11-13 17:25:43 +00:00
ad
b919eb8116
Crank libpthread to 0.8. It now uses _lwp_ctl(), and it's handy to keep
...
0.7 hanging around for old kernels.
2007-11-13 17:22:51 +00:00
ad
66ac2ffaf2
Mutexes:
...
- Play scrooge again and chop more cycles off acquire/release.
- Spin while the lock holder is running on another CPU (adaptive mutexes).
- Do non-atomic release.
Threadreg:
- Add the necessary hooks to use a thread register.
- Add the code for i386, using %gs.
- Leave i386 code disabled until xen and COMPAT_NETBSD32 have the changes.
2007-11-13 17:20:08 +00:00
ad
3c776c8aa6
Bump libc minor for _lwp_ctl, libpthread constructor changes.
2007-11-13 17:13:14 +00:00