diff options
author | cognet <cognet@FreeBSD.org> | 2005-02-26 18:59:01 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2005-02-26 18:59:01 +0000 |
commit | 43586d701a28a6b1ef236ac59977399f1c91658e (patch) | |
tree | 754a92db74155793fdb77b1dabe591af0404d9f8 /lib/libc/stdio/_flock_stub.c | |
parent | d017d1bb8095eeec8316d252936d8810684f8c64 (diff) | |
download | FreeBSD-src-43586d701a28a6b1ef236ac59977399f1c91658e.zip FreeBSD-src-43586d701a28a6b1ef236ac59977399f1c91658e.tar.gz |
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
Diffstat (limited to 'lib/libc/stdio/_flock_stub.c')
0 files changed, 0 insertions, 0 deletions