• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2009-2022 Huawei Technologies Co., Ltd. All rights reserved.
3  *
4  * UniProton is licensed under Mulan PSL v2.
5  * You can use this software according to the terms and conditions of the Mulan PSL v2.
6  * You may obtain a copy of Mulan PSL v2 at:
7  *          http://license.coscl.org.cn/MulanPSL2
8  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
9  * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
10  * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
11  * See the Mulan PSL v2 for more details.
12  * Create: 2009-12-22
13  * Description: System base function implementation
14  */
15 #include "securec.h"
16 #include "prt_sys.h"
17 #include "prt_cpu_external.h"
18 
19 #define OS_VER "UniProton 22.03"
20 
21 /* 宏展开优先展开参数,但是#会阻止参数展开,故需要定义另外一个宏 */
22 OS_SEC_DATA char g_osOuterVer[OS_SYS_OS_VER_LEN] = { OS_VER };
23 /*
24  * 描述:获取OS版本号
25  */
PRT_SysGetOsVersion(void)26 OS_SEC_L4_TEXT char *PRT_SysGetOsVersion(void)
27 {
28     return (char *)&g_osOuterVer[0];
29 }
30