mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
fix stdseek to match std word ordering
This commit is contained in:
parent
e0e908dbf4
commit
2a521b5b86
1 changed files with 2 additions and 1 deletions
|
|
@ -1735,7 +1735,8 @@ fn wrapped_main() -> ! {
|
||||||
Opcode::SeekKeyStd => {
|
Opcode::SeekKeyStd => {
|
||||||
let fd = (msg.body.id() >> 16) & 0xffff;
|
let fd = (msg.body.id() >> 16) & 0xffff;
|
||||||
if let Some(scalar) = msg.body.scalar_message() {
|
if let Some(scalar) = msg.body.scalar_message() {
|
||||||
let seek_by = (((scalar.arg2 as u32) as u64) << 32) | ((scalar.arg3 as u32) as u64);
|
// NOTE: endian swap for compatibility with `std`
|
||||||
|
let seek_by = (((scalar.arg3 as u32) as u64) << 32) | ((scalar.arg2 as u32) as u64);
|
||||||
let result = libstd::seek_key(scalar.arg1, seek_by, fd_mapping.entry(msg.sender.pid()).or_default(), fd);
|
let result = libstd::seek_key(scalar.arg1, seek_by, fd_mapping.entry(msg.sender.pid()).or_default(), fd);
|
||||||
if msg.body.is_blocking() {
|
if msg.body.is_blocking() {
|
||||||
match result {
|
match result {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue