This website requires JavaScript.
Explore
Help
Sign In
d
/
freebsd-nq
Watch
1
Star
0
Fork
0
You've already forked freebsd-nq
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
freebsd-nq
/
sys
/
arm
/
xscale
/
std.xscale
4 lines
63 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Instead of using sysarch() to store-retrieve the tp, add a magic address, ARM_TP_ADDRESS, where the tp will be stored. On CPUs that support it, a cache line will be allocated and locked for this address, so that it will never go to RAM. On CPUs that does not, a page is allocated for it (it will be a bit slower, and is wrong for SMP, but should be fine for UP). The tp is still stored in the mdthread struct, and at each context switch, ARM_TP_ADDRESS gets updated. Suggested by: davidxu
2005-02-26 18:59:01 +00:00
# $FreeBSD$
Not quite ready for this yet, so comment it out.
2012-07-10 01:32:52 +00:00
# machine arm armeb
Instead of using sysarch() to store-retrieve the tp, add a magic address, ARM_TP_ADDRESS, where the tp will be stored. On CPUs that support it, a cache line will be allocated and locked for this address, so that it will never go to RAM. On CPUs that does not, a page is allocated for it (it will be a bit slower, and is wrong for SMP, but should be fine for UP). The tp is still stored in the mdthread struct, and at each context switch, ARM_TP_ADDRESS gets updated. Suggested by: davidxu
2005-02-26 18:59:01 +00:00
options ARM_CACHE_LOCK_ENABLE
Reference in New Issue
Copy Permalink