http://blog.chinaunix.net/uid/16979052.html
全部博文(286)
发布时间:2012-06-27 10:48:23
#include #include /*Check if the bit BIT in FLAGS is set.*/#define CHECK_FLAG(flags,bit) ((flags) & (1 << (bit)))struct MultibootInfo bootInfo;extern void early_serial_init();void setup_param(uint8_t *addr, int magic){ early_serial_init(); struct Multiboot.........【阅读全文】
发布时间:2012-06-27 10:45:51
#include .global multiboot_entry.section .boot/*Multiboot header, 32-bit aligned.*/.align 4 .long (MULTIBOOT_HEADER_MAGIC) .long (MULTIBOOT_HEADER_FLAGS) .long -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS).align 4multiboot_entry: mov $boot_sta.........【阅读全文】