CVS log for src/sys/arch/riscv/riscv/locore.S
Up to [cvs.NetBSD.org] / src / sys / arch / riscv / riscv
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Feb 9 22:08:33 2024 UTC (10 months ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -2
lines
fix spelling mistakes, mainly in comments and log messages.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Feb 2 22:00:34 2024 UTC (10 months, 1 week ago) by andvar
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -2
lines
fix various typos in comments.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Sep 3 08:48:20 2023 UTC (15 months, 1 week ago) by skrll
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +9 -27
lines
Fix and enable MULTIPROCESSOR
Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Jun 12 19:04:14 2023 UTC (17 months, 4 weeks ago) by skrll
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +206 -36
lines
risc-v: MULTIPROCESSOR support
Add MULTIPROCESSOR support for RISC-V, but leave disabled for the moment
as it's not 100% stable.
Some other improvements to spl and cpu identification / reporting.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun May 7 12:41:49 2023 UTC (19 months ago) by skrll
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +24 -28
lines
RISC-V support that works on QEMU with a single hart.
Thanks for Simon Burge for plic(4).
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Nov 19 09:55:11 2022 UTC (2 years ago) by skrll
Branches: MAIN
CVS tags: 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
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +8 -6
lines
Fix CONSADDR and save a label
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Oct 16 06:14:53 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +17 -7
lines
Map the DTB using VM_KERNEL_DTB_BASE and CONSADDR using VM_KERNEL_IO_BASE
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Oct 16 06:03:14 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3
lines
Use a local label
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Oct 16 05:56:50 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +10 -12
lines
More register re-org
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Oct 16 05:48:15 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3
lines
Fix after register re-org
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Oct 15 16:58:16 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +8 -8
lines
More register use re-org.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Oct 15 16:34:29 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +10 -10
lines
Shuffle some register usage
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Oct 15 16:29:56 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -7
lines
Comment re-arragement
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Oct 15 16:20:32 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +1 -4
lines
Remove unnecessary register assignments
Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Oct 14 08:10:22 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +10 -8
lines
Pretty print
Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Oct 14 07:58:30 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +1 -391
lines
Split out a bunch of functions from locore.S into cpu_switch.S
NFC
Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Sep 30 06:23:59 2022 UTC (2 years, 2 months ago) by skrll
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2
lines
Don't set A, D in page table pointers, but do set them in leaf entries.
Beagle-v now boots to the msgbufaddr panic same as qemu
Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Sep 28 06:05:28 2022 UTC (2 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +13 -2
lines
Use legacy SBI Console GetChar for earlycons. It works on qemu.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Sep 28 05:02:02 2022 UTC (2 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +9 -3
lines
Fix RV32 so it gets to the same point as RV64
Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Sep 27 08:18:21 2022 UTC (2 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -1
lines
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.25: download - view: text, markup, annotated - select for diffs
Tue Sep 20 07:18:23 2022 UTC (2 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +470 -71
lines
Checkpoint WIP.
QEMU RV64 virt can boot into virtual mode
OpenSBI v1.0
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |
|_|
Platform Name : riscv-virtio,qemu
Platform Features : medeleg
Platform HART Count : 1
Platform IPI Device : aclint-mswi
Platform Timer Device : aclint-mtimer @ 10000000Hz
Platform Console Device : uart8250
Platform HSM Device : ---
Platform Reboot Device : sifive_test
Platform Shutdown Device : sifive_test
Firmware Base : 0x80000000
Firmware Size : 252 KB
Runtime SBI Version : 0.3
Domain0 Name : root
Domain0 Boot HART : 0
Domain0 HARTs : 0*
Domain0 Region00 : 0x0000000002000000-0x000000000200ffff (I)
Domain0 Region01 : 0x0000000080000000-0x000000008003ffff ()
Domain0 Region02 : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address : 0x0000000080200000
Domain0 Next Arg1 : 0x00000000bfe00000
Domain0 Next Mode : S-mode
Domain0 SysReset : yes
Boot HART ID : 0
Boot HART Domain : root
Boot HART ISA : rv64imafdcsuh
Boot HART Features : scounteren,mcounteren,mcountinhibit,time
Boot HART PMP Count : 16
Boot HART PMP Granularity : 4
Boot HART PMP Address Bits: 54
Boot HART MHPM Count : 16
Boot HART MIDELEG : 0x0000000000001666
Boot HART MEDELEG : 0x0000000000f0b509
------------
NetBSD start
sp: 0x0000_0000_80a0_2000
pc: 0x0000_0000_8020_0090
hart: 0x0000_0000_0000_0000
dtb: 0x0000_0000_bfe0_0000
l1: 0x0000_0000_80a0_2000
l2: 0x0000_0000_80a0_3000
uspace: 0x0000_0000_80a0_0000
bootstk: 0x0000_0000_80a0_2000
vtopdiff:0xffff_ffbf_7fe0_0000
bss: 0x0000_0000_808a_8bdc - 0x0000_0000_80a0_4000
0x0000_0000_80a0_3800: 0x0000_0000_2028_0821
kern 0x0000_0000_80a0_2000: 0x0000_0000_2008_002f
kern 0x0000_0000_80a0_2008: 0x0000_0000_2010_002f
kern 0x0000_0000_80a0_2010: 0x0000_0000_2018_002f
kern 0x0000_0000_80a0_2018: 0x0000_0000_2020_002f
kern 0x0000_0000_80a0_2020: 0x0000_0000_2028_002f
kern 0x0000_0000_80a0_2028: 0x0000_0000_2030_002f
kern 0x0000_0000_80a0_2030: 0x0000_0000_2038_002f
kern 0x0000_0000_80a0_2038: 0x0000_0000_2040_002f
kern 0x0000_0000_80a0_2040: 0x0000_0000_2048_002f
kern 0x0000_0000_80a0_2048: 0x0000_0000_2050_002f
kern 0x0000_0000_80a0_2050: 0x0000_0000_2058_002f
kern 0x0000_0000_80a0_2058: 0x0000_0000_2060_002f
kern 0x0000_0000_80a0_2060: 0x0000_0000_2068_002f
kern 0x0000_0000_80a0_2068: 0x0000_0000_2070_002f
kern 0x0000_0000_80a0_2070: 0x0000_0000_2078_002f
kern 0x0000_0000_80a0_2078: 0x0000_0000_2080_002f
dtb 0x0000_0000_80a0_2080: 0x0000_0000_2ff8_0027
PM
[ 1.0000000] FDT<0xffffffc002000000>
[ 1.0000000] consinit ok
[ 1.0000000] NetBSD/riscv (fdt) booting ...
[ 1.0000000] FDT /memory @ 0x80000000 size 0x40000000
[ 1.0000000] init_riscv: memory start 80000000 end c0000000 (len 40000000)
[ 1.0000000] bootargs: root=ld4a -v -x
[ 1.0000000] bootflag 'r' not recognised
[ 1.0000000] bootflag 'o' not recognised
[ 1.0000000] bootflag 'o' not recognised
[ 1.0000000] bootflag 't' not recognised
[ 1.0000000] bootflag '=' not recognised
[ 1.0000000] bootflag 'l' not recognised
[ 1.0000000] bootflag ' ' not recognised
[ 1.0000000] bootflag ' ' not recognised
[ 1.0000000] ------------------------------------------
[ 1.0000000] kern_vtopdiff = 0xffffffbf7fe00000
[ 1.0000000] memory_start = 0x 80000000
[ 1.0000000] memory_end = 0x c0000000
[ 1.0000000] memory_size = 0x 40000000
[ 1.0000000] kernstart_phys = 0x 80200000
[ 1.0000000] kernend_phys = 0x 80a00000
[ 1.0000000] VM_MIN_KERNEL_ADDRESS = 0xffffffc000000000
[ 1.0000000] kernstart_mega = 0xffffffc000000000
[ 1.0000000] kernstart = 0xffffffc000000000
[ 1.0000000] kernend = 0xffffffc000800000
[ 1.0000000] kernend_mega = 0xffffffc000800000
[ 1.0000000] VM_MAX_KERNEL_ADDRESS = 0xffffffd000000000
[ 1.0000000] ------------------------------------------
[ 1.0000000] panic: kernel diagnostic assertion "msgbufaddr != 0" failed: file "/home/nick/netbsd/nbcvs/src/sys/arch/riscv/riscv/riscv_machdep.c", line 564
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Apr 10 09:50:45 2022 UTC (2 years, 8 months ago) by andvar
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2
lines
fix various typos in comments and output/log messages.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Aug 3 23:12:14 2021 UTC (3 years, 4 months ago) by andvar
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-futex2-base,
thorpej-futex2
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +6 -6
lines
Fix various typos in comments. Also add missing NetBSD RCS Id in some of these files.
Revision 1.20.4.2: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:24 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.20.4.1: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.4.1: +4 -4
lines
Sync w/ HEAD.
Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Mon May 31 22:15:15 2021 UTC (3 years, 6 months ago) by cjep
Branches: cjep_staticlib_x
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +4 -4
lines
sync with head
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun May 16 09:02:04 2021 UTC (3 years, 6 months ago) by skrll
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base,
thorpej-cfargs2-base,
thorpej-cfargs2,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4
lines
s/ENTRY/ENTRY_NP/ in a few places
Revision 1.20.4.1: download - view: text, markup, annotated - select for diffs
Thu May 13 00:47:27 2021 UTC (3 years, 6 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -3
lines
Sync with HEAD.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat May 1 07:10:34 2021 UTC (3 years, 7 months ago) by skrll
Branches: MAIN
CVS tags: cjep_staticlib_x-base
Branch point for: cjep_staticlib_x
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -3
lines
Quick hack to make this link
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:00 2020 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +15 -35
lines
Sync w/ HEAD.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Nov 8 10:08:28 2020 UTC (4 years, 1 month ago) by skrll
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-cfargs-base,
thorpej-cfargs
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2
lines
Fix register usage
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Nov 8 08:12:17 2020 UTC (4 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2
lines
Fix a typo
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Nov 8 08:11:15 2020 UTC (4 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3
lines
Remove unnecessary local labels
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Nov 8 08:07:43 2020 UTC (4 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2
lines
Use correct instruction to load address of exception_userexit into RA
Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Nov 4 20:05:47 2020 UTC (4 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +1 -10
lines
Miscellaneous updates to reflect riscv-privileged-20190608.pdf
Some from zmcgrew@
Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Nov 4 07:09:46 2020 UTC (4 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -1
lines
RCSID and whitespace police...
Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Nov 4 06:56:56 2020 UTC (4 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +12 -24
lines
Miscellaneous updates to reflect riscv-privileged-20190608.pdf
Some from zmcgrew@
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Oct 31 15:18:09 2020 UTC (4 years, 1 month ago) by skrll
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +13 -13
lines
Use the 'mv' pseudo-instruction instead of the 'move' equivalent as 'mv'
is mentioned in the ISA documentation and it's used elsewhere. That is,
let's use 'mv' everywhere for consistency.
Revision 1.7.4.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:05 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.7.4.2: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.4.2: +7 -5
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.7.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:51 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.7.4.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.4.1: +5 -8
lines
Merge changes from current as of 20200406
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Mar 14 16:12:16 2020 UTC (4 years, 8 months ago) by skrll
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4
lines
Trailing whitespace
Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Fri Jan 17 21:47:27 2020 UTC (4 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +2 -5
lines
Sync with head.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jan 8 20:59:19 2020 UTC (4 years, 11 months ago) by skrll
Branches: MAIN
CVS tags: is-mlppp-base,
is-mlppp,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -4
lines
oldlwp is always non-NULL in cpu_switchto so remove the test for NULL.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Jan 8 17:38:42 2020 UTC (4 years, 11 months ago) by ad
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +1 -2
lines
Hopefully fix some problems seen with MP support on non-x86, in particular
where curcpu() is defined as curlwp->l_cpu:
- mi_switch(): undo the ~2007ish optimisation to unlock curlwp before
calling cpu_switchto(). It's not safe to let other actors mess with the
LWP (in particular l->l_cpu) while it's still context switching. This
removes l->l_ctxswtch.
- Move the LP_RUNNING flag into l->l_flag and rename to LW_RUNNING since
it's now covered by the LWP's lock.
- Ditch lwp_exit_switchaway() and just call mi_switch() instead. Everything
is in cache anyway so it wasn't buying much by trying to avoid saving old
state. This means cpu_switchto() will never be called with prevlwp ==
NULL.
- Remove some KERNEL_LOCK handling which hasn't been needed for years.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jun 16 07:42:52 2019 UTC (5 years, 5 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20191119,
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,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +8 -6
lines
Misc changes in RISC-V.
Revision 1.7.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:06:41 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +7 -3
lines
Sync with HEAD
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Jun 1 12:42:28 2019 UTC (5 years, 6 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +7 -3
lines
Misc changes in RISC-V. Start changing the memory layout, too.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Feb 5 10:41:12 2018 UTC (6 years, 10 months ago) by maya
Branches: MAIN
CVS tags: phil-wifi-base,
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,
isaki-audio2-base,
isaki-audio2
Branch point for: phil-wifi
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3
lines
Fix tyop
Revision 1.6.14.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:39 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.6.14.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.14.1: +563 -0
lines
update from HEAD
Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:19 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.5.2.2: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.2: +2 -2
lines
Sync with HEAD
Revision 1.5.4.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:24 2017 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +2 -2
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.6.14.1
Mon Dec 5 07:24:16 2016 UTC (8 years ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.6: +0 -563
lines
file locore.S was added on branch tls-maxphys on 2017-12-03 11:36:39 +0000
Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Dec 5 07:24:16 2016 UTC (8 years ago) by kamil
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
netbsd-8-base,
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,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: tls-maxphys
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2
lines
Fix cpu_switchto(9) prototype in a comment
Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:01 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.1: +563 -0
lines
Sync with HEAD
Revision 1.5.2.1
Tue Mar 31 11:53:13 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
FILE REMOVED
Changes since revision 1.5: +0 -563
lines
file locore.S was added on branch nick-nhusb on 2015-04-06 15:18:01 +0000
Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Mar 31 11:53:13 2015 UTC (9 years, 8 months ago) by matt
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
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,
localcount-20160914
Branch point for: pgoyette-localcount,
nick-nhusb
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -5
lines
Accept the one instruction penalty and just use PTR_LA instead of doing
the relocs ourselves.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Mar 31 11:48:10 2015 UTC (9 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3
lines
Fix botch on putting user stack pointer into trapframe.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Mar 31 06:47:47 2015 UTC (9 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +17 -13
lines
Optimize the exception handle a little bit more.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Mar 31 01:30:50 2015 UTC (9 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +47 -45
lines
Since there is only "scratch" system register for use on exception, come
up with a new scheme for its use. Use PTR_LA, INT_S/INT_L, etc. Disable
interrupts when returning from exceptions. Use L_CPU(tp) to get the curcpu
pointer.
When the cpu gets an exception from kernel mode, the sscratch register will be
0 and curlwp will be in the "tp" register. When the cpu gets an exception from
user mode, the sscratch register will be a pointer to the current lwp.
When an exception happends, the sp is atomically swapped with the sscratch
register.
If the sp is zero, the exception was a kernel exception and the
kernel exception path is taken: sp and sscratch are swapped again
so sscratch is zero again and then a trapframe is allocated from
the kernel stack. The t1 register is saved and then the pre-trapframe
sp is written to the trapframe.
If sp was non-zero, the exception was from user mode. The tp register
is temporarily saved in L_MD_TP(sp) and sp is moved tp. tp now
contains a pointer to the current lwp. A pointer to the user
trapframe is loaded from L_MD_UTF(tp). Then t1 is saved in the
trapframe so it can be used. The old sp is fetched from sscratch
while sscratch is zeroed (indicated kernel mode). The old sp is
saved in the trapframe.
Upon exiting the exception, if the exception is returning to user
mode, the contents of tp is written to sscratch.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Mar 28 16:13:56 2015 UTC (9 years, 8 months ago) by matt
Branches: MAIN
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.
CVSweb <webmaster@jp.NetBSD.org>