Comments (4)
Ah hah. Now I understand why that code was in there before. I couldn't figure out what the fix was for when it was added a while back on x86-64. For whatever reason it only affects x86-64, arm64 doesn't have this problem.
I'll take a look at it tomorrow. I really dont want the special case ARCH_X86_64 thing polluting the code, so have to find a better solution for it.
from lk.
Travis,
Can you please help to check the output file "lk/build-pc-x86-64-test/lk.elf.sym.sorted" in your build machine to see if this alignment issue exists or not?
I found there is a link script to make init structure with 8-byte alignment, but have no idea why it does work.
https://github.com/travisg/lk/blob/master/top/init.ld
https://github.com/travisg/lk/blob/master/app/app.ld
https://github.com/travisg/lk/blob/master/dev/drivers.ld
https://github.com/travisg/lk/blob/master/dev/devices.ld
Besides, it seems that we need to figure out a solution to get it fixed by covering both 32bit and 64bit (for x86, arm or other ARCHs).
Currently, my solution is just to make them aligned with 4-bytes.
see my patch here, please let me know if it is ok or not.
bingzhux@012231b
from lk.
I think this is fixed now. Going to close now, re-open if it's still broken on your end.
from lk.
yes, I cannot reproduce this issue any more.
from lk.
Related Issues (20)
- Goldfish_RTC Timer support
- [request] WASM as build target? HOT 1
- [arch][mmu] align the return of arch_mmu_map and arch_mmu_unmap of all the arches HOT 1
- Rust HOT 4
- The lk coding style question HOT 3
- [Feature] Dual boot support HOT 4
- [libc][printf] limited number of characters support
- arch_in_int_handler not working on multicore ARCH HOT 1
- riscv sifive_u qemu port doesn't seem to have working timers/interrupts
- printf("%zd") of ssize_t variables results in a warning
- Exception occurs when SVE instructions used on aarch64
- [lib][console] unused with_history parameter when creating a new console
- Adding the `-mgeneral-regs-only` flag breaks variadic functions
- Aarch64 ILP32 LK HOT 1
- Saving FPU registers during IRQ Handler HOT 1
- Evaluate Profile-Guided Optimization (PGO) HOT 2
- Assessment of the difficulty in porting CPU architecture for lk HOT 1
- ........................... 5776-9529-3040
- [virtio/fs] Support for virtual 9p devices HOT 3
- Query regading the Translation table HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lk.