[haiku-commits] Re: haiku: hrev46068 - src/add-ons/kernel/drivers/disk/usb/usb_disk

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 16 Sep 2013 15:16:21 +0200

2013/9/16 Stephan Aßmus <superstippi@xxxxxx>:
> Am 16.09.2013 um 13:31 schrieb korli@xxxxxxxxxxxxxxxx:
>>
>> a20d645: usb_disk: fixed mounting a USB disk on x86_64
>
> Is that a function which is only executed on x86_64? Because otherwise it 
> looks like it wouldn't have anything to do with x86_64, but rather with where 
> the block happened to be.

No, the function is executed on both archs. I agree that it doesn't
relate directly to x86_64.
Though Olivier confirmed the problem isn't present on x86 with a USB
partitioned disk, the boot partition at the end of the disk, whereas
it crashes with a page fault on x86_64.
A reason could be that the partialBuffer pointer could point to a
valid mapped memory in 32 bits, whereas on 64 bits it doesn't. Just a
guess.

Bye,
Jérôme

Other related posts: