summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2010-09-06move away from using /**/ to ## for cpp paste in sh locoreJonathan Gray
so we can drop -traditional-cpp ok miod@
2010-09-05Remove bogus LHS casts. makes gcc4 happy.Mark Kettenis
ok miod@
2010-09-05Make gcc4 happy. Similar to what we've done to sparc64 a couple of months ago.Mark Kettenis
ok miod@
2010-09-05Fix inline assembler to make it acceptable to gcc4. Similar to what we'veMark Kettenis
done to sparc64 a couple of months ago. ok miod@
2010-09-01Fix typo in vgafb_mmap(), causing a comparison to always fail. ok kettenis@Miod Vallat
2010-09-01Clean-up the spl dance around suspend/resume. Okay miod@.Paul Irofti
2010-09-01Let non-ykbec kernels link again.Miod Vallat
2010-08-31Do wsdisplay suspend/resume and also the bufq dance.Paul Irofti
Reminded by oga@, okay deraadt@.
2010-08-31Add DVACT_QUIECE support. This is called before splhigh() and beforeTheo de Raadt
DVACT_SUSPEND, therefore DVACT_QUIECE can do standard sleeping operations to get ready. Discussed quite a while back with kettenis and jakemsr, oga suddenly needed it as well and wrote half of it, so it was time to finish it. proofread by miod.
2010-08-31pchbactivate should return result of config_activate_childrenTheo de Raadt
2010-08-31pchbactivate should return result of config_activate_childrenTheo de Raadt
2010-08-31Correctly enable wakeup interrupts after splhigh().Miod Vallat
2010-08-31WIP suspend/resume support for loongson lemote. Okay miod@.Paul Irofti
2010-08-30Hurray! Zaurus apm can now call the activate functions intead of powerhooks.Theo de Raadt
We call the activate functions at splhigh; unfortunately we cannot suspend a zaurus at splhigh because on resume the clock is hosed. We accept this bug for now... perhaps someone can find it? (The powerhooks remain in place in the drivers, and will be roto-tilled once we all the other powerhook-using architectures have switched over) testing by myself and jakemsr; proof reading by oga
2010-08-30Convert all powerhooks to activate functions, and provide powerhook stubs.Theo de Raadt
Of note: lcd stubs get pulled up to the parent; zts has to keep track of whether it is in use or not testing by myself and jakemsr; proof reading by oga
2010-08-30lend a hand keeping beagle up-to-date with what is going on in powerhookTheo de Raadt
vs activate. It compiles.
2010-08-30Change powerhooks into activate functions, and provide stub powerhookTheo de Raadt
functions ok kettenis
2010-08-30disable SVR4 compat by default; ok kettenisTheo de Raadt
2010-08-30delete PROCFS we will never supportTheo de Raadt
2010-08-30ddbcpu for sgi. ok miod@Takuya ASADA
2010-08-29s/wdcactivate/config_activate_children/Theo de Raadt
2010-08-29put the bufq_restart() in the right place, so that a 2nd resume works.Theo de Raadt
how did noone notice for so long? tsk, tsk, tsk. of course, I broke it. tested by jakemsr
2010-08-28Correctly compute memory size if less than 256MB.Miod Vallat
2010-08-28Garbage collect struct dkdriver.Matthew Dempsky
ok miod@; "please go ahead" jsing@
2010-08-27Run powerhooks with interrupts blocked. This requires a bit of a song andTheo de Raadt
dance since some laptops unsuspend out of apm with interrupts enabled?! That causes problems with shared interrupts... but also it would be best if we treat powerhook functions (now backed by activate functions) the same as acpi treats them, and it means that the powerhook wrappers don't need to do their own spl protection. ok kettenis
2010-08-27caught a small typo while reading the code: senor -> sensorRobert Nagy
2010-08-27remove the unused if_init callback in struct ifnetJonathan Gray
ok deraadt@ henning@ claudio@
2010-08-27screen blanking code for SM502, and some smfb code cleanup.Miod Vallat
2010-08-27More killing of PWR_STANDBY. cvs skipped these filesTheo de Raadt
2010-08-27kill PWR_STANDBY (apm can use PWR_SUSPEND instead). While here, renumberTheo de Raadt
PWR_{SUSPEND,RESUME} so that they match the values of DAVCT_{SUSPEND,RESUME} so that we can eventually (many more steps...) kill the powerhook garbage and use the activate mechanism. no objections
2010-08-26Screen burner support for SM712 flavour (Lemote Yeeloong)Miod Vallat
2010-08-25Remove the SPARC_BOOT_ELF define and associated machinery since it doesJoel Sing
not make sense to compile ofwboot without support for ELF. Whilst here, nuke the unused SPARC_BOOT_NFS define and compile elf64_exec.c as an object rather than including it in boot.c. ok miod@
2010-08-23Implement bus_space_barrier() on sgi; on xbridge, this will also flushMiod Vallat
the pci write buffers.
2010-08-23Rework the logic of xbridge pci_conf_{read,write} to avoid doing the disableMiod Vallat
bridge interrupts dance when trying to access an uninplemented ioc3 register. Makes PIC handling simpler as a bonus.
2010-08-21Rename file to reflect that it handles 64 bit ELF only.Joel Sing
ok miod@ (some time ago)
2010-08-21We only need to load 64 bit kernels on sparc64. Clean up the ELF boot codeJoel Sing
and let exec_elf.h do the right thing. ok miod@ (some time ago)
2010-08-19Add "memory" clobber to lidt inline asm, to prevent the GCC optimizer fromMark Kettenis
getting stupid ideas like optimizing away stores to the descriptor that we're setting. This may be overkill, but this code is far from performance critical and it may prevent future surprises. Fixes instant reboots with bsd.rd on Pentiums with the F00F bug. Thanks to espie@, for narrowing the issue down enough for me to find the problem. ok deraadt@
2010-08-18- remove COMPAT_LINUX bits. these architectures are not targetted by theJasper Lievisse Adriaanse
linux emulation layer, nor will they in the future. ok miod@
2010-08-17Make sure fast trap handlers correctly invoke soft interrupts by markingMiod Vallat
them explicitely pending before triggering the softintr; I am ashamed I did not notice this when changing the soft interrupt code 18 months ago. Noticed by claudio@ and beck@
2010-08-16Restore initialization of apcicnaddr which got accidentally removed in revisionMiod Vallat
1.5, about 5 years ago. My bad. ok deraadt@
2010-08-16Make sure we reserve enough room after the kernel image to avoid stompingMiod Vallat
over the PROM page tables on sun4c; also crank the tape kernel generous size estimate to 4MB; crank version. ok deraadt@
2010-08-16Add a dummy elf64.c, effectively removing support for loading 64-bit kernelsMark Kettenis
from cdboot to slim it down below the 32k limit.
2010-08-13Fix indentation.Mark Kettenis
2010-08-11Disable the RTC the periodic interrupt. Leaving it enabled causes theMark Kettenis
Dell Inspirion 4150 to wake up immediately even though RTC_EN isn't set in the PM1 Enable register. ok deraadt@, mlarkin@
2010-08-11crank versionTheo de Raadt
2010-08-11De-inline CHS_rw. Somehow the merger of two monster __asm __inline statementsTheo de Raadt
into one function is generating broken code; it might be because of missing register clobbers. This is a workaround... it'd be nice to know the real problem work done with mlarkin and pirofti
2010-08-10add a description for bsd.sp where appropriate; while here, writeIgor Sobrado
"multiprocessor" in a consistent way. written with lots of good advice from jmc@, who noted that changing hier(7) was not enough and carefully reviewed this diff. ok jmc@
2010-08-10spaces and tabs, no binary changeMarco Peereboom
2010-08-10Someone went nuts with spaces and tabs. No binary change.Marco Peereboom
2010-08-08Accept "ACPI 4" or such, bug in laptop or spec? -- Thinkpad SL510Theo de Raadt
from marco, ok kettenis, hard to argue with it making the laptop work