Print this page
cpuid for ARMv7
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/armv7/os/bsmdep.c
+++ new/usr/src/uts/armv7/os/bsmdep.c
1 1 /*
2 2 * This file and its contents are supplied under the terms of the
3 3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 4 * You may only use this file in accordance with the terms of version
5 5 * 1.0 of the CDDL.
6 6 *
7 7 * A full copy of the text of the CDDL should have accompanied this
8 8 * source. A copy of the CDDL is also available via the Internet at
9 9 * http://www.illumos.org/license/CDDL.
10 10 */
11 11
12 12 /*
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
13 13 * Copyright (c) 2014 Joyent, Inc. All rights reserved.
14 14 */
15 15 #include <sys/types.h>
16 16 #include <sys/time.h>
17 17
18 18 /*
19 19 * Board Specific Module dependencies.
20 20 */
21 21
22 22 /*
23 - * In addition to the entry points defined below, a board is also required to
24 - * implement the following functions:
25 - *
26 - * void armv6_bsmdep_l2cacheinfo(void);
27 - *
28 - * The board should set the value of 'armv6_l2cache_linesz'
29 - *
30 - * XXX Some day we should make all of this into modules that can be loaded early
31 - * by unix so that way we can have one kernel for all boards...
32 - */
33 -
34 -/*
35 23 * While we would like to have a single consistent hrtime function across all of
36 - * the ARMv6 implementations, the chip itself leaves us rather lacking. As such,
24 + * the ARMv7 implementations, the chip itself leaves us rather lacking. As such,
37 25 * we have to rely on each ARM board or implementation to do the work for us,
38 26 * alas.
39 27 */
40 28 static hrtime_t
41 29 dummy_hrtime(void)
42 30 {
43 31 return (0);
44 32 }
45 33
46 34 /*
47 35 * Functions for a BSM to initialize
48 36 */
49 37 hrtime_t (*gethrtimeunscaledf)(void) = dummy_hrtime;
50 38
51 39 /*
52 40 * General entry points
53 41 */
54 42 hrtime_t
55 43 gethrtime_unscaled(void)
56 44 {
57 45 return (gethrtimeunscaledf());
58 46 }
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX