search for: menu_default

Displaying 6 results from an estimated 6 matches for "menu_default".

2010 Jul 14
2
[PATCH] gfxboot: add include and menu include support
...++++++++++---------------- 1 files changed, 43 insertions(+), 22 deletions(-) diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c index dd4d641..3b09e74 100644 --- a/com32/gfxboot/gfxboot.c +++ b/com32/gfxboot/gfxboot.c @@ -134,6 +134,7 @@ gfx_menu_t gfx_menu; menu_t *menu; menu_t *menu_default; +static menu_t *menu_ptr, **menu_next; struct { uint32_t jmp_table[12]; @@ -161,7 +162,7 @@ char *get_config_file_name(void); char *skip_spaces(char *s); char *skip_nonspaces(char *s); void chop_line(char *s); -int read_config_file(void); +int read_config_file(const char *filename); unsi...
2009 Apr 09
0
[PATCH] gfxboot: parse DEFAULT keywork in syslinux config file
...changed, 32 insertions(+), 2 deletions(-) diff --git a/modules/gfxboot.asm b/modules/gfxboot.asm index 7640914..e3aed13 100644 --- a/modules/gfxboot.asm +++ b/modules/gfxboot.asm @@ -544,8 +544,8 @@ gfx_setup_menu: mov di,[menu_seg] mov [menu_desc+menu_ent_list+2],di - mov word [menu_desc+menu_default],0 - mov [menu_desc+menu_default+2],di + mov word [menu_desc+menu_default],dentry_buf + mov [menu_desc+menu_default+2],cs mov di,256 mov [menu_desc+menu_arg_list],di @@ -699,6 +699,17 @@ parse_config: pop si jz .do_label + push si + push di + xor ecx,ecx + mov si,configbuf +...
2010 Apr 09
2
[PATCH] gfxboot: support MENU LABEL statement
...e(void) if(*t) *t++ = 0; t = skip_spaces(t); - if(!strcmp(s, "timeout")) { + if(!strcasecmp(s, "timeout")) { timeout = atoi(t); continue; } - if(!strcmp(s, "default")) { + if(!strcasecmp(s, "default")) { menu_default->label = strdup(t); u = strlen(t); if(u > label_size) label_size = u; continue; } - if(!strcmp(s, "label")) { + if(!strcasecmp(s, "label")) { menu_ptr = *menu_next = calloc(1, sizeof **menu_next); menu_next = &menu_p...
2009 Apr 05
3
[PATCH] Gfxboot COMBOOT module
...ia_type],ah + mov ah,[sectorshift] + mov byte [gfx_sector_shift],ah + mov ax,cs + mov [gfx_bootloader_seg],ax + ret + +gfx_setup_menu: + push es + push ds + pop es + + mov word [menu_desc+menu_ent_list],0 + mov di,[menu_seg] + mov [menu_desc+menu_ent_list+2],di + + mov word [menu_desc+menu_default],0 + mov [menu_desc+menu_default+2],di + + mov di,256 + mov [menu_desc+menu_arg_list],di + mov di,[menu_seg] + mov [menu_desc+menu_arg_list+2],di + + mov cx,[label_cnt] + mov [menu_desc+menu_entries],cx + + mov cx,256*2 + mov [menu_desc+menu_ent_size],cx + mov [menu_desc+menu_arg_size],cx...
2008 Nov 22
5
[RFC][PATCH] Gfxboot COMBOOT module
...ia_type],ah + mov ah,[sectorshift] + mov byte [gfx_sector_shift],ah + mov ax,cs + mov [gfx_bootloader_seg],ax + ret + +gfx_setup_menu: + push es + push ds + pop es + + mov word [menu_desc+menu_ent_list],0 + mov di,[menu_seg] + mov [menu_desc+menu_ent_list+2],di + + mov word [menu_desc+menu_default],0 + mov [menu_desc+menu_default+2],di + + mov di,256 + mov [menu_desc+menu_arg_list],di + mov di,[menu_seg] + mov [menu_desc+menu_arg_list+2],di + + mov cx,[label_cnt] + mov [menu_desc+menu_entries],cx + + mov cx,256*2 + mov [menu_desc+menu_ent_size],cx + mov [menu_desc+menu_arg_size],cx...
2009 Jul 13
0
[PATCH] gfxboot: change handling of keywords
.../', 0 db0 db 0 +keyword_text_label db 6,'label',0 +keyword_text_default db 7,'default',0 +keywords equ $ + dw keyword_text_label + dw do_label + dw keyword_text_default + dw do_default +keyword_cnt dw ($-keywords)/4 + ; menu entry descriptor menu_entries equ 0 menu_default equ 2 ; seg:ofs