The NetBSD Project

CVS log for src/sys/arch/riscv/riscv/trap.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / riscv / riscv

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.24 / (download) - annotate - [select for diffs], Thu Sep 7 12:48:49 2023 UTC (5 months, 2 weeks ago) by skrll
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.23: +10 -4 lines
Diff to previous 1.23 (colored)

Handle CAUSE_LOAD_PAGE_FAULT in trap_pagefault_fixup

Revision 1.23 / (download) - annotate - [select for diffs], Tue Aug 22 07:11:15 2023 UTC (6 months ago) by rin
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (colored)

riscv/trap.c: Dump cause register for unhandled page fault

Revision 1.22 / (download) - annotate - [select for diffs], Tue Aug 22 07:10:39 2023 UTC (6 months ago) by rin
Branch: MAIN
Changes since 1.21: +24 -11 lines
Diff to previous 1.21 (colored)

riscv/trap.c: Handle userland breakpoint exception

Now, gdb 13 works for riscv64 to some extent :)

Revision 1.21 / (download) - annotate - [select for diffs], Sun May 7 12:41:49 2023 UTC (9 months, 2 weeks ago) by skrll
Branch: MAIN
Changes since 1.20: +265 -75 lines
Diff to previous 1.20 (colored)

RISC-V support that works on QEMU with a single hart.

Thanks for Simon Burge for plic(4).

Revision 1.20 / (download) - annotate - [select for diffs], Sun Feb 26 07:13:55 2023 UTC (11 months, 3 weeks ago) by skrll
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

ci_data.cpu_kcpuset -> ci_kcpuset

NFCI.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Oct 15 06:41:43 2022 UTC (16 months, 1 week ago) by simonb
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

#define<tab>

Revision 1.18 / (download) - annotate - [select for diffs], Tue Sep 27 08:18:21 2022 UTC (16 months, 3 weeks ago) by skrll
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.17: +14 -7 lines
Diff to previous 1.17 (colored)

Basic ddb and backtrace support.

[   1.0000000] panic: kernel diagnostic assertion "msgbufaddr != 0" failed: file "/home/nick/netbsd/nbcvs/src/sys/arch/riscv/riscv/riscv_machdep.c", line 564
[   1.0000000] cpu0: Begin traceback...
[   1.0000000] trace fp ffffffc000801dd0
[   1.0000000] fp ffffffc000801e10 ?() at ffffffc0001eee98
[   1.0000000] fp ffffffc000801e30 ?() at ffffffc0002ad984
[   1.0000000] fp ffffffc000801ee0 ?() at ffffffc000005430
[   1.0000000] cpu0: End traceback...
[   1.0000000] Trapframe @ 0xffffffc000801cb0 (cause=3 (breakpoint), status=0x100, pc=0xffffffc0000007e4, va=0):
[   1.0000000] ra =0xffffffc0001eee9c, sp =0xffffffc000801dd0, gp =0xffffffc0006a8f40, tp =                 0
[   1.0000000] s0 =0xffffffc000600ac0, s1 =            0x1000, s2 =0xffffffc000438df0, s3 =0xffffffc000801d80
[   1.0000000] s4 =0xffffffc0001eed78, s5 =0xffffffc0006d55f8, s6 =0xffffffc000801d88, s7 =0xffffffc0006dfdb8
[   1.0000000] s8 =0xffffffc000428c18, s9 =0xffffffc000801dd0, s10=0xffffffc0000a3822, s11=0xffffffc0006d55f8
[   1.0000000] a0 =              0x17, a1 =               0xa, a2 =                 0, a3 =0xffffffc00041f658
[   1.0000000] a4 =                 0, a5 =               0x1, a5 =                 0, a7 =               0x1
[   1.0000000] t0 =0xffffffc0006dfe30, t1 =0xffffffc000801bb8, t2 =0xffffffc000803000, t3 =              0x75
[   1.0000000] t4 =                 0, t5 =              0x63, t6 =               0x1
[   1.0000000] kernel: breakpoint
Stopped in pid 0.0 (system) at  ffffffc0000007e4:       c.ebreak
db>

Revision 1.17 / (download) - annotate - [select for diffs], Wed Sep 21 07:07:34 2022 UTC (17 months ago) by skrll
Branch: MAIN
Changes since 1.16: +28 -10 lines
Diff to previous 1.16 (colored)

Add some causes and convenience macros

Revision 1.16 / (download) - annotate - [select for diffs], Thu Oct 7 07:13:35 2021 UTC (2 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.15: +4 -2 lines
Diff to previous 1.15 (colored)

Hacky build fixes

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Sun Jan 3 16:34:55 2021 UTC (3 years, 1 month ago) by thorpej
Branch: thorpej-futex
Changes since 1.7.2.1: +4 -3 lines
Diff to previous 1.7.2.1 (colored) next main 1.8 (colored)

Sync w/ HEAD.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Dec 20 16:38:26 2020 UTC (3 years, 2 months ago) by skrll
Branch: 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-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored)

