Home | History | Annotate | Download | only in lubbock
History log of /src/sys/arch/evbarm/lubbock/lubbock_machdep.c
RevisionDateAuthorComments
 1.46  20-Feb-2024  andvar Fix format specifier for physmem from %d to 0x%"PRIxPSIZE" in multiple places.

Should fix VERBOSE_INIT_ARM for various evbarm kernel configs.
Also add 0x prefix in few previously fixed places to improve readability.
 1.45  12-Oct-2023  skrll Fix non-DIAGNOSTIC builds
 1.44  19-Jun-2023  nisimura unbreak the previous change.
 1.43  20-Apr-2023  skrll Provide a shared pmap_devmap implementation and convert all pmap_devmap
arrays to use DEVMAP_ENTRY{,_END}
 1.42  17-Aug-2021  andvar branches: 1.42.4;
fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.
 1.41  18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.40  18-Apr-2020  skrll Trailing whitespace
 1.39  16-Jul-2019  skrll branches: 1.39.8;
Consistently use vaddr_t as initarm and friends return type.

Makes no difference to binaries except for aarch64 where it's required
 1.38  16-Jul-2019  skrll KNF
 1.37  28-Oct-2018  skrll Fix a commit
 1.36  21-Sep-2018  skrll Centralise defparam CONSADDR, CONSPEED, CONMODE and CONADDR into
opt_console.h and adjust.
 1.35  31-Jul-2018  skrll Sprinkle #include "opt_arm_debug.h" where VERBOSE_INIT_ARM is used
 1.34  22-Dec-2016  cherry branches: 1.34.14; 1.34.16;
switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.
 1.33  13-Sep-2014  matt branches: 1.33.2; 1.33.4;
Replace more vm_offset_t, vm_size_t with vaddr_t, vsize_t
Use paddr_t for msgbufphys
 1.32  18-Aug-2013  matt <arm/locore.h> fallout (fixes some include ordering errors)
 1.31  22-Sep-2012  matt branches: 1.31.2;
Don't use an asm in pmap_activate to update the TTBR, use cpu_setttb instead
but add a second argument to it to indicate whether the TLB/caches need to be
flushed. Default cortex to pmap_needs_fixup = 1. But check the MMFR3 field
to see if the fixed can be skipped.
Use a cf_flag bit 0 to indicate whether the A9 L2 cache should disable (bit 0 = 1)
or enabeld (bit = 0).

With these changes, the A9 MMU can use traverse caches to do MMU tablewalks
Also, make sure all memory has the shareable bit for the A9.
 1.30  16-Aug-2012  matt branches: 1.30.2;
Move the standard definitions of the {UND,IRQ,FIQ,ABT}_STACK_SIZE to
<arm32/machdep.h>
Move the extern for cpu_reset_address to the same file.
Add cpu_reset_address_paddr.
Kill cpu_reset_v4_MMU_disable.
if cpu_reset_address is NULL, then the MMU will be disabled.
 1.29  29-Jul-2012  matt Fix more -fno-common fallout.
Move more variables to common locations.
 1.28  01-Jul-2011  dyoung branches: 1.28.2;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.27  30-Jun-2011  wiz dependant -> dependent
 1.26  28-Nov-2010  hannken As md(4) no longer has "needs-count" there is no "md.h" anymore.
Remove the inclusion of this file.

Acorn32 now always builds load_memory_disc_from_floppy(). This should
not be a problem as all configs have md(4).

Observed by: Masao Uebayashi <uebayasi@netbsd.org>
 1.25  28-Dec-2009  uebayasi branches: 1.25.4;
More setttb() -> cpu_setttb() for readability & consistency. Missing instances
pointed out by tsutsui@ & nonaka@, thanks.
 1.24  26-Dec-2009  uebayasi Use cpu_* prefix to call cpu_* functions (setttb() -> cpu_setttb()); no
functional changes.
 1.23  26-Dec-2009  uebayasi Garbage collect an unused global, vm_offset_t pagetables_start.
 1.22  27-Nov-2009  rmind - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
 1.21  26-Nov-2009  matt Kill proc0paddr. Use lwp0.l_addr instead.
 1.20  11-Aug-2009  matt Remove all declarations of physmem from sys/arch. Add an include of
