summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Use readdisksector() instead of manual buf initialization. sparc64krw2015-09-271-9/+3
| | | | | | compiles and boots, so the identical sparc code must too! ok deraadt@
* lint is dead and C99 may be old enough to drive a car: delete LONGLONGguenther2015-09-261-3/+1
| | | | | | comments ok millert@
* Increase MAXTSIZ to 64MB, required for gcc/gnattobiasu2015-09-211-2/+2
| | | | ok miod
* trivial "if(x) free(x)" replacement by "free(x)"semarie2015-09-193-11/+7
| | | | ok miod@
* Drop the workarounds allowing SMALL_KERNEL (i.e. installation media) to bemiod2015-09-184-35/+7
| | | | booted from old (< 2.10) bootblocks.
* Fix more ifmedia64 fallout in the kernel. It's hiding everywhere...stsp2015-09-142-4/+4
|
* Add a few -fno-builtin-foo to silence the build.miod2015-09-121-2/+4
|
* Rework fb_setsize() logic to get rid of gotos.miod2015-09-121-20/+18
|
* Make room for media types of the future. Extend the ifmedia word to 64 bits.stsp2015-09-111-4/+4
| | | | | | | | | | | | | | | | This changes numbers of the SIOCSIFMEDIA and SIOCGIFMEDIA ioctls and grows struct ifmediareq. Old ifconfig and dhclient binaries can still assign addresses, however the 'media' subcommand stops working. Recompiling ifconfig and dhclient with new headers before a reboot should not be necessary unless in very special circumstances where non-default media settings must be used to get link and console access is not available. There may be some MD fallout but that will be cleared up later. ok deraadt miod with help and suggestions from several sharks attending l2k15
* Fix a zx_putchar() stupid bug I introduced nine years ago by actuallymiod2015-09-101-5/+5
| | | | initializing variables before they get used.
* sizes for free(); ok semariederaadt2015-09-085-12/+12
|
* qlw fitsmiod2015-09-061-1/+5
|
* missing splxjsg2015-09-011-2/+4
| | | | ok miod@
* Provide remaining arch with END() macro for setting calculated size onguenther2015-08-301-1/+2
| | | | | | symbols in ASM ok deraadt@ mpi@
* _NLIST_DO_ELF is no longer needed: it's the only optionguenther2015-08-291-2/+1
| | | | ok deraadt@
* remove obsolete INET kernel optiontedu2015-07-172-4/+3
|
* MFREE(9) is dead, long live m_freem(9)!mpi2015-07-081-3/+3
| | | | ok bluhm@, claudio@, dlg@
* Increment if_ipackets in if_input().mpi2015-06-244-10/+4
| | | | | | | Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
* remove isp(4) now that the ql* family have replaced itjmatthew2015-06-192-628/+1
|
* Build __moddi3, __muldi3 and __qdivrem from libkern, and built no-pie, insteadmiod2015-06-141-3/+3
| | | | | of getting them from libgcc.a, built pie. This repairs boot blocks operation on sparc, as found the hard way by sebastia@
* Override pie range constants (well, only VM_PIE_MAX_ADDR) with a variablemiod2015-06-022-2/+15
| | | | | which value is decided at runtime, in order to only enable PIE on sun4m which has a large enough address space.
* Convert from ether_input() with separate mbuf data and Ethernet header, tomiod2015-05-251-148/+54
| | | | | | if_input(). Based upon an initial diff from mpi@, and then painfully made STRICT_ALIGNMENT-compliant. Tested on 4/260. ok mpi@
* Only attempt to load /etc/random.seed from the boot device after the kernelmiod2015-05-194-61/+108
| | | | | | | | | | | image has been succesfully loaded (with the recent loadfile changes allowing us to know where the randomness needs to be loaded). While there, don't bother doing this when booting from tape. This works around the sun4e PROM 1.6, which gets confused by PROM open() - close() sequences without any I/O happening in between. Crank boot blocks version to 2.11.
* Remove support for ADPCM encoding which isn't used nowadays andratchov2015-05-111-12/+1
| | | | not available to programs anyway.
* Remove all audio format conversion code from the kernel (btw holdingratchov2015-05-113-66/+13
| | | | | | | | | the kernel_lock), as we already do better conversions in user-mode. Yet, no need for every single driver to fiddle with the conversion code as they are done transparently by common MI code. With help from armani and miod, support from mpi ok armani@
* emul_native is only used for kernel threads which can't dump core, soguenther2015-05-052-61/+2
| | | | | | | | | | | delete coredump_trad(), uvm_coredump(), cpu_coredump(), struct md_coredump, and various #includes that are superfluous. This leaves compat_linux processes without a coredump callback. If that ability is desired, someone should update it to use coredump_elf32() and verify the results... ok kettenis@
* Remove SIZE_MAX from limits.h. It was added years ago before wemillert2015-04-301-4/+1
| | | | had a proper stdint.h. No ports fallout. OK guenther@ miod@
* Now that if_input() set the receiving interface pointer on mbufs for usmpi2015-04-131-2/+2
| | | | | | | | | | | | there's no need to do it in m_devget(9). Stop passing an ``ifp'' will help for upcoming interface pointer -> index conversion. While here remove unused ``ifp'' argument from m_clget(9) and kill two birds^W layer violations in one commit. ok henning@
* Convert to if_input().mpi2015-04-081-11/+4
| | | | ok dlg@
* Do not pass an `ifp' argument to interface input handlers since itmpi2015-04-071-2/+2
| | | | | | might be overwritten by pseudo-drivers. ok dlg@, henning@
* Remove isp stanzas. qlw is here to stay.miod2015-03-303-6/+3
|
* Add a bus_dma_tag_t for DVMA usage, suitable for use for devices not sittingmiod2015-03-3019-360/+812
| | | | | | | | | | | | | | | | | behind a sun4m iommu. Move the existing dvma routines from vm_machdep.c to this new dvma.c; this allows for a few declarations to be removed from public headers. Extend the device attachment arguments (struct confargs) to pass a bus_dma_tag_t. mainbus receives the dvma bus_dma_tag_t, and devices pass the tag unchanged to their children, except for iommu(4) which replaces it with its own. Change the few sun4m-only drivers to pick the bus_dma_tag_t from confargs rather than assume iommu; this allows qlw(4) to attach and work on sun4c. ok kettenis@
* Correctly match SUNW,fas in the boot path.miod2015-03-291-12/+14
|
* Convert qe(4) et be(4) to if_input().mpi2015-03-294-31/+14
| | | | Tested by miod@, thanks!
* Correctly advance the bootpath when attaching children.miod2015-03-281-24/+18
|
* When attaching an sbus esp(4), do the sbus_testdma() check regardless of themiod2015-03-281-9/+10
| | | | actual card name we're attaching.
* Don't include sbusvar.h if you need neither sbus_translate() nor sbus_testdma().miod2015-03-2818-44/+18
|
* Lower VM_MIN_KERNEL_ADDRESS by 128MB on non-SRMMU systems (sun4/4c/4e) as well,miod2015-03-276-29/+38
| | | | | | | | | in order to give these systems a more reasonable amount of kva, yet still providing .75GB to userland processes. Although there is no dependency upon a recent boot loader on non-SRMMU systems, SMALL_KERNEL will nevertheless stick to the legacy kvm layout, for the time being.
* de-staticmiod2015-03-261-15/+15
|
* Do the right thing in qec_fix_range() when connected to an sbus(4) withoutmiod2015-03-221-15/+40
| | | | | `ranges' property, i.e. sun4c, so that child devices can attach correctly. This makes be(4) work on sun4c.
* When an IOMMU is not available, and an sbus board has register ranges notmiod2015-03-212-20/+40
| | | | | | | | | | | reachable with the default slot aperture (such as hme(4) devices, which have their registers at offset 0x08c00000 from the slot base), force the attachment of the device to fail. While hme would fail early due to being unable to talk on the mdio bus, hme+esp boards would have the esp part of the board get nuts and would spin during autoconf. Of course, you are not supposed to use such boards on sun4c, because (as mentioned above) they can't run without an iommu.
* Rework the virtual memory layout on SRMMU systems (sun4d/sun4m) to use a muchmiod2015-03-188-89/+173
| | | | | | | | | | | | | | | | | | | | | lower VM_MIN_KERNEL_ADDRESS, since these systems are not crippled by the Sun-4 MMU hole and have the real 4GB of address space. Kernels running on Sun-4 MMU are not affected and will still be restricted to the existing 128MB of kernel space, with 1GB - 128MB of user space. Kernels running on SRMMU will now provide the low 3GB of address space to userland, and use the top 1GB for the kernel, except when compiled with option SMALL_KERNEL, in which case they will keep Sun-4 style the layout (this is temporary to allow for people to boot bsd.rd to upgrade even when not running 2.10 boot blocks, and will be removed eventually) A consequence of this is that the top of the userland stack is no longer at 0xf0000000. But since nothing in userland uses USRSTACK anymore, this should not be an issue. Tested on sun4c and various sun4m, with physical memory sizes ranging from 32 to 448MB.
* Allow for VM_MIN_KERNEL_ADDRESS to not be a constant.miod2015-03-184-14/+37
|
* Prefer KERNBASE to VM_MIN_KERNEL_ADDRESS when testing for an address withinmiod2015-03-183-7/+8
| | | | the kernel image or not. No functional change (yet).
* Revert 1.52, per the comment above the incorrectly changed line. Reduces themiod2015-03-181-2/+2
| | | | number of spurious zs interrupts I am seeing on sun4c, albeit not completely.
* The innocuous change to libsa printf.c (1.26) causes printf.o to be 240 bytesmiod2015-03-171-2/+7
| | | | | | | | | of text larger, and puts bootxx past the 7680 bytes limit. Since bootxx only needs printf for very simple panic() message involving %s and %d format specifiers only, compile a -DSTRIPPED version of printf.c for the use of bootxx. This makes bootxx return to a manageable size (it is even 8 bytes shorter now).
* When running on a sun4d or sun4m system, have the bootblocks ask for onemiod2015-03-052-5/+9
| | | | | | | | | | | | | | | more megabyte of virtual memory beyond the kernel image; this is safe to do as you can't find any such system with less than 8MB of contiguous memory. While nothing in the kernel has a need for that extra memory to be available to the kernel for its bootstrap needs, forthcoming changes (post-5.7) will need it, and these kernels won't work when booted from boot loaders prior to this change. By shipping 5.7 with updated boot blocks, we'll make upgrading to 5.7-CURRENT easier for sun4m owners, when the time comes. Crank boot blocks version. ok deraadt@
* Move consinit() out of the bowels of the zs driver to its own file, inmiod2015-02-284-351/+417
| | | | | preparation for systems which do not have console on a zs(4) device. No functional change yet.
* Change pmap_remove_holes() to take a vmspace instead of a map as its argument.miod2015-02-152-4/+5
| | | | | Use this on vax to correctly pick the end of the stack area now that the stackgap adjustment code will no longer guarantee it is a fixed location.
* no md code wants lockmgr locks, so no md code needs to include sys/lock.hdlg2015-02-111-2/+1
| | | | with and ok miod@