summaryrefslogtreecommitdiff
path: root/sys/arch/sandpoint/include
AgeCommit message (Collapse)Author
2003-12-30Fix PowerPC ports build with KGDB.manu
2003-10-20Reorganize the way powerpc port install machine specific headers.matt
Use <powerpc/oea/bat.h> exclusively and remove <machine/bat.h> and <powerpc/bat.h>. Remove unneeded <machine/cpufunc.h>. To insure 1:1 correspondence of <powerpc/FOO.h> to <machine/FOO.h> include "../../powerpc/include/Makefile" in "arch/FOO/include/Makefile". Incororpate <byte_swap.h> into <bswap.h> and then byte_swap.h
2003-10-19Remove unused header.matt
Don't install kernel-only headers.
2003-10-08Overhaul MBR handling (part 1):lukem
<sys/bootblock.h>: * Added definitions for the Master Boot Record (MBR) used by a variety of systems (primarily i386), including the format of the BIOS Parameter Block (BPB). This information was cribbed from a variety of sources including <sys/disklabel_mbr.h> which this is a superset of. As part of this, some data structure elements and #defines were renamed to be more "namespace friendly" and consistent with other bootblocks and MBR documentation. Update all uses of the old names to the new names. <sys/disklabel_mbr.h>: * Deprecated in favor of <sys/bootblock.h> (the latter is more "host tool" friendly). amd64 & i386: * Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to be consistent with the naming convention of the msdosfs tools. * Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1 and it's confusing to have two functionally equivalent bootblocks, especially given that "ufs" has multiple meanings (it could be a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems). * Rework pbr.S (the first sector of bootxx_*): + Ensure that BPB (bytes 11..89) and the partition table (bytes 446..509) do not contain code. + Add support for booting from FAT partitions if BOOT_FROM_FAT is defined. (Only set for bootxx_msdos). + Remove "dummy" partition 3; if people want to installboot(8) these to the start of the disk they can use fdisk(8) to create a real MBR partition table... + Compile with TERSE_ERROR so it fits because of the above. Whilst this is less user friendly, I feel it's important to have a valid partition table and BPB in the MBR/PBR. * Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent with other platforms. * Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that we can boot off FAT partitions. * Crank version of /usr/mdec/boot to 3.1, and fix some of the other entries in the version file. installboot(8) (i386): * Read the existing MBR of the filesystem and retain the BIOS Parameter Block (BPB) in bytes 11..89 and the MBR partition table in bytes 446..509. (Previously installboot(8) would trash those two sections of the MBR.) mbrlabel(8): * Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code to map the MBR partition type to the NetBSD disklabel type. Test built "make release" for i386, and new bootblocks verified to work (even off FAT!).
2003-09-03Move CLKF_BASEPRI to machine specific <intr.h> file since it depends onmatt
the encoding of the spl for the port.
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-07-28Make these build with recent tweaks to powerpc's bus_space(9) by movingscw
the inclusion of <powerpc/bus.h> to *after* the definitions of PHYS_TO_BUS_MEM() and BUS_MEM_TO_PHYS().
2003-06-16Rename IPL_IMP -> IPL_VM.thorpej
2003-05-10Remove redundant bounds_check_with_label() prototype.thorpej
2003-05-09A few ISA sound drivers like to share dma channels, and hence deferredfvdl
isa_dmamap_create() calls to their open/close entrypoints. This worked with some luck, but broke on i386 when _bus_dmamap_create started to allocate bounce buffers upfront, since memory below 16M may well not be available when the sound devices is opened for the Nth time. To fix this, create a new simple interface, isa_drq_alloc/isa_drq_free, wrappers around already existing bitmask macros. These are expected to be used before an isa_dmamap_create call, and after an isa_dmamap_destroy call, respectively. For the sb and ad1848 drivers, they're deferred until open/close. All isa_dmamap_create calls can now use BUS_DMA_ALLOCNOW and be done at attach time.
2003-03-18Switch/adapt to new bus space infrastructure.matt
2003-03-06Adapt to powerpc/bus.h changes.matt
2003-02-05Replace machine/rnd.h with more appropriate name to share itnakayama
with cycle counter based microtime in kern/kern_microtime.c.
2003-02-03Rename PPC_MPC6XX to PPC_OEA (and any mpc6xx reference to oea).matt
2003-02-03More cleanup for OLDPMAP.matt
2003-02-02Remove OLDPMAP support.matt
2003-01-18Merge the nathanw_sa branch.thorpej
2002-12-10Use __LDPGSZ (which must be == USRTEXT) as the text address for a.outthorpej
executables, and eliminate the USRTEXT constant, which was only used by the a.out exec code.
2002-12-08A working fork/vfork implementation. Darwin fork differs from our fork bymanu
two ways: - the child gets its pid as retval[0] (userland stub will turn it into a 0), retval[1] is 1 and it is 0 in the parent. - in the child, the fork syscall is successful, hence we must skip the next instruction.
2002-11-26Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more.lukem
2002-10-30Add missing file.matt
2002-09-06Merge the gehenna-devsw branch into the trunk.gehenna
This merge changes the device switch tables from static array to dynamically generated by config(8). - All device switches is defined as a constant structure in device drivers. - The new grammer ``device-major'' is introduced to ``files''. device-major <prefix> char <num> [block <num>] [<rules>] - All device major numbers must be listed up in port dependent majors.<arch> by using this grammer. - Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables. - The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa. - The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch. - In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
2002-08-07Implement pmc(9) -- An interface to hardware performance monitoringbriggs
counters. These counters do not exist on all CPUs, but where they do exist, can be used for counting events such as dcache misses that would otherwise be difficult or impossible to instrument by code inspection or hardware simulation. pmc(9) is meant to be a general interface. Initially, the Intel XScale counters are the only ones supported.
2002-07-05Peform a rototill over the powerpc-based ports.matt
Move the trap/vector initialization for MPC6xx ports to mpc6xx_machdep.c Also move softnet, install_extintr, mapiodev, kvtop. Add common BAT initialization code. Add user Altivec support. Fix calls to OF_call_method in macppc/macppc/machdep.c. Use ci_fpuproc in cpu_info instead of separate fpuproc. Add separate syscall.c and defined __HAVE_SYSCALL_INTERN.
2002-05-15Let machine-dependent code specify how to enumerate the bus.thorpej
Currently, everyone uses pci_enumerate_bus_generic().
2002-04-19Remove unneeded cdev_decl(pms).wiz
2002-04-12Don't need to install spkr.hbriggs
2002-03-09switch all mpc6xx powerpc ports to NEWPMAP by default.chs
the old pmap is still available with the OLDPMAP option.
2002-02-28Use "#define<tab>".simonb
2002-02-27- define other DEV_ constants that the local port uses.christos
- delete cdev_decl(mm) since <sys/conf.h> does it.
2001-12-0716 partitions -- agree with files.sandpointbriggs
2001-11-15MAXSLP is defined to be a machine-independent scheduling parameter,soren
so move it into sys/param.h.
2001-10-31Split elf32 vs. elf64 handling in loadfile(), including support forthorpej
each separately and explicitly. BOOT_ELF is now BOOT_ELF32 and BOOT_ELF64, and ELFSIZE should no longer be defined in loadfile_machdep.h.
2001-08-30- Change default time frequency to 100MHz from 66MHz.briggs
- Support the serial mode interrupts (with a kernel configuration option) on the Sandpoint X3. - Initialize cpu_timebase. - Enable tulip driver.
2001-08-26Make all powerpc ports use a common Makefile.powerpc (except walnut)matt
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports. Split out macppc cpu support and make common to mpc6xx ports. Make other mpc6xx ports use it. Add evcnts for mpc6xx traps.
2001-06-21Build with and without option NEWPMAP.briggs
2001-06-21Bring back pte.h for non-NEWPMAP builds.briggs
2001-06-10Adapt to new PowerPC pmap.briggs
Use more common PowerPC code including bus_dma and unified bus_space.
2001-05-30use _KERNEL_OPTmrg
2001-05-03PPC machine type tags haven't been used for a while.soren
2001-05-01Per discussion w/ chuck and chuck, restructure the md page stuffthorpej
to use a structure called "vm_page_md", and use __HAVE_VM_PAGE_MD and __HAVE_PMAP_PHYSSEG.
2001-04-29Add a VM_MDPAGE_MEMBERS macro that defines pmap-specific data forthorpej
each vm_page structure. Add a VM_MDPAGE_INIT() macro to init this data when pages are initialized by UVM. These macros are mandatory, but ports may #define them to nothing if they are not needed/used. This deprecates struct pmap_physseg. As a transitional measure, allow a port to #define PMAP_PHYSSEG so that it can continue to use it until its pmap is converted to use VM_MDPAGE_MEMBERS. Use all this stuff to eliminate a lot of extra work in the Alpha pmap module (it's smaller and faster now). Changes to other pmap modules will follow.
2001-04-16Remove extra whitespace after \.briggs
2001-04-15Add definitions of C99 integer format conversion macros.kleink
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-15Add definitions of C99 specified-width integer type limits.kleink
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-14Add definitions of C99 integer constant macros.kleink
Tidy Makefiles up a little.
2001-04-14Add definitions of C99 integer constant macros.kleink
2001-04-14Add definitions of C99 minimum-width and greatest-width integer types.kleink
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-13Remove the use of splimp() from the NetBSD kernel. splnet()thorpej
and only splnet() is allowed for the protection of data structures used by network devices.
2001-03-21now that duplicated stuff has been moved to sys/conf.h, remove unnecessarylukem
defs for: lpt, joy, pc