Age | Commit message (Collapse) | Author |
|
segment if u-boot reports it. Needed for the utilite where u-boot
reports two 1GB segments of physical memory.
From Patrick Wildt in bitrig with some additional sanity checks added.
|
|
Tested by and ok djm@
|
|
not available to programs anyway.
|
|
the kernel_lock), as we already do better conversions in
user-mode. Yet, no need for every single driver to fiddle with the
conversion code as they are done transparently by common MI code. With
help from armani and miod, support from mpi
ok armani@
|
|
diff from natano@bitrig, with some additional format and cast tweaks
|
|
addressable virtual memory space but arm ports were using a value of
0xffffffff for this.
Instead of using a shared VM_MAX_KERNEL_ADDRESS define add md
VM_KERNEL_SPACE_SIZE defines based on the KERNEL_VM_SIZE values
from the respective machdep.c files.
djm's novena was hitting "panic: bufinit: can't reserve VM for buffers"
without a similiar change.
ok miod@
|
|
novena has 4GB of physical memory and it's u-boot tells us
memstart: 0x10000000
memsize: 0xf0000000
which would previously cause an overflow leading to
"panic: initarm: out of memory"
tweak from and ok miod@
|
|
archs and different sized disk sectors. Make MBR have higher priority
than GPT. Add many paranoia checks and associated DPRINTF's to make
further development easier. Keep everything hidden behind #ifdef
GPT.
Tested and ok doug@ mpi@. Nothing bad seen by millert@.
|
|
|
|
an attempt to boot on sabresd would have tried to deref NULL function
pointers.
|
|
While novena has it's own board id it's u-boot does not set it.
"setenv machid 10ad" in u-boot will set the novena board id (0x10ad/4269).
|
|
as suggested by miod@
|
|
ok miod@
|
|
ok miod@
|
|
sub, inc, and dec) fixed.
the asm read the value from memory into a register, added to it,
and then tried to write it back. after succeeding it doesnt have
to add again before returning.
this splits sub, inc, and dec off from add. sub can use the subf
opcode, and inc and dec can use the addic opcode. explicitely
identify where the modified memory is so we can avoid using "memory"
as a clobber.
ok mpi@
|
|
property of a node if "device_type" is not present.
ok mpi@ miod@
|
|
ok miod@
|
|
delete coredump_trad(), uvm_coredump(), cpu_coredump(), struct md_coredump,
and various #includes that are superfluous.
This leaves compat_linux processes without a coredump callback. If that
ability is desired, someone should update it to use coredump_elf32() and
verify the results...
ok kettenis@
|
|
|
|
ok miod@
|
|
precedence than ?:
ok guenther@ krw@ miod@
|
|
|
|
ok miod@
|
|
this is largely based on src/sys/arch/alpha/alpha/mutex.c r1.14 and
src/sys/arch/sgi/sgi/mutex.c r1.15
always and explicitely record which cpu owns the lock (or NULL if
noone owns it). improve the mutex diagnostics/asserts so they operate
on the mtx_owner field rather than mtx_lock. previously the asserts
would assume the lock cpu owns the lock if any of them own the lock,
which blows up badly.
hppa hasnt got good atomic cpu opcodes, so this still relies on
ldcws to serialise access to the lock.
while im here i also shuffled the code. on MULTIPROCESSOR systems
instead of duplicating code between mtx_enter and mtx_enter_try,
mtx_enter simply loops on mtx_enter_try until it succeeds.
this also provides an alternative implementation of mutexes on
!MULTIPROCESSOR systems that avoids interlocking opcodes. mutexes
wont contend on UP boxes, theyre basically wrappers around spls.
we can just do the splraise, stash the owner as a guard value for
DIAGNOSTIC and return. similarly, mtx_enter_try on UP will never
fail, so we can just call mtx_enter and return 1.
tested by and ok kettenis@ jsing@
|
|
|
|
Tested by jmatthew@
|
|
|
|
had a proper stdint.h. No ports fallout. OK guenther@ miod@
|
|
if callers of save_vec() weren't expected to pass a non NULL pointer
as an argument.
ok kettenis@
|
|
ok guenther@ deraadt@
|
|
the binutils 2.17 linker doesn't make them disappear.
ok deraadt@, guenther@
|
|
these days is incompatible with that practice and leads to deadlocks.
ok jsing@
|
|
This makes the secondary cpu of my PowerMac as fast as the primary one,
and divide the build time by 3 with a GENERIC.MP kernel on MP G5s
Found thanks to MP kernel profiling.
ok dlg@, miod@
|
|
- transplant the clock setup code from octhci
- add a bus space tag to deal with dwc2 using little endian addressing
- bump up the rx fifo size, necessary for umass/sd to work
tested on an edgerouter lite, which can almost boot by itself now
ok uebayasi@ (various parts), miod@ (bus space bits)
|
|
a slightly conmplicated dance where we stash the PAE PDPTEs into the
hibernate resume pagetables and use those before turning off PAE.
Makes (un)hibernate work with the new PAE pmap.
ok mlarkin@
|
|
PAE pmap.
ok deraadt@, mlarkin@
|
|
support we're only wasting memory on the larger PAE page tables without
any real benefit. This allows some simplifications of the low-level
assembly code.
ok mlarkin@, deraadt@
|
|
using that much memory, go for it" tedu@ "I don't see any immediate downsides"
kettenis@
|
|
the extra CLD instructions from when that wasn't true
testing miod@ krw@
|
|
|
|
AV530.
|
|
NX bit for userland and kernel W^X. Unlike the previous c.2008 PAE
experiment, this does not provide > 4GB phys ram on i386 - PAE is solely
being used for NX capability this time. If you need > 4GB phys, use amd64.
Userland W^X was committed yesterday by kettenis@, and we will shortly
start reworking the kernel like we did for amd64 a few months back to get
kernel W^X.
This has been in snaps for a few days and tested by kettenis and myself
as well.
ok deraadt@, kettenis@
|
|
mapping for the first page when tearing things down. Seems to fix the last
bug mlarkin@ has been chasing for a while.
ok mlarkin@
|
|
device_unref() as found by deraadt@.
|
|
while we're chasing at least one remaining bug.
ok mlarkin@, deraadt@
|
|
struct device so there is enough space in the buffer for a NUL and
the unit is included in the string.
discussed with deraadt and millert
|
|
of UVM on PowerPC architectures by breaking pmap_is_referenced() and
friends.
ok kettenis@
|
|
From jeundery at gmail dot com
|
|
include extra sync operations.
ok kettenis@
|
|
discussed with deraadt
|