Function report |
Source Code:block\partitions\atari.c |
Create Date:2022-07-28 17:26:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:atari_partition
Proto:int atari_partition(struct parsed_partitions *state)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct parsed_partitions * | state |
43 | part_fmt = 0 |
50 | If bdev_logical_block_size(bdev) != 512 Then Return 0 |
53 | rs = read_part_sector(state, 0, & sect) |
54 | If Not rs Then Return -1 |
68 | put_dev_sector(sect) |
69 | Return 0 |
79 | If Not ( 0: active; bit 7: bootable & 1) Then Continue |
82 | If memcmp("GEM", "BGM", "XGM", or other , "XGM", 3) != 0 Then |
86 | Continue |
90 | part_fmt = 1 |
93 | partsect = extensect = be32_to_cpu(start of partition ) |
94 | When 1 cycle |
95 | xrs = read_part_sector(state, partsect, & sect2) |
96 | If Not xrs Then |
98 | put_dev_sector(sect) |
99 | Return -1 |
103 | If Not ( 0: active; bit 7: bootable & 1) Then |
105 | put_dev_sector(sect2) |
106 | Break |
109 | put_partition(state, slot, partsect + be32_to_cpu(start of partition ), be32_to_cpu(length of partition )) |
113 | If Not ( 0: active; bit 7: bootable & 1) Then |
115 | put_dev_sector(sect2) |
116 | Break |
118 | If memcmp("GEM", "BGM", "XGM", or other , "XGM", 3) != 0 Then |
120 | put_dev_sector(sect2) |
121 | Break |
124 | partsect = be32_to_cpu(start of partition ) + extensect |
125 | put_dev_sector(sect2) |
134 | If part_fmt != 1 Then |
135 | pi = info for ICD-partitions 5..12 [0] |
137 | If OK_id("GEM", "BGM", "XGM", or other ) Then |
139 | When pi < info for ICD-partitions 5..12 [8] && slot < limit cycle |
141 | If Not ( 0: active; bit 7: bootable & 1 && OK_id("GEM", "BGM", "XGM", or other )) Then Continue |
143 | part_fmt = 2 |
152 | put_dev_sector(sect) |
156 | Return 1 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |