summaryrefslogtreecommitdiff
path: root/sys/arch/octeon
AgeCommit message (Collapse)Author
2013-06-05- add missing SUBDIRJasper Lievisse Adriaanse
- remove commented and unneeded SRCS
2013-06-05ditch local ld.script and use conf/ld.script instead, and adjust entryJasper Lievisse Adriaanse
point accordingly.
2013-06-05add WIP second stage bootloader for octeon; far from working and contains ↵Jasper Lievisse Adriaanse
many stubs still. committing it now so I can work on this in tree.
2013-06-03more fuse in more places. credit: miodTed Unangst
2013-06-02move octeonreg.h to a more generic location and add multiple inclusionJasper Lievisse Adriaanse
guards while here. ok uebayasi@
2013-06-02remove unneeded octeonreg.h includeJasper Lievisse Adriaanse
2013-06-02- remove double rcs idsJasper Lievisse Adriaanse
2013-06-01remove unused octeon prefetch macros which won't work due to the fact itJasper Lievisse Adriaanse
uses '.set arch=octeon' and as has only gotten support for that after the gplv3 switch. ok uebayasi@
2013-06-01as discussed with uebayasi@ we should only use the "sync" instruction on octeon,Jasper Lievisse Adriaanse
instead of syncs/syncw etc. so remove the OCTEON_SYNC* macros and use mips_sync() directly. ok uebayasi@
2013-06-01as discussed with uebayasi@ we should only use the "sync" instruction on octeon,Jasper Lievisse Adriaanse
instead of syncs/syncw etc. so remove the OCTEON_SYNC* macros and use mips_sync() directly. ok uebayasi@
2013-06-01- whitespace cleanupJasper Lievisse Adriaanse
- add a comment explaining how OCTEON_MAXCPUS was derived
2013-06-01- remove more backward compat code and switch the callers over to the new ↵Jasper Lievisse Adriaanse
function ok uebayasi@
2013-06-01- remove an __mips_o32 block which'll never be used on openbsdJasper Lievisse Adriaanse
- remove some defines intended for backward compat, but that are unused now. ok uebayasi@
2013-06-01add missing license (PD) blockJasper Lievisse Adriaanse
ok guenther@
2013-06-01add GENERIC.MPJasper Lievisse Adriaanse
ok miod@ pirofti@
2013-06-01corectly initialize the number of cores/cpus on the board. this fixes a NULLJasper Lievisse Adriaanse
deref in cpuattach() since we advertised only a single CPU, but tried to attach two. with this diff bsd.mp boots up on the ERL. discussed with pirofti@ ok miod@ pirofti@
2013-06-01remove bogus XXX comment, 32 is just the way it is.Jasper Lievisse Adriaanse
2013-06-01make the way of doing debug printfs genericJasper Lievisse Adriaanse
2013-05-17Add a dummy IPL_MPSAFE definition.Mark Kettenis
ok miod@, mikeb@
2013-04-23Remove a loongson reference.Brian Callahan
ok jasper@
2013-04-12Fix the log messages displayed to the user.Brian Callahan
ok jasper@
2013-04-08allow octeon to find it's root device, based on the flags passed by U-Boot. ↵Jasper Lievisse Adriaanse
The ${bootcmd} needs to be something like 'bootoctlinux root=/dev/octcf0'. This will be temporary untill we have proper bootblocks, but for now, this (in combination) with an upcoming installer diff allows my CAM-0100 to autoboot straight of the disk, without having to load the kernel via TFTP. ok bcallah@ yasuoka@
2013-04-06allow GENERIC.MP to compile again...just for shits and giggles.Jasper Lievisse Adriaanse
2013-04-05don't hardcode the size of u-boot's argv, but use a define instead.Jasper Lievisse Adriaanse
to be re-used shortly elsewhere..
2013-04-03fix comment detailing the memory mapJasper Lievisse Adriaanse
from syuu@
2013-04-01Build mips kernels with -G 0, to disable use of so-called `small' data andMiod Vallat
bss sections. The current kernel linker script is not gp-friendly enough for that; and while gas 2.15 was not attempting to output gp-relative relocations for variables which might have ended up in .sdata or .sbss, gas 2.17 will, and the kernel will fail to link. To be improved eventually with a better kernel ld script putting the gp-addressable sections close enough to gp... and making sure kernel gp is reloaded in all the userland->kernel code paths which might need gp in the kernel.
2013-03-30reorder include search directories. cuts lookups by quite a bit.Ted Unangst
ok deraadt miod
2013-03-28Add __strong_alias macros for all architectures to be able to aliasMartynas Venckus
another symbol without weak attribute. To be used in libc and libm soon. Agreed by kettenis@, guenther@, matthew@.
2013-03-27fill in cpu_model.Jasper Lievisse Adriaanse
2013-03-26sync TDIRS with realityJasper Lievisse Adriaanse
"looks good" deraadt@
2013-03-26move octcf bits togetherJasper Lievisse Adriaanse
2013-03-26- increase MINIROOTSIZE so a ramdisk can fit.Jasper Lievisse Adriaanse
2013-03-23refactor sys/param.h and machine/param.h. A lot of #ifdef _KERNEL is addedTheo de Raadt
to keep definitions our of user space. The MD files now follow a consistant order -- all namespace intrusion is at the tail can be cleaned up independently. locore, bootblocks, and libkvm still see enough visibility to build. Checked on 90% of platforms...
2013-03-21- remove two now-unused macros.Jasper Lievisse Adriaanse
ok yasuoka@
2013-03-21fix detection of the MAC address by reading it from the correct address,Jasper Lievisse Adriaanse
instead of from a random location which resulted in 00:01:02:etc addresses. confirmed to match up with the MAC addresses linux detects on the ERL; no phy (atphy(4)) attaches still. ok bcallah@ chris@ yasuoka@
2013-03-21use boot_info->config_flags to determine if we're running on a host that hasJasper Lievisse Adriaanse
PCI capabilities, instead of blindly trying to attach pci/pcibus. this fixes a hang on the EdgeRouter Lite (which lacks PCI) and causes no regressions on the CAM-0100 (which does have PCI, tested by bcallah@) ok bcallah@ chris@
2013-03-21- remove an unused variable (octeon_configuration)Jasper Lievisse Adriaanse
- add some flags which will be used to determine the device capabilities which are advertised by uboot. ok bcallah@ chris@
2013-03-19use __func__ to print the function name, fixes a bunch of pastos along the way.Jasper Lievisse Adriaanse
2013-03-19implement octeon_cpuspeed()Jasper Lievisse Adriaanse
ok yasuoka@
2013-03-19instead of treating boot_info->cf_common_addr special, save the whole of ↵Jasper Lievisse Adriaanse
boot_info for future use. ok yasuoka@
2013-03-15print a dump of structs boot_info/boot_desc which contain useful informationJasper Lievisse Adriaanse
to have in the dmesg, for the time being ok bcallah@ yasuoka@
2013-03-15add some board types which will be used later to identify particular boardsJasper Lievisse Adriaanse
ok yasuoka@
2013-03-15save a copy of the address at which the CF bus can be found, and use this in ↵Jasper Lievisse Adriaanse
octcf(4) for a better probe function which doesn't unconditionally tries to attach octcf(4). this would cause endless faults on the EdgeRouter Lite as it lacks a CF bus. feedback and testing bcallah@ and chris@ ok yasuoka@
2013-03-13Allow octeon to reboot by poking the right address for a soft cpu reset.Jasper Lievisse Adriaanse
No more yanking the powercable when I hit ddb :) also tested by bcallah@ ok bcallah@ chris@ yasuoka@
2013-02-03Let the octeon kernel link properly.Brian Callahan
ok miod@
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-11-28- Use IF_Gbps(1) instead of IF_Mbps(1000)Brad Smith
- Use IF_Mbps() instead of multiplying the link speed by a bare value - Remove a useless comment as baudrate is already handled properly - Remove some commented out bits of code - Use IF_Mbps() instead of the bare value ok sthen@
2012-10-08Revamp the sequences for suspend/hibernate -> resume so that the codeTheo de Raadt
paths are reflexive. It is now possible to fail part-way through a suspend sequence, and recover along the resume code path. Split DVACT_SUSPEND by adding a new DVACT_POWERDOWN method is used after hibernate (and suspend too) to finish the job. Some drivers must be converted at the same time to use this instead of shutdown hooks (the others will follow at a later time) ok kettenis mlarkin
2012-10-03Don't include <mips64/archtype.h> when you don't need it.Miod Vallat
2012-10-03Split ever-growing mips <machine/cpu.h> into what 99% of the kernel needs,Miod Vallat
which will remain in <machine/cpu.h>, and a new mips_cpu.h containing only the goriest md details, which are only of interest to a handful set of files; this is similar in spirit to what alpha does, but here <machine/cpu.h> does not include the new file.