diff options
author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2018-01-13 23:14:53 +0000 |
---|---|---|
committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2018-01-13 23:14:53 +0000 |
commit | 68b9c019aad1001c924adf549ccc34c6592acbd9 (patch) | |
tree | 5bc383012b4ceb857d63612da675f13fcfafcf4a /sys/powerpc/ps3 | |
parent | 26c1d774b55c4db79bca772941883244986e6f44 (diff) | |
download | src-68b9c019aad1001c924adf549ccc34c6592acbd9.tar.gz src-68b9c019aad1001c924adf549ccc34c6592acbd9.zip |
Document places we assume that physical memory is direct-mapped at zero by
using a new macro PHYS_TO_DMAP, which deliberately has the same name as the
equivalent macro on amd64. This also sets the stage for moving the direct
map to another base address.
Notes
Notes:
svn path=/head/; revision=327950
Diffstat (limited to 'sys/powerpc/ps3')
-rw-r--r-- | sys/powerpc/ps3/platform_ps3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/ps3/platform_ps3.c b/sys/powerpc/ps3/platform_ps3.c index 5f8145dc6f4e..42112502834a 100644 --- a/sys/powerpc/ps3/platform_ps3.c +++ b/sys/powerpc/ps3/platform_ps3.c @@ -226,7 +226,7 @@ static int ps3_smp_start_cpu(platform_t plat, struct pcpu *pc) { /* kernel is spinning on 0x40 == -1 right now */ - volatile uint32_t *secondary_spin_sem = (uint32_t *)(0x40); + volatile uint32_t *secondary_spin_sem = (uint32_t *)PHYS_TO_DMAP(0x40); int remote_pir = pc->pc_hwref; int timeout; |