mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
part_dos.c: Don't wrap to negative after 2G sectors
In order to support large IDE disks we need to make certain types be lbaint_t now. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Stefan Monnier <monnier@iro.umontreal.ca>
This commit is contained in:
@@ -28,13 +28,13 @@ void ide_led(uchar led, uchar status);
|
||||
|
||||
#ifdef CONFIG_SYS_64BIT_LBA
|
||||
typedef uint64_t lbaint_t;
|
||||
#define LBAF "%llx"
|
||||
#define LBAFU "%llu"
|
||||
#define LBAFlength "ll"
|
||||
#else
|
||||
typedef ulong lbaint_t;
|
||||
#define LBAF "%lx"
|
||||
#define LBAFU "%lu"
|
||||
#define LBAFlength "l"
|
||||
#endif
|
||||
#define LBAF "%" LBAFlength "x"
|
||||
#define LBAFU "%" LBAFlength "u"
|
||||
|
||||
/*
|
||||
* Function Prototypes
|
||||
|
Reference in New Issue
Block a user