Alex Richardson
c2a31bf8a6
[x86][clang] Make return mnemonic compatible with clang
...
GCC appears to accept the Intel retf syntax in AT&T mode but clang is
stricter and requires use of lret.
2023-06-07 15:55:50 -07:00
Travis Geiselbrecht
7742bd021b
[arch][x86] general cleanup
...
Clean up the x86.h file a bit with how constants are defined
Switch rdtsc to builtin
Added all of the known bits for the main CR registers.
Move the invlpg macro over to the common header.
Update comments in start.S
2022-11-02 23:02:24 -07:00
Travis Geiselbrecht
62e2e7dba0
[platform][pc] move the multiboot header into generic space
...
Share the header with arch/x86 code
Clean up the use of the boot flags
Add code to print the framebuffer information, if present
2022-08-07 23:04:23 -07:00
Travis Geiselbrecht
f7d8e2300c
[warnings] add -Wshadow which helps detect local variables that override globals
...
Nothing particularly bad showed up but cleaned up a bit of code.
2020-07-25 16:49:25 -07:00
Travis Geiselbrecht
cba9e47987
[license] replace the longer full MIT license with a shorter one
...
Used scripts/replacelic. Everything seems to build fine.
2019-07-05 17:22:23 -07:00
Travis Geiselbrecht
1b7a28efb8
[include][lk] fixup lk/ include path move
2019-06-19 19:46:11 -07:00
klemens
d0b90c2d68
[spelling] spelling-fixes. (not external/)
2016-08-25 17:30:34 -07:00
Zhu, Bing
68447dbeca
[arch][x86] load initial stack pointer in boot entry
...
Initially, stack pointer (esp) is undefined in multiboot protocol,
to avoid potential memory corruption, set it with defined value.
Signed-off-by: Zhu, Bing <bing.zhu@intel.com >
2016-03-15 10:24:14 -07:00
Travis Geiselbrecht
ee672a5471
[arch][x86] flatten x86-64 and x86 into a single tree of code
...
Major refactor of x86 code into a single arch.
Also bump both 32 and 64 bit to running the kernel at a 'high' address.
2016-02-29 12:42:45 -08:00