commit | 1e1bdc75b52fd403026da68b3404865bb13218db | [log] [tgz] |
---|---|---|
author | Adriana Kobylak <anoo@us.ibm.com> | Wed Aug 16 16:30:08 2017 -0500 |
committer | Andrew Geissler <andrewg@us.ibm.com> | Fri Aug 18 11:50:40 2017 -0500 |
tree | 7c4042b21348e3a7016e265ac00130a53c9ee31f | |
parent | eb083550701a4e3bda8d4b07e37d1f9fd6017424 [diff] |
pnor_partition_table: Handle toc addresses starting with 0x With open-power/skiboot commit 36bab76, pflash added a prefix of 0x to the partition addresses, which is used to generate the toc. Add an optional prefix of 0x to the regex to handle this change while being backwards compatible. Also add the optional prefix of 0x to the 3rd parameter as this should also change to specify it's a hex number. The std::stoul function to convert the string to hex handles the string with and without the 0x prefix. Resolves openbmc/openbmc#2124 Change-Id: I2273e28781d57ed8e3640fd287df1fad2e1da3bf Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Copyright 2017 IBM
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This repo contains the protocol definition for the host to BMC mailbox communication specification which can be found in Documentation/mbox_procotol.md.
There is also a reference implementation of a BMC mailbox daemon, the details of which can be found in Documentation/mboxd.md.
Finally there is also an implementation of a mailbox daemon control program, the details of which can be found in Documentation/mboxctl.md.