summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2014-07-13consistency with upcoming bootloader device parsing of the uboot arguments,Jasper Lievisse Adriaanse
root= becomes rootdev=
2014-07-13Keep track of port connections and port resets.Paul Irofti
Also notify upstream when a port finished reseting and when the connection status changes. Gets things further along to the point where pipe device transfer and control methods are required.
2014-07-13Remove stale comment which used to explain why we had a special 31-bit freelistMiod Vallat
for DMA, back when this was applicable.
2014-07-13Initial support to read GPT partition tables in the kernel, if option GPT.Miod Vallat
Contributed by Markus Mueller; code based upon Bitrig's GPT support, with stricter GPT structures validation and support for alternate header places. ok deraadt@ jsing@ krw@
2014-07-13Stop using old n_long and n_short types.Martin Pieuchot
2014-07-13print leading '0x' for addresses and masks with DUMP_BOOT_{DESC,INFO}Jasper Lievisse Adriaanse
ok pirofti@
2014-07-13- fix off-by-one in getting the number of cores in the systemJasper Lievisse Adriaanse
- unbreak GENERIC.MP build
2014-07-13Needs getchar.c nowMiod Vallat
2014-07-13use nitems() instead of handrolling something identicalJasper Lievisse Adriaanse
ok mpi@ sthen@
2014-07-13add copyright and rcs idJasper Lievisse Adriaanse
"go ahead" kettenis@
2014-07-13Start handling host channel interrupts.Paul Irofti
For now just acknowledge and clear the event to avoid interrupt storms.
2014-07-13move putchar() into libsaJasper Lievisse Adriaanse
"sure" miod@
2014-07-13One missing boot -> prsignal(initprocess) conversionMiod Vallat
2014-07-13These still need <sys/reboot.h> for the RB_ constants.Miod Vallat
2014-07-13Add missing atomic primitives and __sync_synchronize to let the kernelMiod Vallat
compile again; tested by aoyama@
2014-07-12- remove CONSPEED from libsa.hJasper Lievisse Adriaanse
- remove unused define
2014-07-12unify cnspeed()Jasper Lievisse Adriaanse
2014-07-12reboot(9), panic(9): Call panic(9) for unrecoverable MD H/W errors (NMIs)Masao Uebayashi
Some architectures have ability to detect hardware sanity and notify system (NMI, firmware callback, etc.). Handle these hardware severe errors, same as software errors, with panic(9). According to miod@, SGI IP27 NMI is triggered by pushing some "hidden" button, which "usual" users/admins don't know. Pushing such a button is "RB_USERREQ" (human-triggered) in that the button is pushed by a human, but not "RB_USERREQ" in that no user intervention in system (== no command input) is done. miod@ agreed that changing these from RB_USERREQ to !RB_USERREQ (== panic(9)) is not a big problem. OK miod@ kettenis@
2014-07-12Add in missing brswphy(4) and the commented out USB entries.Brad Smith
ok pirofti@
2014-07-12"Dr. Jones. Again we see there is nothing you can possess which I cannotTed Unangst
take away." remove uyap. no effect except on hppa where it was strangely enabled.
2014-07-12move getchar() into libsa where applicableJasper Lievisse Adriaanse
ok miod@
2014-07-12Build kernels at -O2 instead of -Os, as done for userland and on all otherMiod Vallat
architectures. ok deraadt@
2014-07-12Fix the last commit by proper dereferencing the disklabel partition.Paul Irofti
Found by me, fixed by krw@. Thanks!
2014-07-12Fix USB connect freeze by clearing the host port interrupt.Paul Irofti
Connects and disconnects have no affect on the machine, just like before this driver came into existence. While at it check for a few more interrupt types.
2014-07-12revert a few stragglers hiding outTed Unangst
2014-07-12revert more free falloutTed Unangst
2014-07-12Oops. Correct variable name more likely to compile.Kenneth R Westerback
2014-07-12- replace main() with mips_init() so we can save the arguments from uboot toJasper Lievisse Adriaanse
pass it to the kernel later on. also use it to get the clock frequency. - implement getsecs() so the bootprompt timeout works input/ok miod@ pirofti@
2014-07-12Calculate i/o starts and sizes in 'proper' sectors rather assumingKenneth R Westerback
512-byte sectors. Unlikely to affect CF's in the near future. ok pirofti@
2014-07-12add guards to just make available to the bootblocks what they need.Jasper Lievisse Adriaanse
prompted by miod@
2014-07-12reboot(9): Shutdown system by signaling init(8) from kernel where appropriateMasao Uebayashi
Some ports watch temperature in MD and try to shutdown system, when overheated, by calling directly (re)boot(9). Change this to signal init(8) from kernel, as acpi(4) and acpitz(4) do, which has been more tested. This also helps to clarify design that ``clean shutdown must be always started by init(8)''. Note that SIGUSR2 causes init(8) to call reboot(2) with RB_POWERDOWN, as acpi(4) etc. already does. It is reasonable, pointed out by kettenis@, considering system is overheated and immediate reboot may be dangerous. OK deraadt@ miod@
2014-07-12Mark the interface down and cancel the watchdog timer in imxenet_stop().Brad Smith
ok matthieu@ rapha@
2014-07-12WhitespacePaul Irofti
2014-07-12rename variable to better indicate it's meaningJasper Lievisse Adriaanse
2014-07-12revert bogus free changes in not kernel files. got a little trigger happy.Ted Unangst
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-07-12Fix root hub descriptors by matching ehci(4)'s descriptors.Paul Irofti
Reminded by mpi@, thanks! On a side note usb sticks don't get fried anymore, they "just" freeze the system.
2014-07-12Implement Set Port Feature request support.Paul Irofti
Port reset doesn't need the spl dance, as discussed with mpi@
2014-07-12Tackle the endian.h mess. Make it so that:Philip Guenther
* you can #include <sys/endian.h> instead of <machine/endian.h>, and ditto <endian.h> (fixes code that pulls in <sys/endian.h> first) * those will always export the symbols that POSIX specified for <endian.h>, including the new {be,le}{16,32,64}toh() set. c.f. http://austingroupbugs.net/view.php?id=162 if __BSD_VISIBLE then you also get the symbols that our <machine/endian.h> currently exports (ntohs, NTOHS, dlg's bemtoh*, etc) * when doing POSIX compiles (not __BSD_VISIBLE), then <netinet/in.h> and <arpa/inet.h> will *stop* exporting the extra symbols like BYTE_ORDER and betoh* ok deraadt@
2014-07-12Add support for Get Port Status requests.Paul Irofti
2014-07-12Add support for Get Hub Descriptor requests.Paul Irofti
2014-07-12I don't need to treat the (half-)empty Tx and Rx FIFO cases.Paul Irofti
Only the DMA-challenged host controllers need to, so don't panic! While at it add some more debug messages when the interrupt returns 0.
2014-07-12Add support for the CLEAR FEATURE requests.Paul Irofti
2014-07-12fix annoying bug where the first character would be eaten, cnischar() wasJasper Lievisse Adriaanse
wreaking havoc. from miod@
2014-07-12- fill in cninit to enable rtsJasper Lievisse Adriaanse
2014-07-12boot(9), reboot(9): Migrate MD callers of boot(9) to reboot(9)Masao Uebayashi
I have found that some ports call boot(9) from machine-dependent code to reboot system. These should be changed to either: - Sending signal to init(8) to trigger it to shutdown system cleanly, like acpi(4) does, in cases where found problems don't prevent system from working immediately, or - Just doing panic(9) if the situation is severely broken. For now, just rewrite boot() to reboot(). Actual fixes follow. Discussed with & OK from kettenis@
2014-07-12- rewrite register reading/writing to use octeon_xkphys_{read,write}_8 whichJasper Lievisse Adriaanse
is the right approach - write into _THR instead of _RBR for cnputc() as per miod's suggestion this doesn't fix the first character that gets eaten, but it's the right way to move forward. with pirofti@
2014-07-12Remove the qli driver for QLogic 4010 & 4022 iSCSI.Jonathan Gray
It was never enabled and is apparently unfinished. ok deraadt@ krw@ claudio@ kettenis@
2014-07-12Pull in more atomic functions to avoid <sys/atomic.h> trying to use gcc4Miod Vallat
built-ins which aren't available on vax. (A similar diff for m88k is in the pipeline as well)
2014-07-12move macppc abtn(4) driver from workq to taskqBret Lambert
thanks to Fred Crowson (fred () crowsons ! net) who was able to make sure his cd would still eject when the button was pushed, and stsp@ who lent me his macppc laptop