Home | History | Annotate | Download | only in include
History log of /src/sys/arch/hp300/include/cpu.h
RevisionDateAuthorComments
 1.78  20-Jan-2024  thorpej Largely unify the <machine/cpu.h> headers on the m68k platforms.
 1.77  19-Jan-2024  thorpej Consistently use "intr_depth" as the name of the interrupt depth counter
on m68k platforms.
 1.76  16-Jan-2024  thorpej Switch hp300 over to the common interrupt dispatch code.

XXX There are still some things to fix up here, but it's no worse
than it was before (the problems date back to when we flattened
the device interrupt levels into IPL_VM).
 1.75  13-Jan-2024  thorpej Switch hp300 over to the common m68k vector table.
 1.74  09-Jan-2024  thorpej Remove duplicated / slightly-tweaked loadustp() (load user segment table)
routines from all of the m68k ports using the shared pmap. Instead, in
pmap_init(), set up a function pointer to the appropriate mmu_load_urp*()
function in mmu_subr.s.
 1.73  15-Jan-2023  tsutsui TAB/space cleanup.
 1.72  23-Nov-2019  ad branches: 1.72.26;
cpu_need_resched():

- Remove all code that should be MI, leaving the bare minimum under arch/.
- Make the required actions very explicit.
- Pass in LWP pointer for convenience.
- When a trap is required on another CPU, have the IPI set it locally.
- Expunge cpu_did_resched().
 1.71  18-Feb-2019  thorpej Refactor the 68040 writeback() from each m68k port's trap handler into a
shared copy: m68040_writeback(). It is essentially a copy of the Atari
version, with some minor cosmetic tweaks and one small performance optimization
from the mvme68k port.

Tested by rjs@ on a Quadra 950. (Thanks!)
 1.70  22-Aug-2018  msaitoh - Cleanup for dynamic sysctl:
- Remove unused *_NAMES macros for sysctl.
- Remove unused *_MAXID for sysctls.
- Move CTL_MACHDEP sysctl definitions for m68k into m68k/include/cpu.h and
use them on all m68k machines.
 1.69  17-Dec-2016  flxd branches: 1.69.14; 1.69.16;
Fix typo "one the" and architecture where appropriate.
 1.68  19-Oct-2013  christos branches: 1.68.6; 1.68.10;
make cpu_need_resched() macros consistent; __USE flags
 1.67  02-Feb-2012  tsutsui branches: 1.67.6; 1.67.10;
