mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
imx_fec: Move Tx frame buffer away from the stack
Make Tx frame assembly buffer to be a paort of IMXFECState structure to avoid a concern about having large data buffer on the stack. Cc: Peter Maydell <peter.maydell@linaro.org> Cc: Jason Wang <jasowang@redhat.com> Cc: Philippe Mathieu-Daudé <f4bug@amsat.org> Cc: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Cc: yurovsky@gmail.com Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
b2b012afdd
commit
7bac20dc51
2 changed files with 14 additions and 11 deletions
|
@ -252,6 +252,9 @@ typedef struct IMXFECState {
|
|||
uint32_t phy_int_mask;
|
||||
|
||||
bool is_fec;
|
||||
|
||||
/* Buffer used to assemble a Tx frame */
|
||||
uint8_t frame[ENET_MAX_FRAME_SIZE];
|
||||
} IMXFECState;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue