summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2013-03-02Replace magic numbers with more meaningful (1 << interrupt#) constructs.Miod Vallat
No functional change.
2013-03-02When stealing an ASID, pass sh_tlb_invalid_asid() the involved ASIDPhilip Guenther
instead of -1. ok and prod from miod@
2013-03-02Prefer a pc-relative relocation to mcount(); gets rid of the last TEXTRELMiod Vallat
relocation in libc.so. From NetBSD.
2006-10-06Preliminary bits for SuperH-based ports, based on NetBSD/sh3 codebase withMiod Vallat
minor changes.
2013-03-02Properly conditionalize adding wscons to the list of consoles onMark Kettenis
NWSDISPLAY.
2013-03-02The last use of the int $80 syscall entry was in 5.1, so we no longerPhilip Guenther
need to reserve it ok deraadt@
2013-02-20Increase maximum text and data size limits, and double the default data sizeMiod Vallat
limit. This allows c++ memory hogs, such as pcre's pcrecpp_unittest.cc, to compile on m88k.
2013-02-19Introduce a new cmmu method to return the preferred cache mode bits for theMiod Vallat
kernel APR. Return write-back for every design but those involving 88410, where write through is returned. Apparently the use of writeback on single-processor kernels using 88410 (197SP, 197DP) has only been working by fat chance, and the last two years of uvm changes, as well as the switch to ELF (causing kernel rodata to move `up') exposes silent memory corruption on (88410-size) aliased addresses. (I am guilty of not using my 197DP board much after making 197LE write-back capable, as 197LE turned out to be faster and more stable, for I would have noticed this earlier). Further thought needs to happen about this. It might be possible to switch to writeback by default again as long as bus_dma maps things write-through on 88410 designs, and perhaps with a part of the kernel mapped with a write-through BATC, since BATC have precedence upon page tables. Right now I'm trying to get a stable release out of the door.
2013-02-19Introduce `option M88410', to be added to 88110 system designs making use of theMiod Vallat
#$%&#@! MC88410 chip. This will allow design-agonstic m88k-specific code to be able to tell pure 88110 kernels apart from possible 88110+88410 ones.
2013-02-17Replace assembly statement triggering 88410 commands with a proper volatileMiod Vallat
uint64_t write. While there, implement a real wbinv routine instead of invoking wb, then inv; this avoids unnecessary busswitch register juggling.
2013-02-17Constify struct cmmu.Miod Vallat
2013-02-17Missing end-of-commentMiod Vallat
2013-02-17We deprecated returning to %g7 after a successful system call long ago.Mark Kettenis
These days we use it as a thread register and want to have it initialized to zero for future thread local storage (TLS) support.
2013-02-15We deprecated returning to %g7 after a successful system call long ago.Mark Kettenis
These days we use it as a thread register and want to have it initialized to zero for future thread local storage (TLS) support.
2013-02-14A really working version of MCOUNT.Miod Vallat
2013-02-14Be sure to writeback D$ in addition to invalidate I$ in pmap_proc_iflush(),Miod Vallat
or I$ may reload with stale data. It used to work without this because the kernel used to run in write-through mode. Repairs gdb single-stepping.
2013-02-13De-magic IOM_END like in the rest of machdep.c. OK miod@.Martynas Venckus
2013-02-13- Detect and correct stale GDT user code segment limit causedKurt Miller
by another thread in the same process running on another cpu raising pm_highexec and pm_codeseg. w/help from kettenis@ okay beck@ guenther@
2013-02-12Back out per-CPU kernel profiling, it shouldn't modify a public headerMartin Pieuchot
at this moment.
2013-02-11Fix kernel profiling on MP systems by using per-CPU buffer. PreviouslyMartin Pieuchot
various CPUs were iterating over the same global buffer at the same time to modify it and never ended. This diff includes some ideas submited by Thor Simon to NetBSD via miod@. ok mikeb@, haesbaert@
2013-02-10switch m68k ports to gcc3Miod Vallat
2013-02-09Grammar, typosMiod Vallat
2013-02-09ater -> afterMiod Vallat
2013-02-09Blame the right function when panic'ing.Miod Vallat
2013-02-09Fix indent, add RCS IdMiod Vallat
2013-02-09No longer define EXEC_SCRIPT (probably coming from old PefoBSD). Also,Miod Vallat
DB_ELFSIZE ought to be defined in <machine/db_machdep.h>, not <machine/exec.h>
2013-02-09No longer define the a.out relocation format struct.Miod Vallat
2013-02-09Do not bother defining cpu_exec_aout_makecmds() on platforms where we no longerMiod Vallat
(or never did) support a.out binaries (i.e. where _KERN_DO_AOUT is not defined).
2013-02-06Check for __PIC__, not PIC, as some files in libc will only see the former.Miod Vallat
Fixes the few TEXTREL which crept in libc.so.
2013-02-05Do not profile the various ipi functions. This is a requirement for theMartin Pieuchot
upcoming per-CPU profiling modifications and it does not make much sense to profile such low-level functions anyway. ok kettenis@, miod@
2013-02-03Let the octeon kernel link properly.Brian Callahan
ok miod@
2013-02-02mvme68k ELF bits. Boot block updates heavily based upon the recent mvme88kMiod Vallat
a.out->ELF transition.
2013-02-02hp300 ELF bits. Requires many device and prom related structs to now be declaredMiod Vallat
as packed due to them containing 32-bit types at 16-bit but not 32-bit aligned offsets. The boot block updates (especially mkboot) come straight from NetBSD.
2013-02-02Kernel bits for m68k/ELF, mostly from NetBSD. In addition, the `pmod' symbelMiod Vallat
in fpsp has to be renamed due to a clash with other parts of the kernel.
2013-01-31welcome to 5.3-BETAMiod Vallat
2013-01-29the bus_space api implies that there's a bus endianness that it willDavid Gwynne
swap for you to the hosts endianness. sometimes you dont want this hand holding and just want raw access to the registers. bus_space does have stuff to do this already, but they deal with buffers which can be awkward if you just want to get or set a single register. this adds the following to i386 and amd64: bus_space_read_raw_2() bus_space_read_raw_4() bus_space_read_raw_8() bus_space_write_raw_2() bus_space_write_raw_4() bus_space_write_raw_8() sparc64 already implements this, even though it wasnt part of the official api. how handy. i'll do other archs as i can. kettenis@ and miod@ seem ok with this
2013-01-27Bump MAXTSIZ to 128 MB, some binaries are quite large.Federico G. Schwindt
Agreed with millert@ and guenther@
2013-01-26Make sure new processes get a clean FPU configuration upon startup, byMiod Vallat
resetting the appropriate register in setregs(). Similar in spirit to what m68k does (restoring a null frame), and necessary since m88k doesn't do lazy fpu switching.
2013-01-25Updates for beagle/panda work. OK patrick@ and miod@Brandon Mercer
2013-01-23ARMv7 doesn't support the atomic SWP instruction anymore. Use the atomicPatrick Wildt
load and store instructions instead. ok miod@
2013-01-23Add instruction fault register functions, which will be needed for furtherPatrick Wildt
ARMv7 support. ok miod@
2013-01-22pull the guts of bus_space_barrier into the inline function in the header.David Gwynne
there's only one implementation of it on sparc64, so we shouldnt need to iterate up a chain of bus_space_tags to get to it. because the only argument that is used inside the function is the flags, this can generally be inlined to a single membar opcode. this leaves that op as membar(Sync) for now while kettenis@ thinks about what changing it might mean. ok miod@
2013-01-21Only the mpcpcibus driver is actually using these structures so merge themMartin Pieuchot
in the appropriate .c file and remove unused fields while here.
2013-01-21Remove old functions to access MPC106 registers. Only one of them was usedMartin Pieuchot
to read the revision id that was wrong most of the time.
2013-01-21No need to include pcibrvar.hMartin Pieuchot
2013-01-21Remove unused variable, leftover from rev 1.36.Martin Pieuchot
2013-01-20Add viomb(4).Brad Smith
ok sf@
2013-01-18fix bogus dependencies, and allow mkdep to runMarc Espie
checked on amd64 by rpe@ okay jsing@
2013-01-18Fix the makefile so it works on other architectures.Joel Sing
Found the hard way by bluhm@
2013-01-18Generate assym.h where we need it, instead of reaching around into otherJoel Sing
object directories.