Always include <m68k/cpu.h> (i.e. outside #if defined(_KERNEL))
for crash(8) as amiga and sun3. There are _KERNEL protections in it.

Briefly tested by "build.sh -m news68k -U build".
Further possible botch will be fixed later.
 1.66  16-May-2011  tsutsui branches: 1.66.4; 1.66.8;
- merge and move pasted m68k MD setreg() functions into m68k/m68k_machdep.c
- move m68881_save() and m68881_restore() declarations into <m68k/m68k.h>

Briefly tested and no obvious breakage on atari, sun3, and x68k.
 1.65  08-Feb-2011  rmind Remove clause 3 (UCB advertising clause) from the University of Utah
copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.
 1.64  25-Dec-2010  tsutsui branches: 1.64.2; 1.64.4;
Make sure MAXADDR is unsigned otherwise it could be mangled in shift ops
and causes silent hang on bootstrap. Analyzed on HP9000/362 I get today,
but I'm not sure how 040 lkptpa code has worked on my HP382...
 1.63  22-Dec-2010  matt Collect cpu_info and friends and move to m68k/include/cpu.h
Add a define __HAVE_CPU_DATA_FIRST which means that cpu_data is the first
member in struct cpu_info.
 1.62  11-Dec-2009  tsutsui branches: 1.62.4;
MAXADDR used for PA == VA mapping should be page size dependent.
 1.61  21-Oct-2009  rmind Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code. Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.
 1.60  29-Jul-2009  rmind Fix few more l_pflag and LP_OWEUPC confusions.
 1.59  27-Feb-2008  xtraeme branches: 1.59.4; 1.59.14; 1.59.20; 1.59.22;
Remove CTL_MACHDEP_NAMES, it's not used anywhere.

Ok by martin@.
 1.58  28-Jan-2008  tsutsui branches: 1.58.2; 1.58.6;
- account idepth in a clock interrupt handler too
- use idepth for CLKF_INTR()
 1.57  17-Oct-2007  garbled branches: 1.57.2;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.56  30-Sep-2007  tsutsui Use unsigned values for device addresses.
 1.55  04-Aug-2007  ad branches: 1.55.2; 1.55.4;
Add ci_cpuid where it's missing.
 1.54  21-May-2007  tsutsui branches: 1.54.2; 1.54.4; 1.54.8;
Move declarations of m68k common functions
from <machine/cpu.h> to <m68k/m68k.h>.
While here, remove some obsolete function decls.
 1.53  20-May-2007  mhitch Add missing call to lwp_startup() in lwp_trampoline() (which was renamed
from proc_trampoline to match the other ports).

A DIAGNOSTIC kernel will now boot and run. LOCKDEBUG still doesn't work yet.
Also, my amiga no longer loses time.
 1.52  18-May-2007  tsutsui Adapt hp300 to yamt-idlelwp. Tested on 9000/382.
 1.51  04-Mar-2007  tsutsui branches: 1.51.2; 1.51.4; 1.51.10;
- add missed '*'
- move extiobase decl into <machine/cpu.h>
 1.50  04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.49  16-Feb-2007  ad branches: 1.49.2;
Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
 1.48  10-Feb-2007  tsutsui Apply changes for newslock2, taken from other m68k ports.
 1.47  11-Dec-2005  christos merge ktrace-lwp.
 1.46  26-Sep-2004  yamt branches: 1.46.12;
don't expose cpu_info to userland.
 1.45  22-Sep-2004  yamt move some per-cpu data definitions to MI place so that they can be modified
without touching all ports. discussed on tech-kern@.
 1.44  28-Aug-2004  thorpej De-__P
 1.43  04-Jan-2004  jdolecek Rearrange process exit path to avoid need to free resources from different
process context ('reaper').

From within the exiting process context:
* deactivate pmap and free vmspace while we can still block
* introduce MD cpu_lwp_free() - this cleans all MD-specific context (such
as FPU state), and is the last potentially blocking operation;
all of cpu_wait(), and most of cpu_exit(), is now folded into cpu_lwp_free()
* process is now immediatelly marked as zombie and made available for pickup
by parent; the remaining last lwp continues the exit as fully detached
* MI (rather than MD) code bumps uvmexp.swtch, cpu_exit() is now same
for both 'process' and 'lwp' exit

uvm_lwp_exit() is modified to never block; the u-area memory is now
always just linked to the list of available u-areas. Introduce (blocking)
uvm_uarea_drain(), which is called to release the excessive u-area memory;
this is called by parent within wait4(), or by pagedaemon on memory shortage.
uvm_uarea_free() is now private function within uvm_glue.c.

MD process/lwp exit code now always calls lwp_exit2() immediatelly after
switching away from the exiting lwp.

g/c now unneeded routines and variables, including the reaper kernel thread
 1.42  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.41  17-Jan-2003  thorpej branches: 1.41.2;
Merge the nathanw_sa branch.
 1.40  02-Nov-2002  chs finish conversion to the common m68k cacheops:
add support for machine-specific flavors of the ops for off-chip caches.
many thanks to Izumi Tsutsui for his help with this.
 1.39  20-Oct-2002  chs merge the 12 copies of vm_machdep.c on the m68k platforms.
clean up some other stuff along the way, including:
- use m68k/cacheops.*, remove duplicates from cpu.h.
- centralize a few declarations in (all the copies of) cpu.h.
- define M68K_VAC on platforms which have a VAC.
- switch the sun platforms to the (now common) proc_trampoline().
- do the phys_map thang on the sun platforms too, no reason not to.
 1.38  30-May-2001  mrg branches: 1.38.8;
use _KERNEL_OPT
 1.37  19-Dec-2000  scw branches: 1.37.2;
Unification of the m68k syscall() function.
 1.36  25-Aug-2000  thorpej Make need_resched() take a "struct cpu_info *" argument. This
causes gives a primitive form of processor affinity. Its use in
roundrobin() still needs some work.
 1.35  27-May-2000  he Add missing semicolon.
 1.34  26-May-2000  thorpej branches: 1.34.2;
First sweep at scheduler state cleanup. Collect MI scheduler
state into global and per-CPU scheduler state:

- Global state: sched_qs (run queues), sched_whichqs (bitmap
of non-empty run queues), sched_slpque (sleep queues).
NOTE: These may collectively move into a struct schedstate
at some point in the future.

- Per-CPU state, struct schedstate_percpu: spc_runtime
(time process on this CPU started running), spc_flags
(replaces struct proc's p_schedflags), and
spc_curpriority (usrpri of processes on this CPU).

- Every platform must now supply a struct cpu_info and
a curcpu() macro. Simplify existing cpu_info declarations
where appropriate.

- All references to per-CPU scheduler state now made through
curcpu(). NOTE: this will likely be adjusted in the future
after further changes to struct proc are made.

Tested on i386 and Alpha. Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.
 1.33  10-Aug-1999  thorpej branches: 1.33.2;
Define cpu_number() as discussed on tech-smp.
 1.32  26-Feb-1999  is synchronize types, and s/curproc/p/ in one forgotten place
 1.31  25-Feb-1999  is mac68k part of pr 6152 fix, and missing bits for the others
 1.30  11-Nov-1998  thorpej Changes to support fork_kthread():
- cpu_set_kpc() now takes void *arg third argument, passed to the
entry point.
- cpu_fork() allows parent to be non-curproc iff parent is proc0.
When forking non-curproc, assume its state has already been saved.
- Adjust various pieces of machine-dependent code to account of all of this.
 1.29  20-Aug-1998  kleink vm_offset_t -> {paddr_t,vaddr_t}, vm_size_t -> vsize_t
 1.28  13-Feb-1998  scottr Avoid declaring the "astpending" and "want_resched" globals in cpu.h,
as this breaks C++ code that happens to indirectly include this header.
Both Matthias Scheler and I noticed this, independently.

This problem notably does not affect the atari and sun3/sun3x ports,
which have already implemented a similar solution.
 1.27  26-Oct-1997  is Make these compile after m68k/m68k.h 1.4->1.5.
 1.26  12-Oct-1997  thorpej Move the prototype of hp300_calibrate_delay() to cpu.h
 1.25  27-Apr-1997  thorpej branches: 1.25.4;
- Move a bunch of hp300 SPU-specific stuff out of cpu.h, and place it
in new hp300spu.h file. This includes the code that associates
model number with cpu/mmu/cache combinations.
- Define "mmuid" constants for several models, derived from code
provided by Mike Smith.
 1.24  14-Apr-1997  thorpej Rearrange the interrupt code slightly:
- place all interrupt-related macros, prototypes, etc. into <machine/intr.h>,
like other ports.
- rename isrlink/isrunlink/isrinit, etc. intr_establish/intr_disestablish/
intr_init, etc., and move to intr.c for naming consistency.
- don't call intr_init() twice.
 1.23  09-Apr-1997  thorpej regdump() is prototyped in m68k/cpu.h now.
 1.22  01-Apr-1997  scottr Add prototypes as appropriate.
 1.21  07-Oct-1996  thorpej Prototypes for functions in locore.s and machdep.c (oops, forgot to
check this in the other day...)
 1.20  11-Sep-1996  thorpej Use <m68k/cpu.h>.
 1.19  17-May-1996  thorpej remove the now unused MHz constants, add a declaration for vectab[],
and document some globals.
 1.18  09-May-1996  scottr doboot() takes no arguments (from Thorsten Frueauf)
 1.17  27-Apr-1996  thorpej Prototype doboot() and give it the __noreturn__ attribute, so that
machdep.c will compile.
 1.16  21-Dec-1995  mycroft Remove deprecated cpu_setstack().
 1.15  11-Dec-1995  thorpej Rather than using individual HP300 model names, map those model names to
properties such as "M68040" and "M68K_MMU_MOTOROLA", used to conditionally
compile code. This is more in-line with now the other m68k ports do it,
and makes it much easier to find "common ground" among them.

In locore.s, use the MMU-type constants defined my <machine/cpu.h> rather
than "expanded" values.

Because HP300-model names are mapped to CPU/MMU combinations in
<machine/cpu.h>, no change to kernel configuration will be necessary.
 1.14  28-Jun-1995  cgd remove unused cpu_exec() definitions. moved "broken swap" markers, for
ports that still need it, to types.h.
 1.13  12-May-1995  mycroft Eliminate the double mapping of the kernel stack. Enable swapping.
 1.12  05-May-1995  cgd define BROKEN_SWAP and/or cpu_swapout as appropriate.
 1.11  22-Apr-1995  christos - added sunos_machdep.c for sun3, atari, amiga and mac68k.
- changed machdep.c and trap.c to use struct emul.
- remove ep_setup references.
- added struct emul to all emulations.
 1.10  28-Mar-1995  jtc KERNEL -> _KERNEL
 1.9  26-Oct-1994  cgd new RCS ID format.
 1.8  23-May-1994  mycroft Merge with 4.4-Lite.
 1.7  17-May-1994  cgd cpu_swapin and need_proftick
 1.6  07-May-1994  mycroft Add sysctl() stuff.
 1.5  05-May-1994  mycroft Most of the changes needed to make this continue to run.
 1.4  04-Feb-1994  mycroft Reorder clockframe.
 1.3  01-Aug-1993  mycroft Add RCS identifiers (this time on the correct side of the branch), and
incorporate recent changes in netbsd-0-9 branch.
 1.2  22-May-1993  cgd add rcsids to everything and clean up headers
 1.1  13-May-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1  13-May-1993  cgd add hp300 kernel files. generic kernel files might need some help...
 1.25.4.1  14-Oct-1997  thorpej Update marc-pcmcia branch from trunk.
 1.33.2.2  05-Jan-2001  bouyer Sync with HEAD
 1.33.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.34.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.37.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.38.8.4  11-Nov-2002  nathanw Catch up to -current
 1.38.8.3  08-Dec-2001  thorpej Add a cpu_proc_fork(), called from uvm_proc_fork(), which takes care
of machine-dependent handling a fork() time (this is different from
forking the actual context in an LWP world). #define it away on
platforms which do not need it.

Problem noted by Gregory McGarry.
 1.38.8.2  18-Nov-2001  scw MD Scheduler Activation bits for HP300.
Compile-tested only.
Note: COMPAT_HPUX is not yet fully lwp'ified.
 1.38.8.1  30-May-2001  scw file cpu.h was added on branch nathanw_sa on 2001-11-18 18:09:34 +0000
 1.41.2.6  19-Oct-2004  skrll Sync with HEAD
 1.41.2.5  24-Sep-2004  skrll Sync with HEAD.
 1.41.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.41.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.41.2.2  03-Sep-2004  skrll Sync with HEAD
 1.41.2.1  03-Aug-2004  skrll Sync with HEAD
 1.46.12.5  17-Mar-2008  yamt sync with head.
 1.46.12.4  04-Feb-2008  yamt sync with head.
 1.46.12.3  27-Oct-2007  yamt sync with head.
 1.46.12.2  03-Sep-2007  yamt sync with head.
 1.46.12.1  26-Feb-2007  yamt sync with head.
 1.49.2.1  12-Mar-2007  rmind Sync with HEAD.
 1.51.10.2  03-Oct-2007  garbled Sync with HEAD
 1.51.10.1  22-May-2007  matt Update to HEAD.
 1.51.4.1  11-Jul-2007  mjf Sync with head.
 1.51.2.3  09-Oct-2007  ad Sync with head.
 1.51.2.2  20-Aug-2007  ad Sync with HEAD.
 1.51.2.1  27-May-2007  ad Sync with head.
 1.54.8.2  02-Oct-2007  joerg Sync with HEAD.
 1.54.8.1  04-Aug-2007  jmcneill Sync with HEAD.
 1.54.4.1  15-Aug-2007  skrll Sync with HEAD.
 1.54.2.1  07-Aug-2007  matt Sync with HEAD.
 1.55.4.1  06-Oct-2007  yamt sync with head.
 1.55.2.2  23-Mar-2008  matt sync with HEAD
 1.55.2.1  06-Nov-2007  matt sync with HEAD
 1.57.2.1  18-Feb-2008  mjf Sync with HEAD.
 1.58.6.1  03-Apr-2008  mjf Sync with HEAD.
 1.58.2.1  24-Mar-2008  keiichi sync with head.
 1.59.22.1  21-Apr-2010  matt sync to netbsd-5
 1.59.20.1  14-Aug-2009  snj Pull up following revision(s) (requested by rmind in ticket #897):
sys/arch/hp300/include/cpu.h: revision 1.60
sys/arch/news68k/include/cpu.h: revision 1.34
sys/arch/powerpc/powerpc/trap.c: revision 1.130 via patch
Fix few more l_pflag and LP_OWEUPC confusions.
 1.59.14.1  14-Aug-2009  snj Pull up following revision(s) (requested by rmind in ticket #897):
sys/arch/hp300/include/cpu.h: revision 1.60
sys/arch/news68k/include/cpu.h: revision 1.34
sys/arch/powerpc/powerpc/trap.c: revision 1.130 via patch
Fix few more l_pflag and LP_OWEUPC confusions.
 1.59.4.2  11-Mar-2010  yamt sync with head
 1.59.4.1  19-Aug-2009  yamt sync with head.
 1.62.4.2  31-May-2011  rmind sync with head
 1.62.4.1  05-Mar-2011  rmind sync with head
 1.64.4.1  17-Feb-2011  bouyer Sync with HEAD
 1.64.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.66.8.1  18-Feb-2012  mrg merge to -current.
 1.66.4.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.66.4.1  17-Apr-2012  yamt sync with head
 1.67.10.1  18-May-2014  rmind sync with head
 1.67.6.2  03-Dec-2017  jdolecek update from HEAD
 1.67.6.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.68.10.1  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.68.6.1  05-Feb-2017  skrll Sync with HEAD
 1.69.16.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.69.16.1  10-Jun-2019  christos Sync with HEAD
 1.69.14.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.72.26.1  22-Jun-2024  martin Pull up following revision(s) (requested by tsutsui in ticket #722):

sys/fs/cd9660/cd9660_util.c: revision 1.16
sys/arch/hp300/stand/common/clock.c: revision 1.14
sys/arch/hp300/stand/common/scsireg.h: revision 1.5
sys/arch/hp300/stand/common/scsireg.h: revision 1.6
sys/arch/hp300/stand/Makefile.buildboot: revision 1.38
sys/arch/hp300/include/bus.h: revision 1.23
sys/arch/hp300/stand/Makefile.buildboot: revision 1.39
sys/arch/hp300/stand/common/sd.c: revision 1.12
sys/arch/hp300/stand/common/prf.c: revision 1.6
sys/arch/hp300/stand/common/sd.c: revision 1.13
usr.sbin/installboot/installboot.8: revision 1.106
usr.sbin/installboot/Makefile: revision 1.59
sys/arch/hp300/stand/common/devopen.c: revision 1.14
usr.sbin/installboot/installboot.8: revision 1.107
sys/arch/hp300/stand/common/ite_dumb.c: revision 1.2
sys/arch/hp300/stand/common/devopen.c: revision 1.15
usr.sbin/installboot/installboot.8: revision 1.108
sys/fs/cd9660/cd9660_extern.h: revision 1.29
usr.sbin/installboot/installboot.8: revision 1.109
tools/Makefile.nbincludes: revision 1.11 (patch)
sys/arch/hp300/dev/rboxreg.h: revision 1.3
sys/arch/hp300/stand/common/scsivar.h: revision 1.5
sys/arch/hp300/dev/dnkbd.c: revision 1.14
sys/arch/hp300/hp300/trap.c: revision 1.156
sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.12
sys/arch/hp300/dev/frodoreg.h: revision 1.6
sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.13
sys/arch/hp300/stand/common/ite_sti.c: revision 1.2
sys/arch/hp300/stand/common/hil.c: revision 1.15
usr.sbin/installboot/arch/hp300.c: revision 1.18
sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.14
sys/arch/hp300/dev/rbox.c: revision 1.4
usr.sbin/installboot/arch/hp300.c: revision 1.19
sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.15
sys/sys/bootblock.h: revision 1.59
sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.16
usr.sbin/installboot/installboot.h: revision 1.44
sys/arch/hp300/stand/mkboot/volhdr.h: file removal
sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.17
sys/arch/hp300/dev/hpib.c: revision 1.45
usr.sbin/installboot/installboot.h: revision 1.45
usr.sbin/installboot/cd9660.c: revision 1.1
sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.18
sys/arch/hp300/dev/topcatreg.h: revision 1.3
usr.sbin/installboot/cd9660.c: revision 1.2
sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.19
sys/arch/hp300/stand/inst/inst.c: revision 1.25
sys/arch/hp300/stand/uboot/Makefile: revision 1.12
sys/arch/hp300/dev/dvbox.c: revision 1.4
sys/arch/hp300/dev/dma.c: revision 1.45
sys/arch/hp300/stand/uboot/Makefile: revision 1.13
sys/arch/hp300/stand/common/rd.c: revision 1.16
sys/arch/hp300/stand/inst/Makefile: revision 1.12
distrib/hp300/cdroms/installcd/Makefile: revision 1.4
sys/arch/hp300/stand/mkboot/volhdr.h: revision 1.6
sys/arch/hp300/stand/common/machdep.c: revision 1.16
usr.sbin/installboot/fstypes.c: revision 1.14
sys/arch/hp300/hp300/machdep.c: revision 1.238
sys/arch/hp300/include/cpu.h: revision 1.73
sys/arch/hp300/dev/diofbreg.h: revision 1.4
sys/arch/hp300/stand/common/scsi.c: revision 1.12
sys/arch/hp300/stand/common/netio.c: revision 1.19
sys/arch/hp300/stand/common/scsi.c: revision 1.13
sys/arch/hp300/dev/sti_sgc.c: revision 1.8
sys/arch/hp300/dev/rtc.c: revision 1.22
sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.20
sys/arch/hp300/stand/common/conf.h: revision 1.4
sys/arch/hp300/hp300/autoconf.c: revision 1.111
sys/arch/hp300/stand/common/conf.c: revision 1.15
sys/arch/hp300/stand/mkboot/Makefile: revision 1.12
sys/arch/hp300/stand/mkboot/Makefile: revision 1.13
sys/arch/hp300/hp300/autoconf.c: revision 1.114
sys/arch/hp300/dev/dcmreg.h: revision 1.11
sys/arch/hp300/dev/diofbvar.h: revision 1.4
sys/arch/hp300/dev/dcm.c: revision 1.91
sys/fs/cd9660/cd9660_util.c: revision 1.15
sys/arch/hp300/dev/mcclock_frodo.c: revision 1.2

TAB/space cleanup.

installboot(8): formatting improvements

Use Ar foo instead of <foo>; this is mdoc.

Other formatting tweaks.
installboot(8): fix up markup

Don't overuse .Sy - when everything is highlighted, nothing is. Use
.Ic for options &c to get correct PostScript output (both are bold in
plain text).

Use Aq Ar inside .Pa, as both Pa and Ar are rendered as underscored
text in plain text output, and the distinction is lost.

Don't set examples in bold, but give them .Pp space around - they are
much easier to read this way.

Use consistent -width in FILES.
document how to use installboot on netbsd/vax.

PR/57909: Jan-Benedict Glaw: Don't include (build) timestamp when doing a
reproducible build
fix usage string, improve error handling.
add missing chunk for repro-build. fix gcc warnings.
avoid stringop truncation, fix copyright string to prevent assembler warnings.

Fix build as a tool (Jan-Benedict Glaw)

Fix integer overflow of strtol(3) for "loadpoint" address on ILP32 hosts.

This strtol(3) was introduced in rev 1.12 for PR/57909 after netbsd-10,
but it returns LONG_MAX (0x7FFFFFFF) for 0xFFF00000 on ILP32 hosts and
the wrong loadpoint causes "NOT ENOUGH MEMORY" error by the BOOTROMs
on loading uboot.lif on (at least) my 9000/360 and 9000/425t.

Misc cosmetic changes for mostly readability.
- KNF and add some newlines per blocks
- define and use proper bintobcd() macro
- make local functions and variables static

The same uboot.lif binaries are generated.

Rename ${PROGAOUT} -> ${PROGELF} to reflect reality.
Use proper signedness for the LIF file system data structures.

Ancient 4.3BSD used short and int for location, file size, file type,
and addresses etc. but all of them should be unsigned.

Also rename several variables and add comments for readability.
The LIF file system info can be found in "The HPDir Project" page:
https://www.hp9845.net/9845/projects/hpdir/
The same uboot.lif binaries are generated.

Add a preliminary CD boot support to uboot for preparation of PR/54455.
Briefly tested on mame, but not enalbed yet.

Recognize SCSI CD-ROM devices as a booted device properly.

Necessary for PR port-hp300/54455, to boot an md root root RAMDISK

kernel from CD-ROM without "WARNING: can't find match for bootdev:"
prompt.

Sync with src/sys/arch/hp300/stand/mkboot/volhdr.h rev 1.6.
https://mail-index.netbsd.org/source-changes/2024/05/07/msg151195.html

Use proper signedness for the LIF file system data structures.
mkboot should use this MI <sys/bootblock.h> and volhdr.h should
be removed soon.

Use MI <sys/bootblock.h> to refer LIF filesystem structures.
This should have been done when LIF definitions were initially added
to <sys/bootblock.h> for MI installboot(8).

Enable SUPPORT_CD on uboot.

Make cd9660_util.c usable in userland tools like installboot(8).

This was partially done for src/distrib/cdrom/macppc_installboot,
but more strict prototypes are necessary for native binary builds.

Install cd9660 related system headers for tools installboot(8) builds.

Reorder function prototypes per source files.

Add cd9660 support to search a bootloader file in the target file system.

Also add CD boot support for hp300, using a bootloader file in cd9660 fs.
This is a tool's part to close PR/54455.

HP 9000/300 machines read LIF directory entry allocated after
the LIF volume header at the top of the boot disk during bootstrap,
and a bootstrap file must be contiguously allocated on the disk
due to limitation of the LIF specification.

Current NetBSD/hp300's bootloader is larger than ~80KB so we have
to prepare a special 'boot' partition for FFS (that has only 8KB (ffsv1)
or 32KB (ffsv2) spaces) disks to put such a large bootloader.

On the other hand, on ISO9660 fs all files are allocated contiguously
so we can specify a bootloader file in the target ISO9660 directly
in the LIF directory entry.

Note we can simply use the existing "append" option to create bootable
CD ISO for hp300, but it looks some emulators (at leaset MAME) reject
such non-standard ISO files, i.e. with an appended bootloader file at
the end of the image.

Put a RAMDISK kernel and SYS_UBOOT into hp300 installcd to make it bootable.

This should finally close PR/54455.

Fix tools build errors on Cygwin.

Appease warnings on building tools/installboot on Cygwin.

RSS XML Feed