<sys/systm.h> to the one file that did not already contain it.
This now means that physmem can be changed by updating systm.h and uvm_page.c
(excluding fixing printfs)
 1.19  11-Nov-2008  dyoung It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled. So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks(). Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown(). No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown(). I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that. Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
 1.18  27-Apr-2008  matt branches: 1.18.6; 1.18.8;
Merge kernel changes in matt-armv6 to HEAD.
 1.17  19-Jan-2008  chris branches: 1.17.6; 1.17.8; 1.17.10;
Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.16  17-Oct-2007  garbled branches: 1.16.2; 1.16.8;
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.15  21-Aug-2007  kiyohara branches: 1.15.2;
The initarm() should initialize GPIO. We must not initialize GPIO in
foo_attach() of the each drivers. And, it is necessary to confirm whether
to be initialized in foo_match(). To avoid a dangerous configuring on the
evaluation boards.
 1.14  24-Nov-2006  wiz branches: 1.14.8; 1.14.16; 1.14.22; 1.14.24; 1.14.26;
s/independant/independent/, from Zafer.
 1.13  24-Oct-2006  bjh21 parse_mi_bootargs() is declared in <arm/arm32/machdep.h>, so there's no need
to declare it here too.
 1.12  17-May-2006  mrg branches: 1.12.8; 1.12.10;
in initarm(), initialise kernel_l1pt.pv_va as well as kernel_l1pt.pv_pa.
 1.11  08-Mar-2006  lukem branches: 1.11.2;
Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
 1.10  24-Dec-2005  perry branches: 1.10.4; 1.10.6; 1.10.8; 1.10.10;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.9  11-Dec-2005  christos merge ktrace-lwp.
 1.8  04-Jul-2005  bsh branches: 1.8.2;
adapt to changes for PXA270 support.
 1.7  18-Mar-2005  bsh modify comments for clarity.

Original comments made several people misunderstand that the comment
says kernel's pagetable is at 0xa0004000. What the comment says is
about RedBoot's pagetable.
 1.6  17-Mar-2005  bsh Switch kernels for Lubbock and TwinTail to use pmap_devmap to map
I/O registers that are used in early start-up stage. Also stop using
special bootstrap-time-only bus_space_map function in {lubbock,g42xxeb}_machdep.c.

This makes initarm() for them a bit simpler, and gives us smaller diffs
to other evbarm platforms.
 1.5  26-Feb-2005  bsh Fix kgdb_port_init() to make it compile with options KGDB.
 1.4  12-Dec-2004  abs branches: 1.4.2; 1.4.4;
Fix comments regarding configration bounaries
 1.3  12-Dec-2004  abs Fix comments slighly
 1.2  15-Jul-2003  lukem __KERNEL_RCSID()
 1.1  18-Jun-2003  bsh branches: 1.1.2;
MD part for Intel Lubbock (DBPXA250).

