summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2012-09-12Define empty CDIAGFLAGS for programs that use Werror.Christiano F. Haesbaert
Makes "make build" build with WARNINGS=Yes on amd64. ok espie
2012-09-11Cope with PIE, if it is enabled. Note that this has not been completelyTheo de Raadt
tested, but it is time to get it in at least.
2012-09-11Cope with PIE, if it is enabledTheo de Raadt
2012-09-11Add -nopie to the linker flags.Mark Kettenis
2012-09-11Remove the 'OLF method' used for the transition from a.out to ELF andTheo de Raadt
for all the compat layers which are now gone. Linux compat still works because it always used another method in any case, and nothing looks at p_os anymore. ok jsing
2012-09-08Switch landisk to timecounters. Adapted from NetBSD.Miod Vallat
2012-09-08On SPARC64 VI/VII CPUs, use the lseep instruction in the idle loop to force aMark Kettenis
thread switch in the hope the other thread can do some useful work.
2012-09-08Switch hp300 to timecounters. From NetBSD via martin@Miod Vallat
2012-09-08Include files.agp to be able to check against NAGP in the drm agp glue.Martin Pieuchot
2012-09-07bump CPU feature strings to 12 chars since some names are now 8 charactersChristian Weisgerber
long, leaving no space for a trailing NUL; ok kettenis@
2012-09-07Implement pci_min_powerstate().Mark Kettenis
2012-09-07Implement pci_min_powerstate().Mark Kettenis
2012-09-06remove compat_aout support for i386. ok deraadtTed Unangst
miod has requested a stay of execution for compat_aout in general.
2012-09-04Implement pci_min_powerstate().Mark Kettenis
2012-09-04Implement pci_min_powerstate().Mark Kettenis
2012-09-04Implement pci_min_powerstate().Mark Kettenis
2012-09-03remove a NOPIE= that was still lying aroundTheo de Raadt
2012-09-02sparc -nopie conversion, tested by and ok deraadt@.Pascal Stumpf
2012-09-02Allow bootblocks to build in PIE; joint effort with pascalTheo de Raadt
boot.mac might still have a problem since it did change size... looking for a testing report.
2012-09-02Make profiling actually work on hppa.Mark Kettenis
2012-09-02convert to plain -fno-pie/-nopie. Looks good to deraadt@.Pascal Stumpf
2012-09-02Cope with pie-by-default, if it ever happens; ok pascalTheo de Raadt
2012-09-02Bump the buffer size from 32 to 128 bytes, because some responses mayMartin Pieuchot
have 120 bytes of data. Diff by briggs@NetBSD, pointed out by and ok miod@
2012-09-01Fix alpha bootblocks: Compile with -fno-pie, link with -nopie.Pascal Stumpf
tested by naddy@; ok deraadt@
2012-08-31remove some compat junk; ok kettenisTheo de Raadt
2012-08-31Kill NOPIE and NOPIE_FLAGS in loongson/stand.Pascal Stumpf
ok deraadt@
2012-08-31Kill NOPIE and NOPIE_FLAGS in hppa/stand.Pascal Stumpf
ok deraadt@
2012-08-31Move sgi/stand to plain -fno-pie -nopie. Binaries are the same.Pascal Stumpf
tested by and ok deraadt@
2012-08-30Determine the memory and mmio regions based on previously initialzed BARMartin Pieuchot
structures and add the necessary glue to attach drm(4). ok kettenis@
2012-08-30On SPARC64 VI/VII CPUs, use the sleep instruction while spinning to force aMark Kettenis
thread switch in the hope the other thread can do some useful work.
2012-08-30Slightly tweak the way we set up the code patch sections such that we canMark Kettenis
use them to patch inline assembly in C code as well.
2012-08-30Kill NOPIE and NOPIE_FLAGS in sparc64/stand. Binaries are identical accordingPascal Stumpf
to deraadt@, ok kettenis@
2012-08-30Add the possibility to map DMA memory non-cached, based on the i386/amd64Martin Pieuchot
implementation. For the moment only the BUS_DMA_NOCACHE macro is required to build drm on macppc but it will be used soon. ok kettenis@
2012-08-30Use an explicit suffix for the "fld" instruction to shut up clang. The correctMark Kettenis
instruction is fldl sinze we try to load a double-precision value. GCC actually gets it wrong and emits "flds" (which is harmless). Pointed out by Brad. ok guenther@
2012-08-30no md_root_setconfTheo de Raadt
2012-08-29Kill all NOPIE and NOPIE_FLAGS in i386/stand, replacing them with -fno-piePascal Stumpf
and -nopie directly. Binaries from a PIE system are identical to those from a recent snapshot. ok deraadt@
2012-08-29The low-level guts to support MTP (Multi-Threaded Processing) on theMark Kettenis
Fujitsu SPARC64-VI and SPARC64-VII CPUs. Since the two threads on each core share the TLBs of the core we cannot enter different mappings for the same virtual address. Instead we use a scratch register to store the per-cpu pointer. This is very similar to what we do on sun4v. For now we still only attach the first thread of each SPARC64-VI/VII core since we currently don't handle the VMT (Vertical Multi-Threading) of the SPARC64-VI very well.
2012-08-29Make sure the interrupt stack for the boot processor is properly aligned toMark Kettenis
a 64K boundary. This means we don't have to worry about virtual cache aliasing anymore since SPARC V9 CPUs have at most a 16K aliasing.
2012-08-29Change "struct reg" to include a few more registers. We now use the sameMark Kettenis
layout as NetBSD.
2012-08-29Handle T_IPROT traps from userland by call vm_fault() instead of doing anMark Kettenis
unconditional SIGSEGV. Fixes random SIGSEGVs during single-stepping. ok miod@
2012-08-29Get rid of all NOPIE and NOPIE_FLAGS in amd64/stand and use -fno-pie and -nopiePascal Stumpf
directly instead. This will be the approach taken by every other arch too in the near future. It is easier than relying on bsd.own.mk to set these correctly. discussed with and ok deraadt@
2012-08-29Implement pci_min_powerstate().Mark Kettenis
2012-08-29Implement pci_min_powerstate().Mark Kettenis
2012-08-28Add -nopie to LINKFLAGS on ELF architectures. Note that this needs anPascal Stumpf
updated gcc and ld to understand the new -nopie flag. ok deraadt@
2012-08-28Implement pci_min_powerstate().Mark Kettenis
2012-08-28Implement pci_min_powerstate().Mark Kettenis
2012-08-25Another missed PIC -> __PIC__ conversion.Mark Kettenis
ok deraadt@
2012-08-24ansiJonathan Gray
2012-08-24don't read past the end of an array when dumping the stack.Jonathan Gray
same problem/fix as sparc.
2012-08-24Synchronize CR4 and CPUID portions of <machine/specialreg.h> for i386 and amd64Philip Guenthe
Add display of more feature bits: DTES64 PCID DEADLINE F16C RDRAND Add display of "Structured Extended Feature Flags Parameters": FSGSBASE SMEP EREP INVPCID ok mikeb@