dholland
ef066a156b
Some assorted minor cleanups, from larn 12.2.
2008-02-03 19:29:50 +00:00
dholland
d7ba3de791
Make a bunch of functions static. Merged from larn 12.2.
2008-02-03 19:20:40 +00:00
uwe
f2d6229f80
Mark up PMFE_* list properly.
2008-02-03 17:18:18 +00:00
tsutsui
b143589a1b
No need to preserve RE_NTXDESC_RSVD on re_start().
2008-02-03 17:14:35 +00:00
uwe
b5fde352cb
pmf_device_register() returns false on error.
2008-02-03 16:56:42 +00:00
chris
37f9401024
Fix-up boot32 to work on A7000+
...
Logically the previous code should have worked but didn't. It appeared to
fail when reading the relocation table from physical memory.
To work-around this issue we now compact the relocation table (it shrinks
from ~800 entries to ~15 on a 2.5MB kernel) The compacted table is small
enough to copy into the page of memory we use to do the relocations. The
relocation code can now find the table, and carry out the relocations.
To help with debugging the screen border will change colour:
Red: Running without the MMU turned on (IE 1-1 physical mapping)
Note that the border will stay red a while as we're copying the
kernel over at this point.
Green: We've finished copying the kernel over (unless the code breaks
this will be rarely seen)
Blue: We're running on the bootstrap L1 table, and just about to call
the kernel.
Other tweaks include:
* copy the kernel 32bits at a time, rather than 8 bits at a time.
* assert that the relocations are 32bit aligned (so the above works)
* flush the cache and write buffers before turning off the MMU.
Tested by myself on an A7000+. Tested by skrll@ on Risc-PC and A7000.
2008-02-03 14:59:16 +00:00
martin
27f2dfb174
Adjust assembler in_cksum code to new signature and re-enable it.
2008-02-03 13:27:12 +00:00
martin
6ba1a4c045
defflag CPU_IN_CKSUM
2008-02-03 13:25:57 +00:00
skrll
c5f6417a84
Add bootinfo support for hppa.
...
Initially supply the booted kernel filename and symbol table information.
Create sysctl to access booted kernel.
Bump version of boot to 1.4
2008-02-03 12:09:40 +00:00
drochner
d9459c5f21
share some code for USB root hub emulation which is common in the 3
...
host controller implementations, start with two little functions
which fake up string descriptors (which were inconststent, language
table fetching didn't interoperate with other code in the tree)
2008-02-03 10:57:11 +00:00
dogcow
8f7115c4c1
make it compile for the !defined(DEBUG) case.
2008-02-03 09:25:49 +00:00
matt
a7a4e9f149
Preliminatry TC support.
2008-02-03 08:45:40 +00:00
matt
7a66d8d486
use memt instead of iot since everything is memory mapped.
2008-02-03 08:42:48 +00:00
matt
9c814f7331
Reorganize a bit to be able to support multiple sgmaps.
2008-02-03 08:41:22 +00:00
matt
62d5d69912
De-__P
2008-02-03 08:39:48 +00:00
matt
36cebfbb00
misc type cleanups
2008-02-03 08:37:40 +00:00
matt
4471287922
sysmachine uses lwp now.
2008-02-03 08:37:06 +00:00
matt
65f79aefb7
Make process_sstep use ANSI declaration.
2008-02-03 08:36:41 +00:00
matt
4b1e334f7e
No need for RW_OWNER/RW_LOCK anymore
2008-02-03 08:35:33 +00:00
matt
bae16e79c9
Add physaddr support from mbufs (commented out since it doesn't quite work
...
right yet).
2008-02-03 08:34:57 +00:00
matt
54c38b27ff
Add {,_}atomic_cas_{32,ptr,uint,ulong}. Nuke rw_cas
2008-02-03 08:34:04 +00:00
matt
c9c1064fa3
Switch this to use atomic_cas_ulong.
2008-02-03 08:33:00 +00:00
matt
67ba75fa05
Change IPL_SOFTBIO to 0x0b
2008-02-03 08:32:25 +00:00
matt
2395825b1c
Add PMAP_VTOPHYS
2008-02-03 08:32:08 +00:00
matt
7fbe2ba862
Make sysmachine take a lwp instead of a proc.
2008-02-03 08:31:48 +00:00
matt
15753da255
Add cpu_intr_p (checks PSL_IS in PSL).
...
Change badaddr to take a volatile pointer
2008-02-03 08:31:09 +00:00
matt
0ae740580b
change all u_int{8,16,32}_t to uint{8,16,32}_t
2008-02-03 08:30:19 +00:00
matt
350555cd1f
Add the .C versions for the atomic ops.
2008-02-03 07:46:38 +00:00
tsutsui
0dd140599f
Use some loops to prime the cache on measuring the PCC clock frequency.
...
As per the similar code on mips ports (though no visible difference).
2008-02-03 07:31:21 +00:00
matt
06531ceafe
Add a syntax-only target which attempts to compile the entire kernel as one
...
entity. Think of it as super-lint. Due to bugs in the GCC C frontend it
doesn't quite work right but it does provide useful feedback.
2008-02-03 06:46:29 +00:00
xtraeme
4d24afd74c
Xref wdogctl(8).
2008-02-03 06:41:39 +00:00
matt
43fc601301
Use uintN_t in comments (since that's what are really using) instead of
...
u_intN_t
2008-02-03 06:28:01 +00:00
xtraeme
430c4cd21f
Add DTES64 and SSE4 related bits to CPUID2_FLAGS, from FreeBSD.
2008-02-03 06:19:06 +00:00
matt
b1a0879c83
sh5 is dead. sh[35]e[bl] -> sh3e[bl]
2008-02-03 06:10:53 +00:00
tsutsui
a775e1fad0
Remove an unnecessary initializer.
2008-02-03 05:31:17 +00:00
mrg
313548c7c8
fix a MKCRYPTO=no bug - default_memalloc()/default_memfree() are
...
defined static but not used.
2008-02-03 04:07:34 +00:00
dholland
ded3829627
Use mkstemp to make the temporary files used when you win.
2008-02-03 03:49:15 +00:00
dholland
511d1e002c
Since games are (now) setgid, not setuid, it is no longer necessary to
...
manipulate the effective uid, only the effective gid.
2008-02-03 03:45:55 +00:00
christos
f408a0fef8
comment out some asserts for now.
2008-02-03 03:40:52 +00:00
wiz
1b89543c7f
Document -d.
2008-02-03 03:29:17 +00:00
mrg
9805c65117
merge gcc-4-1-20080202-132073.
2008-02-03 02:48:44 +00:00
itohy
87e62584f4
Fix table.
2008-02-03 02:35:43 +00:00
mrg
a67241065b
upgrade to GCC-4.1 20080202 (svn 132073). this includes fixes for
...
these GCC PR's:
c++/17763
middle-end/25445
c++/27177
target/28307
rtl-optimization/30113
target/31331
c++/31941
rtl-optimization/31944
tree-optimization/31966
c++/32112
c++/32113
rtl-optimization/32450
target/32506
tree-optimization/32533
target/32641
target/32660
tree-optimization/32681
middle-end/32912
c++/32992
tree-optimization/33142
target/33256
bootstrap/33418
c++/33744
driver/33772
rtl-optimization/33822
middle-end/33826
c++/33959
bootstrap/34003
middle-end/34030
middle-end/34130
rtl-optimization/34456
libgfortran/34699
c/34993
c++/35007
2008-02-03 00:08:23 +00:00
mrg
b8deac4d69
upgrade to GCC-4.1 20080202 (svn 132073). this includes fixes for
...
these GCC PR's:
c++/17763
middle-end/25445
c++/27177
target/28307
rtl-optimization/30113
target/31331
c++/31941
rtl-optimization/31944
tree-optimization/31966
c++/32112
c++/32113
rtl-optimization/32450
target/32506
tree-optimization/32533
target/32641
target/32660
tree-optimization/32681
middle-end/32912
c++/32992
tree-optimization/33142
target/33256
bootstrap/33418
c++/33744
driver/33772
rtl-optimization/33822
middle-end/33826
c++/33959
bootstrap/34003
middle-end/34030
middle-end/34130
rtl-optimization/34456
libgfortran/34699
c/34993
c++/35007
2008-02-02 23:40:02 +00:00
joerg
75d2bd4607
Fix flags: cpu_in_cksum should modify cpu_in_cksum.S, not cpufuncs.S.
2008-02-02 23:23:17 +00:00
dsl
9d820ef01c
Regen for pread and pwrite
2008-02-02 22:57:49 +00:00
dsl
543ce18e89
Impletemt pread() and pwrite().
2008-02-02 22:57:05 +00:00
mrg
987268dd69
upgrade to GCC-4.1 20080202 (svn 132073). this includes fixes for
...
these GCC PR's:
c++/17763
middle-end/25445
c++/27177
target/28307
rtl-optimization/30113
target/31331
c++/31941
rtl-optimization/31944
tree-optimization/31966
c++/32112
c++/32113
rtl-optimization/32450
target/32506
tree-optimization/32533
target/32641
target/32660
tree-optimization/32681
middle-end/32912
c++/32992
tree-optimization/33142
target/33256
bootstrap/33418
c++/33744
driver/33772
rtl-optimization/33822
middle-end/33826
c++/33959
bootstrap/34003
middle-end/34030
middle-end/34130
rtl-optimization/34456
libgfortran/34699
c/34993
c++/35007
2008-02-02 22:46:12 +00:00
christos
708c364c0e
namespace protection for csetexpandtc()
2008-02-02 22:06:34 +00:00
dsl
22774d7c0d
Fix the linux32 emulations of fcntl() locking.
...
The 64bit linux emulation versions can't be used because the lock structure
alignment and field sizes all differ.
Since there need to be 4 different versions of the linux struct flock, and
amd64 kernel needs 3 of them compiled in, rather than replicating the same
code block twice more, move the body of the code into a few #defines
that can be expanded with the correct types in the linux[32]_sys_fcntl[64]()
functions.
Should fix problems running progams like skype running under linux32
emulation on amd64.
2008-02-02 21:54:01 +00:00