built-in UART and on-board ethernet are supported for now.
LCD, PCMCIA, CF, PS/2, AC97 will follow shortly.
 1.1.2.7  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.2.6  01-Apr-2005  skrll Sync with HEAD.
 1.1.2.5  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.1.2.4  18-Dec-2004  skrll Sync with HEAD.
 1.1.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.1.2.1  03-Aug-2004  skrll Sync with HEAD
 1.4.4.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.4.2.1  29-Apr-2005  kent sync with -current
 1.8.2.4  21-Jan-2008  yamt sync with head
 1.8.2.3  03-Sep-2007  yamt sync with head.
 1.8.2.2  30-Dec-2006  yamt sync with head.
 1.8.2.1  21-Jun-2006  yamt sync with head.
 1.10.10.1  19-Apr-2006  elad sync with head - hopefully this will work
 1.10.8.2  24-May-2006  yamt sync with head.
 1.10.8.1  13-Mar-2006  yamt sync with head.
 1.10.6.2  01-Jun-2006  kardel Sync with head.
 1.10.6.1  22-Apr-2006  simonb Sync with head.
 1.10.4.1  09-Sep-2006  rpaulo sync with head
 1.11.2.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.12.10.1  10-Dec-2006  yamt sync with head.
 1.12.8.2  12-Jan-2007  ad Sync with head.
 1.12.8.1  18-Nov-2006  ad Sync with head.
 1.14.26.1  03-Sep-2007  jmcneill Sync with HEAD.
 1.14.24.2  28-Feb-2008  rjs Sync with HEAD.
 1.14.24.1  01-Nov-2007  rjs Sync with HEAD.
 1.14.22.1  03-Sep-2007  skrll Sync with HEAD.
 1.14.16.1  03-Oct-2007  garbled Sync with HEAD
 1.14.8.1  09-Oct-2007  ad Sync with head.
 1.15.2.3  23-Mar-2008  matt sync with HEAD
 1.15.2.2  28-Jan-2008  matt Adapt to new pmap_bootstrap signature.
 1.15.2.1  06-Nov-2007  matt sync with HEAD
 1.16.8.1  20-Jan-2008  bouyer Sync with HEAD
 1.16.2.1  18-Feb-2008  mjf Sync with HEAD.
 1.17.10.4  11-Mar-2010  yamt sync with head
 1.17.10.3  19-Aug-2009  yamt sync with head.
 1.17.10.2  04-May-2009  yamt sync with head.
 1.17.10.1  16-May-2008  yamt sync with head.
 1.17.8.1  18-May-2008  yamt sync with head.
 1.17.6.2  17-Jan-2009  mjf Sync with HEAD.
 1.17.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.18.8.1  19-Jan-2009  skrll Sync with HEAD.
 1.18.6.1  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.25.4.1  05-Mar-2011  rmind sync with head
 1.28.2.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.28.2.1  30-Oct-2012  yamt sync with head
 1.30.2.3  03-Dec-2017  jdolecek update from HEAD
 1.30.2.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.30.2.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.31.2.1  28-Aug-2013  rmind sync with head
 1.33.4.1  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.33.2.1  05-Feb-2017  skrll Sync with HEAD
 1.34.16.3  21-Apr-2020  martin Sync with HEAD
 1.34.16.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.34.16.1  10-Jun-2019  christos Sync with HEAD
 1.34.14.3  26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.34.14.2  30-Sep-2018  pgoyette Ssync with HEAD
 1.34.14.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.39.8.1  20-Apr-2020  bouyer Sync with HEAD
 1.42.4.1  14-Oct-2023  martin Pull up following revision(s) (requested by skrll in ticket #411):

sys/arch/evbarm/nslu2/nslu2_machdep.c: revision 1.41
sys/arch/evbarm/gumstix/gumstix_machdep.c: revision 1.75
sys/arch/evbarm/iq80321/iq80321_machdep.c: revision 1.66
sys/arch/iyonix/iyonix/iyonix_machdep.c: revision 1.34
sys/arch/zaurus/zaurus/machdep.c: revision 1.52
sys/arch/evbarm/g42xxeb/g42xxeb_machdep.c: revision 1.41
sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c: revision 1.33
sys/arch/evbarm/iq80310/iq80310_machdep.c: revision 1.96
sys/arch/evbarm/adi_brh/brh_machdep.c: revision 1.53
sys/arch/arm/include/arm32/pmap.h: revision 1.177
sys/arch/evbarm/viper/viper_machdep.c: revision 1.34
sys/arch/evbarm/iyonix/iyonix_machdep.c: revision 1.5
sys/arch/evbarm/npwr_fc/npwr_fc_machdep.c: revision 1.30
sys/arch/evbarm/hdl_g/hdlg_machdep.c: revision 1.35
sys/arch/arm/arm32/pmap.c: revision 1.440
sys/arch/evbarm/lubbock/lubbock_machdep.c: revision 1.45
sys/arch/evbarm/ixdp425/ixdp425_machdep.c: revision 1.47

Fix non-DIAGNOSTIC builds

RSS XML Feed