2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
5 * 1.0 of the CDDL.
6 *
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
10 */
11
12 /*
13 * Copyright (c) 2014 Joyent, Inc. All rights reserved.
14 */
15
16 /*
17 * Broadcom 2836 board specific functions.
18 */
19
20 #include <vm/vm_dep.h>
21
22 void
23 armv7_bsmdep_l2cacheinfo(void)
24 {
25 /*
26 * Per the BCM 2836 ARM peripherals manual, the L2 cache on the BCM
27 * 2836 is actually used by the GPU, and from the CPU point of view,
28 * we don't have one.
29 *
30 * This can be toggled on the rPi, but it appears that that toggling
31 * can't be probed for.
32 *
33 * At present, we set these variables as if we owned the l2,
34 * regardless of whether we in fact do. This might be a terrible
35 * idea.
36 *
37 * XXX: It might be reasonable to demand that we (the CPU) have the l2
38 * cache, although since it is off-chip this may actually hinder
39 * performance.
40 */
41
42 armv6_l2cache_linesz = 32;
43 /* 128K per the BCM2836 manual, though we by default see none of it */
44 armv6_l2cache_size = 0x20000;
45 }
|
2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
5 * 1.0 of the CDDL.
6 *
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
10 */
11
12 /*
13 * Copyright (c) 2014 Joyent, Inc. All rights reserved.
14 */
15
16 /*
17 * Broadcom 2836 board specific functions.
18 */
19
20 #include <vm/vm_dep.h>
21
|