summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2011-04-14Make spstrcpy actually copy strings.Mark Kettenis
2011-04-14Get rid if pcb_uva, like we did on hppa a while ago since it creates evilMark Kettenis
non-equivalent aliases.
2011-04-14Sprinkle prototypes, kill unused locals, and stop contributing to globalMiod Vallat
warning.
2011-04-14Fix copy_on_fault by decrementing the stack pointer before restoring theJoel Sing
return pointer.
2011-04-14Ansify.Joel Sing
2011-04-13Export ENAMETOOLONG such that kernels compile again.Mark Kettenis
2011-04-13Make spstrcpy() work as advertised.Joel Sing
ok kettenis@
2011-04-13Enable siop, scsibus and sd.Joel Sing
No objection from kettenis@
2011-04-13Remove some very noisy debug code.Joel Sing
2011-04-13Do not use a virtual address whilst in physical mode. Instead save the spJoel Sing
and iir in the physical trap save area and copy into the trap frame once back in virtual. ok kettenis@
2011-04-13Unrevert the FS.base diff: the issues were actually elsewherePhilip Guenthe
Additional testing by jasper@ and pea@
2011-04-13do not use NULL in an integer contextTheo de Raadt
2011-04-12A few, hopefully last, NULL-as-an-integer misuses.Miod Vallat
2011-04-10Merge viapm and viaenvAlexandr Shadchin
Pluses: - Add support SMBus for VT82C596, VT82C596B, VT82C686A, VT8231 - Add support ACPI timer for all VIA South Bridges ok deraadt@, tested sthen@
2011-04-10A last few NULL -> 0 corrections.Miod Vallat
2011-04-10Extend the PCI memory address space to 36-bit. The first BIOSen that assignMark Kettenis
addresses >4GB to 64-bit BARs have started to appear. But as long as machines still support running 32-bit operating systems we don't expect to see BARs that aren't addressable using PAE. Fixes a panic reported by william@. ok deraadt@
2011-04-10Add -fno-builtin-exit to CFLAGS to silence gcc4.Miod Vallat
2011-04-10Uninitialized local variable.Miod Vallat
2011-04-10NULL -> 0Miod Vallat
2011-04-10Include <libkern.h> to get proper strrchr() prototype.Miod Vallat
2011-04-10Revert bulk of the FS.base diff, as it causes issues on some machinesPhilip Guenthe
and the problem isn't obvious yet.
2011-04-10hppa64 does not have a libspmathTheo de Raadt
2011-04-10'kernel libraries' always get in the way of the build process. TeachTheo de Raadt
autoconf how to find the spmath files.
2011-04-09don't tell the inline assembly here it will take a 64 bit io portJonathan Gray
value when this isn't possible in practice, use a 32 bit value. ok kettenis@ miod@ oga@
2011-04-09Make this compile without warnings in all modes, and do not use NULL whenMiod Vallat
integer zero is intended.
2011-04-09repair a 32-bit truncation in paddr_t calculation, allowing my 8GBTheo de Raadt
o350 to boot once again ok miod
2011-04-08remove uneeded inlines here as was done in rev 1.24 ofJonathan Gray
the equivalent i386 file ok kettenis@ deraadt@
2011-04-07Make $syscall_return work for real.Mark Kettenis
ok jsing@
2011-04-07%x->%p in various format strings, to avoid truncating values.Miod Vallat
2011-04-07Make sure the ALIGN() macro uses u_long on all platforms for consistency, andMiod Vallat
update the comment block accordingly.
2011-04-07Do not use NULL in integer comparisons. No functional change.Miod Vallat
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
2011-04-07Move a function declaration out of the function since it is used in the nextDale Rahn
function too. 'you should just commit' (without looking at the diff) miod@
2011-04-07Sync apic code from hppa.Joel Sing
ok kettenis@
2011-04-07Initial interrupt handling implementation for hppa64.Joel Sing
ok kettenis@
2011-04-06Declare and initialize safepri, for the kernel to link.Miod Vallat
2011-04-06Use bdev_decl() to get block device function prototypes instead of rollingMiod Vallat
our own (sometimes incorrect).
2011-04-06Give this a chance to compile after iopool changes.Miod Vallat
2011-04-06Fix a typo causing a sanity check in m88110_syscall() to never trigger.Miod Vallat
2011-04-06Sync cpu_match() and cpu_hardclock() with hppa.Joel Sing
ok kettenis@
2011-04-06Move CPL to struct cpu_info.Joel Sing
ok kettenis@
2011-04-06The various read*label() have stopped returning error strings for quiteMiod Vallat
some time, and return errnos instead. Fix or remove out-of-date comments mentioning the error strings, and make their callers check the return value against zero, not NULL.
2011-04-05Add support for per-rthread base-offset for the %fs selector on amd64.Philip Guenthe
Add pcb_fsbase to the PCB for tracking what the value for the thread is, and ci_cur_fsbase to struct cpu_info for tracking the CPU's current value for FS.base, then on return to user-space, skip the setting if the CPU has the right value already. Non-threaded processes without TLS leave FS.base zero, which can be conveniently optimized: setting %fs zeros FS.base for fewer cycles than wrmsr. ok kettenis@
2011-04-05Provide macros for ssm/rsm.Joel Sing
2011-04-05Implement syscall_return.Joel Sing
"Go ahead" kettenis@
2011-04-05Move PSW in struct cpu_info. Also ensure that we leave interrupts disabledJoel Sing
when switching to virtual mode in the trap handler. Re-enabling interrupts whilst in the trap handler for an interrupt makes life interesting. ok kettenis@
2011-04-05Fix logic bug in debug code and enable spllower()/splraise().Joel Sing
ok kettenis@
2011-04-05Rename a few xbow global variable names to make them less ambiguous.Miod Vallat
Remember the hub widget number of each node, instead of only the master node. Use this in xbridge to compute the proper direct DMA map configuration register value (it needs to embed the hub widget number matching the physical address range). This should allow us to pick memory from a different node than the one we booted from, as the DMA window, if wanted.
2011-04-05Enable wide mode for PSW defaults.Joel Sing
ok kettenis@
2011-04-05Remove unused variable.Paul Irofti
2011-04-05Save and restore the PSW value when making a PDC call, rather than blindlyJoel Sing
reloading from kpsl. ok kettenis@