CVS log for src/sys/arch/x86/x86/db_memrw.c
Up to [cvs.NetBSD.org] / src / sys / arch / x86 / x86
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Aug 27 20:40:03 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
HEAD
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4
lines
x86/db_memrw.c: Mark db_read_bytes, db_write_bytes __noubsan.
These intentionally do loads and stores that may be misaligned, which
are fine on this x86-specific code. Should avoid double-panic in
disassembler on panic with UBSan enabled.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Aug 27 20:39:54 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +8 -8
lines
x86/db_memrw.c: Use uint64_t, not long, for 8-byte r/w.
This is shared with amd64 and i386, and while long works on amd64,
not so much on i386.
While here, use uint32_t intead of int and uint16_t instead of short
for clarity.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Aug 20 23:48:51 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -2
lines
x86: Split most of pmap.h into pmap_private.h or vmparam.h.
This way pmap.h only contains the MD definition of the MI pmap(9)
API, which loads of things in the kernel rely on, so changing x86
pmap internals no longer requires recompiling the entire kernel every
time.
Callers needing these internals must now use machine/pmap_private.h.
Note: This is not x86/pmap_private.h because it contains three parts:
1. CPU-specific (different for i386/amd64) definitions used by...
2. common definitions, including Xenisms like xpmap_ptetomach,
further used by...
3. more CPU-specific inlines for pmap_pte_* operations
So {amd64,i386}/pmap_private.h defines 1, includes x86/pmap_private.h
for 2, and then defines 3. Maybe we should split that out into a new
pmap_pte.h to reduce this trouble.
No functional change intended, other than that some .c files must
include machine/pmap_private.h when previously uvm/uvm_pmap.h
polluted the namespace with pmap internals.
Note: This migrates part of i386/pmap.h into i386/vmparam.h --
specifically the parts that are needed for several constants defined
in vmparam.h:
VM_MAXUSER_ADDRESS
VM_MAX_ADDRESS
VM_MAX_KERNEL_ADDRESS
VM_MIN_KERNEL_ADDRESS
Since i386 needs PDP_SIZE in vmparam.h, I added it there on amd64
too, just to keep things parallel.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Aug 20 23:15:37 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -2
lines
x86: Split bootspace out of x86/pmap.h into new x86/bootspace.h.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Oct 7 12:52:27 2021 UTC (3 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3
lines
KNF. No functional change.
Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:06:53 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +13 -10
lines
Sync with HEAD
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Apr 21 06:37:21 2019 UTC (5 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-futex,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3
lines
Rename the PTE bits.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Mar 9 08:42:26 2019 UTC (5 years, 9 months ago) by maxv
Branches: MAIN
CVS tags: isaki-audio2-base,
isaki-audio2
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -5
lines
Start replacing the x86 PTE bits.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Mar 7 13:26:24 2019 UTC (5 years, 9 months ago) by maxv
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -4
lines
Drop PG_RO, PG_KR and PG_PROT, they are useless and create confusion.
Revision 1.4.2.4: download - view: text, markup, annotated - select for diffs
Sat Jan 26 22:00:05 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.4.2.3: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.3: +8 -2
lines
Sync with HEAD
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Jan 19 13:17:32 2019 UTC (5 years, 10 months ago) by martin
Branches: MAIN
CVS tags: pgoyette-compat-20190127
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +8 -2
lines
PR kern/53893: add missing #ifdef DDB around db_printf calls.
Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:28 2018 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.4.2.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.2: +3 -4
lines
Sync with HEAD, resolve a couple of conflicts
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Nov 18 14:16:13 2018 UTC (6 years ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -4
lines
fix whitespace
Revision 1.2.10.1: download - view: text, markup, annotated - select for diffs
Mon Apr 2 09:07:52 2018 UTC (6 years, 8 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +32 -4
lines
Pull up following revision(s) (requested by ozaki-r in ticket #687):
sys/kern/kern_rwlock_obj.c: revision 1.4
sys/rump/librump/rumpkern/locks.c: revision 1.80
sys/kern/kern_rwlock.c: revision 1.50
sys/arch/x86/x86/db_memrw.c: revision 1.5,1.6
sys/ddb/db_command.c: revision 1.150-1.153
share/man/man4/ddb.4: revision 1.175 (via patch),1.176-1.178
sys/kern/kern_mutex_obj.c: revision 1.6
sys/kern/subr_lockdebug.c: revision 1.61-1.64
sys/sys/lockdebug.h: revision 1.17
sys/kern/kern_mutex.c: revision 1.71
sys/sys/lockdebug.h: revision 1.18,1.19
sys/kern/subr_xcall.c: revision 1.26
Obtain proper initialized addresses of locks allocated by mutex_obj_alloc or rw_obj_alloc
Initialized addresses of locks allocated by mutex_obj_alloc or rw_obj_alloc
were not useful because the addresses were mutex_obj_alloc or rw_obj_alloc
itself. What we want to know are callers of them.
Spinkle ASSERT_SLEEPABLE to xcall functions
Use db_printf instead of printf in ddb
Add a new command, show lockstat, which shows statistics of locks
Currently the command shows the number of allocated locks.
The command is useful only if LOCKDEBUG is enabled.
Add a new command, show all locks, which shows information of active locks
The command shows information of all active (i.e., being held) locks that are
tracked through either of LWPs or CPUs by the LOCKDEBUG facility. The /t
modifier additionally shows a backtrace for each LWP additionally. This
feature is useful for debugging especially to analyze deadlocks.
The command is useful only if LOCKDEBUG is enabled.
Don't pass a unset address to lockdebug_lock_print
x86: avoid accessing invalid addresses in ddb like arm32
This avoids that a command stops in the middle of an execution if
a fault occurs due to an access to an invalid address.
Get rid of a redundant output
Improve wording. Fix a Cm argument.
ddb: rename "show lockstat" to "show lockstats" to avoid conflicting with lockstat(8)
Requested by mrg@
Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Thu Mar 22 01:44:47 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.1: +30 -3
lines
Synch with HEAD, resolve conflicts
Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Mar 16 04:48:19 2018 UTC (6 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322
Branch point for: phil-wifi
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +30 -3
lines
x86: avoid accessing invalid addresses in ddb like arm32
This avoids that a command stops in the middle of an execution if
a fault occurs due to an access to an invalid address.
Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Thu Mar 15 09:12:04 2018 UTC (6 years, 9 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -3
lines
Synch with HEAD
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Mar 15 03:45:05 2018 UTC (6 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-compat-0315
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -3
lines
Use db_printf instead of printf in ddb
Revision 1.1.6.1: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:50 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +13 -5
lines
update from HEAD
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Nov 11 12:51:05 2017 UTC (7 years, 1 month ago) by maxv
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
pgoyette-compat-base
Branch point for: pgoyette-compat
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +13 -11
lines
Modify the layout of the bootspace structure, in such a way that it can
contain several kernel segments of the same type (eg several .text
segments). Some parts are still a bit messy but will be cleaned up soon.
I cannot compile-test this change on i386, but it seems fine enough.
NOTE: you need to rebuild and reinstall a new prekern after this change.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Sep 30 12:12:29 2017 UTC (7 years, 2 months ago) by maxv
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +10 -6
lines
use bootspace
Revision 1.1.20.1: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:19 2016 UTC (8 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +6 -4
lines
Sync with HEAD
Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu May 12 06:45:16 2016 UTC (8 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +6 -4
lines
Split the {text+rodata} chunk in two separate chunks on x86. The
rodata segment now loses the large page optimization, gets mapped inside
the data segment, and therefore becomes RWX. It may break the build on
Xen.
Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:11 2012 UTC (12 years, 6 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.1: +207 -0
lines
sync to latest -current.
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Wed May 23 10:07:51 2012 UTC (12 years, 6 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +207 -0
lines
sync with head.
Revision 1.1.4.1
Mon May 7 17:45:29 2012 UTC (12 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
FILE REMOVED
Changes since revision 1.1: +0 -207
lines
file db_memrw.c was added on branch jmcneill-usbmp on 2012-06-02 11:09:11 +0000
Revision 1.1.2.1
Mon May 7 17:45:29 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
FILE REMOVED
Changes since revision 1.1: +0 -207
lines
file db_memrw.c was added on branch yamt-pagecache on 2012-05-23 10:07:51 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon May 7 17:45:29 2012 UTC (12 years, 7 months ago) by jym
Branches: MAIN
CVS tags: yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
rmind-smpnet-nbase,
rmind-smpnet-base,
rmind-smpnet,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7,
khorben-n900,
jmcneill-usbmp-base10,
agc-symver-base,
agc-symver
Branch point for: yamt-pagecache,
tls-maxphys,
nick-nhusb,
jmcneill-usbmp
Merge i386 and amd64 version of db_memrw.c.
Use this opportunity to skip calculating the VA of the page. Let the CPU
deal with the invalidation itself through invlpg + destination address to
avoid converting between canonical/non canonical forms.
CVSweb <webmaster@jp.NetBSD.org>