github.com/usbarmory/tamago@v0.0.0-20240508072735-8612bbe1e454/board/raspberrypi/pi1/mem.go (about) 1 // Raspberry Pi 1 support for tamago/arm 2 // https://github.com/usbarmory/tamago 3 // 4 // Copyright (c) the pi1 package authors 5 // 6 // Use of this source code is governed by the license 7 // that can be found in the LICENSE file. 8 9 //go:build !linkramsize 10 // +build !linkramsize 11 12 package pi1 13 14 import ( 15 _ "unsafe" 16 ) 17 18 //go:linkname ramSize runtime.ramSize 19 20 // the following models have 256 MB RAM: 21 // - model A (all) 22 // - model A+ (before 10th August 2016) 23 // - model B (before 15th October 2012) 24 // var ramSize uint32 = 0x10000000 - 0x04000000 // 256 MB - 64MB GPU (VideoCore) 25 26 // the following models have 512 MB RAM: 27 // - model A+ (after 10th August 2016) 28 // - model B (after 15th October 2012) 29 // - model B+ (all) 30 var ramSize uint32 = 0x20000000 - 0x04000000 // 512 MB - 64MB GPU (VideoCore)