summaryrefslogtreecommitdiff
path: root/com32/chain/mangle.h
Commit message (Collapse)AuthorAgeFilesLines
* chain: year update in commments (trivial)Gene Cumm2015-03-151-1/+1
| | | | | Signed-off-by: Michal Soltys <soltys@ziu.info> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* com32/chain: update licenses and #ifndef stanzasMichal Soltys2013-02-141-2/+32
| | | | | | | | | | | | | | | Licenses: chain.[ch] Makefile: GPLv2+ the rest: MIT Defines: Avoid prefixing with _ Signed-off-by: Michal Soltys <soltys@ziu.info> Acked-by: H. Peter Anvin <hpa@linux.intel.com> Acked-by: Shao Miller <sha0.miller@gmail.com>
* com32/chain: split manglepe_mbrchshide() into separate functionsMichal Soltys2011-03-081-1/+2
| | | | | | | | - split into 'fixchs' and 'hide' (cleaner, easier to read) - fix hide related conditions (they were too strong) - make sure we test for iterator status as well Signed-off-by: Michal Soltys <soltys@ziu.info>
* com32/chain: minor fixes and cleanupsMichal Soltys2010-10-251-1/+6
| | | | | | | | | | | | | | | | | | | | - make sure opt.maps implies opt.sect, and simplify conditions throughout the files - move structure opt -> options.c - adjust #includes - omitted values in seg= and sect= are assumed 0 in all cases now - mangler_handover(): eax for gpt handover set only for iterated disks - rename parse_args() -> opt_parse_args() - rename mangler_common() -> mangler_init() - add opt_set_defs() - if mmapped sector would conflict with the file, turn off mmapping instead of bailing out - update temporary chain.txt to reflect changes + other fixups Signed-off-by: Michal Soltys <soltys@ziu.info>
* com32/chain: move partition entries' mangling to mangle.creview02Michal Soltys2010-10-081-0/+2
| | | | | | | | | | | All functions related to partition entries' mangling has been moved to mangle.c, including appropriate renames: pentry_mangle() -> manglepe_mbrchshide() pem_setchs() -> mpe_setchs() pem_sethide() -> mpe_sethide() Signed-off-by: Michal Soltys <soltys@ziu.info>
* chain module: setbpb changes, bss & bs options, bugfixesMichal Soltys2010-09-281-4/+8
| | | | | | | | | | | | | | | Generic function detecting BPB type (7 versions) have been added. set{hid,geo,drv} have been replaced by single setbpb option, using mentioned function to make more precise decisions what to update where. Full BSS and BS emulation has been added, also employing BPB detection. Some logic/flow changes in chain's main(). There was also a bug, in which backup sector was populated with wrong data. Appropriate documentation updates. Signed-off-by: Michal Soltys <soltys@ziu.info>
* chain module: make option 'save' truly separateMichal Soltys2010-09-281-1/+2
| | | | | | | | | | Previously, option 'save' has been executed as a part of bpb mangling. This was rather inflexible. Apart from that, all mangle functions test their respective opt.* options internally. Signed-off-by: Michal Soltys <soltys@ziu.info>
* chain.c: Split chain into smaller filesMichal Soltys2010-09-281-0/+19
new file: chain.h new file: common.h new file: mangle.c new file: mangle.h new file: options.c new file: options.h new file: utility.c new file: utility.h Signed-off-by: Michal Soltys <soltys@ziu.info>