summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2020-05-18Oops, DDB wrapper around setjmp/longjmp was misplacedTheo de Raadt
2020-05-18Move boot.mac into the Attic.Patrick Wildt
ok deraadt@
2020-05-18Our check to see if the EFI services support Mtftp() doesn't workPatrick Wildt
on U-Boot anymore, since we checked if the method is provided, but now U-Boot provides a simple stub that only returns EFI_UNSUPPORTED. A proper UEFI would throw EFI_INVALID_PARAMETER if we pass NULL as first parameter, but U-Boot doesn't. This way we can see if the method is actually provided and not just a stub. ok kettenis@
2020-05-18Enable amlpwrc(4).Mark Kettenis
2020-05-18Fix typoClaudio Jeker
2020-05-17Add enough stubs to allow "option DDB" to build.gkoehler
ok kettenis@
2020-05-17Use a register varible ro implement curpcu().Mark Kettenis
2020-05-17Add machdep.compatible.Mark Kettenis
ok jsg@
2020-05-17Look at the openbsd,boothowto property.Mark Kettenis
ok visa@
2020-05-17Hand those pages over to uvm.Mark Kettenis
2020-05-17Remove board ID support. 6.7 shipped with a kernel that doesn't needMark Kettenis
it anymore. jsg@
2020-05-17Put setjmp+longjmp inside #ifdef DDB the only kernel-side user.Theo de Raadt
This shrinks the ramdisks a tiny bit.
2020-05-17Fix typo in comment.Mark Kettenis
2020-05-17The 64-bit Power ABI reserves r13 for the thread pointer, so use thatMark Kettenis
to hold a pointer to our struct cpu_info.
2020-05-17Fix WITNESS buildkn
sparc64 (and arm mem.c) are the only architectures/places where RWLOCK_INITIALIZER() is used with static function variables, all other (mem.c) usages place it into the global scope. Fix builds with WITNESS enabled for sparc64 and arm by moving physlock into global scope: mem.c:93: error: initializer element is not constant mem.c:93: error: (near initialization for 'physlock.rwl_lock_obj.lo_type') OK visa
2020-05-17Add machdep.compatible.Mark Kettenis
ok jsg@
2020-05-17Do not redefine todr_handle. The variable now lives in kern_time.c.Visa Hankala
OK kettenis@ cheloha@
2020-05-16Get memory information from the device tree.Mark Kettenis
2020-05-16Planting the first seed for OpenBSD/powerpc64.Mark Kettenis
2020-05-16Make inittodr() and resettodr() MI.Mark Kettenis
ok deraadt@, mpi@, visa@ ok cheloha@ as well (would have preferred in new file for this code)
2020-05-16Use todr_gettime() in cp0_calibrate() on mips64.Visa Hankala
This allows changing RTC drivers from <mips64/dev/clockvar.h> to <dev/clock_subr.h> API. OK kettenis@
2020-05-15disable ohci to compensate for bloat.Theo de Raadt
sad
2020-05-14The dwctwo(4) FDT glue is now identical on armv7 and arm64. Move it toMark Kettenis
/dev/fdt. ok patrick@, visa@
2020-05-14Bring back the acpi(4) changes. This time around only use the ACPI _CRSMark Kettenis
information on ACPI 5.0 and later. ok krw@, patrick@
2020-05-14Use '/t' on all architectures to get a trace via TID.Martin Pieuchot
ok sthen@, patrick@
2020-05-13Kill biospoll/pctrpoll defines and use `seltrue' directly in cdev_*_init().Martin Pieuchot
While here use the kqfilter equivalent to `seltrue' to ensure both interfaces are coherent. ok visa@
2020-05-13Match direct `seltrue' usages with a corresponding `seltrue_kqfilter'.Martin Pieuchot
This ensure spec_kqfilter() won't return an error when spec_poll() returns success for a given device. ok visa@
2020-05-12Finally switch luna88k to the same inittodr()/resettodr() implementationMark Kettenis
as all the other architectures.
2020-05-11Use the same inittodr()/resettodr() implementation as onMark Kettenis
amd64/arm64/armv7/hppa/i386/landisk/macppc/mips64/sparc64 and move it to the end of machdep.c. Wrap the existing clockfns hooks into something that can be used as a todr_handle. ok deraadt@
2020-05-11Should have bumped this to 1.0 a long time ago.Mark Kettenis
2020-05-11On ACPI systems, if there is no SPCR table (or if it doesn't provide usMark Kettenis
with a usable serial console) switch to the framebuffer console. This makes the rpi4 do the right thing since the SPCR table is suppressed when you select "Graphics" as the display. ok patrick@
2020-05-11Use the same inittodr()/resettodr() implementation as onMark Kettenis
amd64/arm64/armv7/hppa/i386/macppc/mips64/sparc64 and move it to the end of sh_machdep.c. Wrap the existing sh_clock.rtc hooks into something that can be used as a todr_handle. ok mpi@
2020-05-11Initialize the timeval passed to todr_gettime() with the base time fromMark Kettenis
the file system such that implementations can use it to guess the right century. ok mpi@
2020-05-10Pass boothowto from the bootloader to the kernel by adding aMark Kettenis
openbsd,boothowto property under /chosen. ok patrick@
2020-05-10Pass boothowto from the bootloader to the kernel by adding aMark Kettenis
openbsd,boothowto property under /chosen. ok patrick@
2020-05-09Use the same inittodr()/resettodr() implementation as onMark Kettenis
amd64/arm64/armv7/hppa/i386/macppc/sparc64 and move it to the end of mips64_machdep.c. Wrap the existing tod_get and tod_set hooks into something that can be used as a todr_handle. ok visa@
2020-05-02Get bus number from _CRS.Mark Kettenis
ok sthen@, deraadt@
2020-05-02Fix buglet in previous commit; use time from the struct timeval that wasMark Kettenis
passed in when setting the RTC time instead of the global time_second. ok mpi@
2020-05-01Use the same inittodr()/resettodr() implementation as onMark Kettenis
amd64/arm64/armv7/i386/hppa/sparc64 and move it to the end of machdep.c. Wrap the existing time_read and time_write hooks into something that can be used as a todr_handle. ok mpi@
2020-05-01Use the same inittodr()/resettodr() implementation as onMark Kettenis
amd64/arm64/armv7/i386/sparc64 and move it to the end of machdep.c. Rework the actual implementation for the MC14818 compatible RTC into something that can be used as a todr_handle just like on amd64. ok mpi@
2020-04-29Enable a bunch of drivers needed for full Raspberry Pi 2/3 support.Mark Kettenis
2020-04-29Let the armv7 bus_dma layer and simplebus(4) implementation deal withMark Kettenis
DMA remapping in the same way as arm64. This relies on the dma-ranges property in the device tree and allows us to get rid of the hack for the Raspberry Pi in the dwctwo(4) driver. Note that this does not include the hack in simplebus(4) that we have on arm64 since firmware that has the dma-ranges is in widespread use now. ok patrick@
2020-04-29Use the same inittodr()/resettodr() implementation as onMark Kettenis
amd64/arm64/armv7/sparc64 and move it to the end of machdep.c. Rework the actual implementation for the MC14818 compatible RTC into something that can be used as a todr_handle just like on amd64. ok sthen@
2020-04-28Use the same inittodr()/resettodr() implementation as on arm64/armv7/sparc64Mark Kettenis
and move it to the end of machdep.c. Rework the actual implementation for te MC14818 compatible RTC into something that can be used as a todr_handle. ok mpi@
2020-04-28Use the same inittodr()/resettodr() implementation as on arm64/armv7Mark Kettenis
and move it to the end of machdep.o. ok mpi@
2020-04-27Enable tcpci(4).Patrick Wildt
2020-04-27Add bcmclock(4) and bcmmbox(4). Fixes a hang because the clock for sdhc(4)Mark Kettenis
can't be enabled.
2020-04-27Remove reset hack; these days the U-Boot we ship for the CuBox-i isMark Kettenis
perfectly happy without it. ok patrick@
2020-04-27Bring inittodr()/resettodr() in line with arm64 and move it toMark Kettenis
arrm32_machdep.c. ok mpi@
2020-04-27Move inittodr() and resettodr() to the end of the file to easy move an MIMark Kettenis
implementation. ok mpi@