-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add common dlt_cdh_cpuinfo.c to unblock build on non amd64 and i386 a…
…rcs (#544)
- Loading branch information
1 parent
38407d9
commit e81c422
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,8 @@ typedef struct | |
uint64_t pc; | ||
uint64_t ip; | ||
uint64_t lr; | ||
uint64_t sp; | ||
uint64_t fp; | ||
|
||
} cdh_registers_t; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* SPDX license identifier: MPL-2.0 | ||
* | ||
* Copyright (C) 2011-2015, BMW AG | ||
* | ||
* This file is part of COVESA Project DLT - Diagnostic Log and Trace. | ||
* | ||
* This Source Code Form is subject to the terms of the | ||
* Mozilla Public License (MPL), v. 2.0. | ||
* If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* For further information see http://www.covesa.org/. | ||
*/ | ||
|
||
/*! | ||
* \author Gianfranco Costamagna <[email protected]> | ||
* | ||
* \copyright Copyright © 2011-2015 BMW AG. \n | ||
* License MPL-2.0: Mozilla Public License version 2.0 http://mozilla.org/MPL/2.0/. | ||
* | ||
* \file dlt_cdh_cpuinfo.c | ||
*/ | ||
|
||
#include "dlt_cdh_cpuinfo.h" | ||
|
||
void get_registers(prstatus_t *prstatus, cdh_registers_t *registers) | ||
{ | ||
/* struct user_regs_struct *ptr_reg = (struct user_regs_struct *)prstatus->pr_reg; | ||
registers->pc = ptr_reg->pc;*/ /* [REG_PROC_COUNTER]; */ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters