Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235944
b: refs/heads/master
c: 92d0293
h: refs/heads/master
v: v3
  • Loading branch information
Ramos Falcon, Ernesto authored and Omar Ramirez Luna committed Feb 5, 2011
1 parent fe07f73 commit 3122223
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 41 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 157bc26dacc2f30ee64fc7eea2babbdc65052803
refs/heads/master: 92d0293038e49151367e38f751f327c8f2c066f6
60 changes: 20 additions & 40 deletions trunk/drivers/staging/tidspbridge/dynload/cload.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,9 +1131,6 @@ static void dload_data(struct dload_state *dlthis)
u16 curr_sect;
struct doff_scnhdr_t *sptr = dlthis->sect_hdrs;
struct ldr_section_info *lptr = dlthis->ldr_sections;
#ifdef OPT_ZERO_COPY_LOADER
bool zero_copy = false;
#endif
u8 *dest;

struct {
Expand Down Expand Up @@ -1192,17 +1189,6 @@ static void dload_data(struct dload_state *dlthis)
return;
}
dest = ibuf.bufr;
#ifdef OPT_ZERO_COPY_LOADER
zero_copy = false;
if (!dload_check_type(sptr, DLOAD_CINIT) {
dlthis->myio->writemem(dlthis->myio,
&dest,
lptr->load_addr +
image_offset,
lptr, 0);
zero_copy = (dest != ibuf.bufr);
}
#endif
/* End of determination */

if (dlthis->strm->read_buffer(dlthis->strm,
Expand Down Expand Up @@ -1266,33 +1252,27 @@ static void dload_data(struct dload_state *dlthis)
&ibuf.ipacket);
cinit_processed = true;
} else {
#ifdef OPT_ZERO_COPY_LOADER
if (!zero_copy) {
#endif
/* FIXME */
if (!dlthis->myio->
writemem(dlthis->
myio,
ibuf.bufr,
lptr->
load_addr +
image_offset,
lptr,
BYTE_TO_HOST
(ibuf.
ipacket.
packet_size))) {
DL_ERROR
("Write to "
FMT_UI32
" failed",
lptr->
load_addr +
image_offset);
}
#ifdef OPT_ZERO_COPY_LOADER
/* FIXME */
if (!dlthis->myio->
writemem(dlthis->
myio,
ibuf.bufr,
lptr->
load_addr +
image_offset,
lptr,
BYTE_TO_HOST
(ibuf.
ipacket.
packet_size))) {
DL_ERROR
("Write to "
FMT_UI32
" failed",
lptr->
load_addr +
image_offset);
}
#endif
}
}
image_offset +=
Expand Down

0 comments on commit 3122223

Please sign in to comment.