Support __HAVE_PMAP_PV_TRACK in sys/uvm/pmap based pmaps (aka common pmap)

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:00 2020 UTC (3 years, 2 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.7: +55 -56 lines
Diff to previous 1.7 (colored)

Sync w/ HEAD.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Nov 14 13:05:14 2020 UTC (3 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.13: +21 -21 lines
Diff to previous 1.13 (colored)

Improve dump_trapframe output layout and fix printing of s6/s7

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 4 20:04:01 2020 UTC (3 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Miscellaneous updates to reflect riscv-privileged-20190608.pdf

Some from zmcgrew@

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 4 07:09:46 2020 UTC (3 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored)

RCSID and whitespace police...

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 4 06:56:56 2020 UTC (3 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.10: +11 -11 lines
Diff to previous 1.10 (colored)

Miscellaneous updates to reflect riscv-privileged-20190608.pdf

Some from zmcgrew@

Revision 1.10 / (download) - annotate - [select for diffs], Sun Nov 1 21:09:48 2020 UTC (3 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.9: +23 -25 lines
Diff to previous 1.9 (colored)

Update CAUSE_* defines to reflect riscv-privileged-20190608.pdf

Revision 1.9 / (download) - annotate - [select for diffs], Sun Nov 1 21:06:22 2020 UTC (3 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.8: +1 -2 lines
Diff to previous 1.8 (colored)

Remove unused variable

Revision 1.8 / (download) - annotate - [select for diffs], Sun Nov 1 20:56:24 2020 UTC (3 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Typo in a trap name

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 30 16:20:02 2020 UTC (3 years, 7 months ago) by maxv
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.6: +1 -17 lines
Diff to previous 1.6 (colored)

Make copystr() a MI C function, part of libkern and shared on all
architectures.

Notes:

 - On alpha and ia64 the function is kept but gets renamed locally to avoid
   symbol collision. This is because on these two arches, I am not sure
   whether the ASM callers do not rely on fixed registers, so I prefer to
   keep the ASM body for now.
 - On Vax, only the symbol is removed, because the body is used from other
   functions.
 - On RISC-V, this change fixes a bug: copystr() was just a wrapper around
   strlcpy(), but strlcpy() makes the operation less safe (strlen on the
   source beyond its size).
 - The kASan, kCSan and kMSan wrappers are removed, because now that
   copystr() is in C, the compiler transformations are applied to it,
   without the need for manual wrappers.

Could test on amd64 only, but should be fine.

Revision 1.1.22.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:05 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.1.22.2: +5 -3 lines
Diff to previous 1.1.22.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.1.22.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:51 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.1.22.1: +4 -8 lines
Diff to previous 1.1.22.1 (colored) to branchpoint 1.1 (colored)

Merge changes from current as of 20200406

Revision 1.6 / (download) - annotate - [select for diffs], Mon Apr 6 20:26:16 2020 UTC (3 years, 10 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Whitespace

Revision 1.5 / (download) - annotate - [select for diffs], Sat Mar 14 16:12:16 2020 UTC (3 years, 11 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200406
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

Trailing whitespace

Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 21 19:24:01 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.3: +1 -5 lines
Diff to previous 1.3 (colored)

mi_userret(): take care of calling preempt(), set spc_curpriority directly,
and remove MD code that does the same.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jun 16 07:42:52 2019 UTC (4 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20191119, netbsd-9-base, 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
Changes since 1.2: +5 -3 lines
Diff to previous 1.2 (colored)

Misc changes in RISC-V.

Revision 1.1.22.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:41 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.1: +82 -56 lines
Diff to previous 1.1 (colored)

Sync with HEAD

Revision 1.2 / (download) - annotate - [select for diffs], Sat Apr 6 03:06:27 2019 UTC (4 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Changes since 1.1: +82 -56 lines
Diff to previous 1.1 (colored)

Overhaul the API used to fetch and store individual memory cells in
userspace.  The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms.  The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.

Revision 1.1.18.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:39 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.1.18.1: +548 -0 lines
Diff to previous 1.1.18.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

update from HEAD

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:01 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.1: +548 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Revision 1.1.18.1, Sat Mar 28 16:13:56 2015 UTC (8 years, 10 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.1: +0 -548 lines
FILE REMOVED

file trap.c was added on branch tls-maxphys on 2017-12-03 11:36:39 +0000

Revision 1.1.2.1, Sat Mar 28 16:13:56 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1: +0 -548 lines
FILE REMOVED

file trap.c was added on branch nick-nhusb on 2015-04-06 15:18:01 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sat Mar 28 16:13:56 2015 UTC (8 years, 10 months ago) by matt
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, 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, pgoyette-compat-0315, pgoyette-compat, 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, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, 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: tls-maxphys, phil-wifi, nick-nhusb

Beginnings of RISCV kernel support.  Note that the pmap support is not yet
committed and probably won't be for awhile.  This is mostly preliminary
waiting for the supervisor specification to come out.  Lots of missing pieces
but it mostly builds.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>