diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-10-31 19:48:16 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-10-31 19:48:16 +0100 |
commit | 5608be398ea04d67594b558b30c457b328fe05d6 (patch) | |
tree | a147ef2e5188bf7782fcd1f10059477da455d8b2 /sys/src/9/bcm/archbcm2.c | |
parent | 913be4e74affe04a2ceb3ab75cb8056dd920a5c8 (diff) |
bcm: fix /dev/reboot text/data corruption (thanks richard miller)
- clean dcache before turning off caches and mmu (rebootcode.s)
- use WFE and inter-core mailboxes for cpu startup (rebootcode.s)
- disable SMP during dcache invalidation before enabling caches and mmu (in armv7.s)
Diffstat (limited to 'sys/src/9/bcm/archbcm2.c')
-rw-r--r-- | sys/src/9/bcm/archbcm2.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/src/9/bcm/archbcm2.c b/sys/src/9/bcm/archbcm2.c index abde129d0..15d8e4ec7 100644 --- a/sys/src/9/bcm/archbcm2.c +++ b/sys/src/9/bcm/archbcm2.c @@ -145,7 +145,6 @@ getncpus(void) { int n, max; char *p; - n = 4; if(n > MAXMACH) n = MAXMACH; |